| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7f406fd commit 752380a
6 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,7 +7,7 @@ REPOSITORY=$2 | |||
| 7 | 7 | shift 2 | |
| 8 | 8 | ||
| 9 | 9 | UPSTREAM=origin | |
| 10 | - DEFAULT_BRANCH=master | ||
| 10 | + DEFAULT_BRANCH=main | ||
| 11 | 11 | ||
| 12 | 12 | COMMIT_QUEUE_LABEL="commit-queue" | |
| 13 | 13 | COMMIT_QUEUE_FAILED_LABEL="commit-queue-failed" | |
@@ -86,7 +86,7 @@ for pr in "$@"; do | |||
| 86 | 86 | commit_title=$(git log -1 --pretty='format:%s') | |
| 87 | 87 | commit_body=$(git log -1 --pretty='format:%b') | |
| 88 | 88 | commit_head=$(grep 'Fetched commits as' output | cut -d. -f3 | xargs git rev-parse) | |
| 89 | - | ||
| 89 | + | ||
| 90 | 90 | jq -n \ | |
| 91 | 91 | --arg title "${commit_title}" \ | |
| 92 | 92 | --arg body "${commit_body}" \ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -41,7 +41,7 @@ const remoteUrl = execSync(`git config remote.${trackingRemote}.url`); | |||
| 41 | 41 | const repo = (remoteUrl.match(/(\w+\/\w+)\.git\r?\n?$/) || | |
| 42 | 42 | ['', 'nodejs/node'])[1]; | |
| 43 | 43 | ||
| 44 | - const hash = execSync('git log -1 --pretty=%H') || 'master'; | ||
| 44 | + const hash = execSync('git log -1 --pretty=%H') || 'main'; | ||
| 45 | 45 | const tag = execSync(`git describe --contains ${hash}`).split('\n')[0] || hash; | |
| 46 | 46 | ||
| 47 | 47 | // Extract definitions from each file specified. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -522,7 +522,7 @@ function altDocs(filename, docCreated, versions) { | |||
| 522 | 522 | } | |
| 523 | 523 | ||
| 524 | 524 | 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>`; | ||
| 526 | 526 | } | |
| 527 | 527 | ||
| 528 | 528 | function gtocPicker(id) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -32,7 +32,7 @@ const outFile = (process.argv.length > 2 ? process.argv[2] : undefined); | |||
| 32 | 32 | ||
| 33 | 33 | async function versions() { | |
| 34 | 34 | // 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. | ||
| 36 | 36 | const url = | |
| 37 | 37 | 'https://raw.githubusercontent.com/nodejs/node/HEAD/CHANGELOG.md'; | |
| 38 | 38 | let changelog; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 1 | 1 | #!/usr/bin/env node | |
| 2 | 2 | ||
| 3 | 3 | // Usage: | |
| 4 | - // git diff upstream/master...HEAD -G"pr-url:" -- "*.md" | \ | ||
| 4 | + // git diff upstream/main...HEAD -G"pr-url:" -- "*.md" | \ | ||
| 5 | 5 | // ./tools/lint-pr-url.mjs <expected-pr-url> | |
| 6 | 6 | ||
| 7 | 7 | import process from 'node:process'; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -49,5 +49,5 @@ echo "Please git add npm, commit the new version, and whitespace-fix:" | |||
| 49 | 49 | echo "" | |
| 50 | 50 | echo "$ git add -A deps/npm" | |
| 51 | 51 | echo "$ git commit -m \"deps: upgrade npm to $NPM_VERSION\"" | |
| 52 | - echo "$ git rebase --whitespace=fix master" | ||
| 52 | + echo "$ git rebase --whitespace=fix main" | ||
| 53 | 53 | echo "" | |
| Back | FazBrowse Home | New Git URL |
0 commit comments