Skip to content

Commit 650b141

Browse files
authored
rename branch master to main (#41)
* rename branch master to main
1 parent 9cc141d commit 650b141

File tree

17 files changed

+24
-24
lines changed

17 files changed

+24
-24
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Test
22
on:
33
push:
4-
branches: [ master ]
4+
branches: [ main ]
55
pull_request:
6-
branches: [ master ]
6+
branches: [ main ]
77

88
jobs:
99
test:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ of support they may intend to provide. The [Node.js Package Maintenance Working
1414
is working to propose [a spec](https://github.com/nodejs/package-maintenance/blob/HEAD/docs/PACKAGE-SUPPORT.md) to help package authors declare their intended support goals. This package provides
1515
some tooling around working with the format proposed.
1616

17-
This repository is managed by the [Package Maintenance Working Group](https://github.com/nodejs/package-maintenance), see [Governance](https://github.com/nodejs/package-maintenance/blob/master/Governance.md).
17+
This repository is managed by the [Package Maintenance Working Group](https://github.com/nodejs/package-maintenance), see [Governance](https://github.com/nodejs/package-maintenance/blob/HEAD/Governance.md).
1818

1919
## Command line usage
2020

doc/command-line-usage.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ you can run the support tool using `npx @pkgjs/support`.
1818

1919
The support tool helps package consumers review and understand the
2020
package support information provided by maintainers. See
21-
[Package-support.md](https://github.com/nodejs/package-maintenance/blob/master/docs/PACKAGE-SUPPORT.md)
21+
[Package-support.md](https://github.com/nodejs/package-maintenance/blob/HEAD/docs/PACKAGE-SUPPORT.md)
2222
which documents the suggested best practice and the specific format of the
2323
package support information.
2424

@@ -97,7 +97,7 @@ npx @pkgjs/support show --canonical
9797
9898
9999
```
100-
@pkgjs/support(0.0.2) - https://github.com/pkgjs/support/blob/master/package-support.json
100+
@pkgjs/support(0.0.2) - https://github.com/pkgjs/support/blob/HEAD/package-support.json
101101
@npmcli/arborist(0.0.0) - unknown
102102
@npmcli/installed-package-contents(1.0.5) - unknown
103103
npm-bundled(1.1.1) - unknown
@@ -116,7 +116,7 @@ npx @pkgjs/support show --canonical
116116
```
117117
118118
where the support info is listed as
119-
`https://github.com/pkgjs/support/blob/master/package-support.json`
119+
`https://github.com/pkgjs/support/blob/HEAD/package-support.json`
120120
121121
The --canonical option does not automatically pull the remote information so that the
122122
consumer can choose to find the locations without automatically triggering a number of
@@ -151,7 +151,7 @@ of the package, the tool will simply print the url from which the support inform
151151
can be obtained versus displaying it. For example:
152152
153153
```
154-
@pkgjs/support-show-local-escape-ok(0.0.1) - https://github.com/pkgjs/support/blob/master/my-support-info.json
154+
@pkgjs/support-show-local-escape-ok(0.0.1) - https://github.com/pkgjs/support/blob/HEAD/my-support-info.json
155155
```
156156
157157
where the `support` entry was:
@@ -177,15 +177,15 @@ The `validate` command checks that both the information added to the package.jso
177177
and the file containing the support info (package-support.json by default) is valid.
178178
179179
180-
[Integration into package.json](https://github.com/nodejs/package-maintenance/blob/master/docs/PACKAGE-SUPPORT.md#integration-into-packagejson)
180+
[Integration into package.json](https://github.com/nodejs/package-maintenance/blob/HEAD/docs/PACKAGE-SUPPORT.md#integration-into-packagejson)
181181
explains the options for providing support info and what goes into the package.json for
182182
each case.
183183
184184
`npx @pkgjs/support validate` is run from the directory that contains the package.json for the package.
185185
Depending the how the `support` section in the package.json is configured validate will:
186186
187187
* validate the format of the `support` section in the package.json conforms to the
188-
documentation in [Integration into package.json](https://github.com/nodejs/package-maintenance/blob/master/docs/PACKAGE-SUPPORT.md#integration-into-packagejson)
188+
documentation in [Integration into package.json](https://github.com/nodejs/package-maintenance/blob/HEAD/docs/PACKAGE-SUPPORT.md#integration-into-packagejson)
189189
* calculate the file which contains the support info
190190
* if the file is available locally, use that data unless the `--canonical`
191191
option was specified.
@@ -205,7 +205,7 @@ If the support information is not available locally or you have specified
205205
`--canonical` without `--fetch` you'll see something like:
206206
207207
```shell
208-
support info not resolved: https://github.com/pkgjs/support/blob/master/package-support.json
208+
support info not resolved: https://github.com/pkgjs/support/blob/HEAD/package-support.json
209209
```
210210
211211
in this case the file is local to the package, but --canonical was specified. The same

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ module.exports.validate = (obj, cli = false) => {
6060

6161
// extract the URL for the support info from the pkg info
6262
module.exports.getRemoteSupportInfoUrl = (repository, supportPath) => {
63-
const gitHubInitialPath = '/blob/master/';
63+
const gitHubInitialPath = '/blob/HEAD/';
6464

6565
if (repository && (repository.type === 'git')) {
6666
const directory = repository.directory || '';

schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$id": "https://raw.githubusercontent.com/pkgjs/support/master/schema.json",
2+
"$id": "https://raw.githubusercontent.com/pkgjs/support/main/schema.json",
33
"$schema": "http://json-schema.org/draft-07/schema#",
44
"title": "Package Support Information",
55

support-element-schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$id": "https://raw.githubusercontent.com/pkgjs/support/master/support-element-schema.json",
2+
"$id": "https://raw.githubusercontent.com/pkgjs/support/main/support-element-schema.json",
33
"$schema": "http://json-schema.org/draft-07/schema#",
44
"title": "Package Support Package.json element",
55

test/cli/show-local-escape/expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
@pkgjs/support-show-local-escape(0.0.1) - https://github.com/pkgjs/support/blob/master/my-support-info.json
1+
@pkgjs/support-show-local-escape(0.0.1) - https://github.com/pkgjs/support/blob/HEAD/my-support-info.json

test/cli/show-local-path2/expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
@pkgjs/show-local-path2(0.0.1) - https://github.com/pkgjs/show-local-path2/blob/master/subdir/my-support-info.json
1+
@pkgjs/show-local-path2(0.0.1) - https://github.com/pkgjs/show-local-path2/blob/HEAD/subdir/my-support-info.json
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
@pkgjs/support-separate-repo-directory1(0.0.1) - https://github.com/pkgjs/support-separate-repo-other/blob/master/subdir2/my-support-package.json
1+
@pkgjs/support-separate-repo-directory1(0.0.1) - https://github.com/pkgjs/support-separate-repo-other/blob/HEAD/subdir2/my-support-package.json
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
@pkgjs/support-separate-repo-directory2(0.0.1) - https://github.com/pkgjs/support-separate-repo-other/blob/master/subdir2/package-support.json
1+
@pkgjs/support-separate-repo-directory2(0.0.1) - https://github.com/pkgjs/support-separate-repo-other/blob/HEAD/subdir2/package-support.json

0 commit comments

Comments
 (0)