diff options
author | Rich Trott <rtrott@gmail.com> | 2019-05-07 21:14:43 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-05-09 21:41:03 -0700 |
commit | e490ac5cbd4fcc8110f96bba915f6e86361ca56a (patch) | |
tree | 3f7e6e2cd9ebcb72a35388cd79f93ae754fb5960 /tools/doc | |
parent | ec629069872fe8abdd5681ac3015163fca0957c9 (diff) | |
download | android-node-v8-e490ac5cbd4fcc8110f96bba915f6e86361ca56a.tar.gz android-node-v8-e490ac5cbd4fcc8110f96bba915f6e86361ca56a.tar.bz2 android-node-v8-e490ac5cbd4fcc8110f96bba915f6e86361ca56a.zip |
tools: switch to camelcasing in apilinks.js
Use camelcasing in tools/doc/apilinks.js.
PR-URL: https://github.com/nodejs/node/pull/27607
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'tools/doc')
-rw-r--r-- | tools/doc/apilinks.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/doc/apilinks.js b/tools/doc/apilinks.js index 514d22e8dc..461805dac3 100644 --- a/tools/doc/apilinks.js +++ b/tools/doc/apilinks.js @@ -36,10 +36,10 @@ function execSync(command) { } // Determine origin repo and tag (or hash) of the most recent commit. -const local_branch = execSync('git name-rev --name-only HEAD'); -const tracking_remote = execSync(`git config branch.${local_branch}.remote`); -const remote_url = execSync(`git config remote.${tracking_remote}.url`); -const repo = (remote_url.match(/(\w+\/\w+)\.git\r?\n?$/) || +const localBranch = execSync('git name-rev --name-only HEAD'); +const trackingRemote = execSync(`git config branch.${localBranch}.remote`); +const remoteUrl = execSync(`git config remote.${trackingRemote}.url`); +const repo = (remoteUrl.match(/(\w+\/\w+)\.git\r?\n?$/) || ['', 'nodejs/node'])[1]; const hash = execSync('git log -1 --pretty=%H') || 'master'; |