Skip to content

Commit 768ea9d

Browse files
committed
Rename default branch to main
1 parent d4cf1b8 commit 768ea9d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ By making a contribution to this project, I certify that:
2929
The [Node.js Moderation Policy] applies to this project.
3030

3131
[Node.js Moderation Policy]:
32-
https://github.com/nodejs/admin/blob/master/Moderation-Policy.md
32+
https://github.com/nodejs/admin/blob/main/Moderation-Policy.md

test/_resolve-labels-helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ const path = require('path')
66
const actualResolveLabels = require('../lib/resolve-labels')
77

88
const config = fs.readFileSync(path.join(__dirname, '../.github/pr-labels.yml'), 'utf8')
9-
const defaultBaseBranch = 'master'
9+
const defaultBaseBranch = 'main'
1010

1111
exports.resolveLabels = (filepathsChanged, baseBranch, limitLabels) => actualResolveLabels(filepathsChanged, baseBranch || defaultBaseBranch, config, limitLabels)

test/resolve-labels.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,12 +427,12 @@ tap.test('label: version labels (new, staging)', (t) => {
427427
t.end()
428428
})
429429

430-
tap.test('label: no version labels (master)', (t) => {
430+
tap.test('label: no version labels (main)', (t) => {
431431
const labels = resolveLabels([
432432
'deps/v8/include/v8-version.h',
433433
'deps/v8/src/crankshaft/hydrogen.cc',
434434
'deps/v8/test/mjsunit/regress/regress-5033.js'
435-
], 'master')
435+
], 'main')
436436

437437
t.same(labels, ['needs-ci', 'V8 Engine'])
438438

0 commit comments

Comments
 (0)