Skip to content

Commit 217e6b5

Browse files
Trotttargos
authored andcommitted
tools: switch to camelcasing in apilinks.js
Use camelcasing in tools/doc/apilinks.js. PR-URL: #27607 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Anto Aravinth <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Yongsheng Zhang <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent 6bef4c0 commit 217e6b5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/doc/apilinks.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ function execSync(command) {
3636
}
3737

3838
// Determine origin repo and tag (or hash) of the most recent commit.
39-
const local_branch = execSync('git name-rev --name-only HEAD');
40-
const tracking_remote = execSync(`git config branch.${local_branch}.remote`);
41-
const remote_url = execSync(`git config remote.${tracking_remote}.url`);
42-
const repo = (remote_url.match(/(\w+\/\w+)\.git\r?\n?$/) ||
39+
const localBranch = execSync('git name-rev --name-only HEAD');
40+
const trackingRemote = execSync(`git config branch.${localBranch}.remote`);
41+
const remoteUrl = execSync(`git config remote.${trackingRemote}.url`);
42+
const repo = (remoteUrl.match(/(\w+\/\w+)\.git\r?\n?$/) ||
4343
['', 'nodejs/node'])[1];
4444

4545
const hash = execSync('git log -1 --pretty=%H') || 'master';

0 commit comments

Comments
 (0)