Skip to content

Commit 752380a

Browse files
F3n67utargos
authored andcommitted
tools: update main branch name
PR-URL: #43440 Refs: #33864 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: LiviaMedeiros <[email protected]> Reviewed-By: Beth Griggs <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
1 parent 7f406fd commit 752380a

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

tools/actions/commit-queue.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ REPOSITORY=$2
77
shift 2
88

99
UPSTREAM=origin
10-
DEFAULT_BRANCH=master
10+
DEFAULT_BRANCH=main
1111

1212
COMMIT_QUEUE_LABEL="commit-queue"
1313
COMMIT_QUEUE_FAILED_LABEL="commit-queue-failed"
@@ -86,7 +86,7 @@ for pr in "$@"; do
8686
commit_title=$(git log -1 --pretty='format:%s')
8787
commit_body=$(git log -1 --pretty='format:%b')
8888
commit_head=$(grep 'Fetched commits as' output | cut -d. -f3 | xargs git rev-parse)
89-
89+
9090
jq -n \
9191
--arg title "${commit_title}" \
9292
--arg body "${commit_body}" \

tools/doc/apilinks.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const remoteUrl = execSync(`git config remote.${trackingRemote}.url`);
4141
const repo = (remoteUrl.match(/(\w+\/\w+)\.git\r?\n?$/) ||
4242
['', 'nodejs/node'])[1];
4343

44-
const hash = execSync('git log -1 --pretty=%H') || 'master';
44+
const hash = execSync('git log -1 --pretty=%H') || 'main';
4545
const tag = execSync(`git describe --contains ${hash}`).split('\n')[0] || hash;
4646

4747
// Extract definitions from each file specified.

tools/doc/html.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ function altDocs(filename, docCreated, versions) {
522522
}
523523

524524
function editOnGitHub(filename) {
525-
return `<li class="edit_on_github"><a href="https://github.com/nodejs/node/edit/master/doc/api/${filename}.md">Edit on GitHub</a></li>`;
525+
return `<li class="edit_on_github"><a href="https://github.com/nodejs/node/edit/main/doc/api/${filename}.md">Edit on GitHub</a></li>`;
526526
}
527527

528528
function gtocPicker(id) {

tools/doc/versions.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const outFile = (process.argv.length > 2 ? process.argv[2] : undefined);
3232

3333
async function versions() {
3434
// The CHANGELOG.md on release branches may not reference newer semver
35-
// majors of Node.js so fetch and parse the version from the master branch.
35+
// majors of Node.js so fetch and parse the version from the main branch.
3636
const url =
3737
'https://raw.githubusercontent.com/nodejs/node/HEAD/CHANGELOG.md';
3838
let changelog;

tools/lint-pr-url.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env node
22

33
// Usage:
4-
// git diff upstream/master...HEAD -G"pr-url:" -- "*.md" | \
4+
// git diff upstream/main...HEAD -G"pr-url:" -- "*.md" | \
55
// ./tools/lint-pr-url.mjs <expected-pr-url>
66

77
import process from 'node:process';

tools/update-npm.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,5 @@ echo "Please git add npm, commit the new version, and whitespace-fix:"
4949
echo ""
5050
echo "$ git add -A deps/npm"
5151
echo "$ git commit -m \"deps: upgrade npm to $NPM_VERSION\""
52-
echo "$ git rebase --whitespace=fix master"
52+
echo "$ git rebase --whitespace=fix main"
5353
echo ""

0 commit comments

Comments
 (0)