Skip to content

Commit e17b915

Browse files
authored
chore(git): rename master branch references to main (stenciljs#3096)
update all references to the code of conduct and contributing guidelines to use 'main' instead of 'master' update github workflows to use main instead of master update the release notes tooling
1 parent 16b8ea4 commit e17b915

13 files changed

+17
-17
lines changed

.github/CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Thanks for your interest in contributing to Stencil! :tada:
55

66
## Contributing Etiquette
77

8-
Please see our [Contributor Code of Conduct](https://github.com/ionic-team/stencil/blob/master/CODE_OF_CONDUCT.md) for information on our rules of conduct.
8+
Please see our [Contributor Code of Conduct](https://github.com/ionic-team/stencil/blob/main/CODE_OF_CONDUCT.md) for information on our rules of conduct.
99

1010

1111
## Creating an Issue

.github/ISSUE_TEMPLATE/bug_report.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ body:
77
label: Prerequisites
88
description: Please ensure you have completed all of the following.
99
options:
10-
- label: I have read the [Contributing Guidelines](https://github.com/ionic-team/stencil/blob/master/.github/CONTRIBUTING.md).
10+
- label: I have read the [Contributing Guidelines](https://github.com/ionic-team/stencil/blob/main/.github/CONTRIBUTING.md).
1111
required: true
12-
- label: I agree to follow the [Code of Conduct](https://github.com/ionic-team/stencil/blob/master/CODE_OF_CONDUCT.md).
12+
- label: I agree to follow the [Code of Conduct](https://github.com/ionic-team/stencil/blob/main/CODE_OF_CONDUCT.md).
1313
required: true
1414
- label: I have searched for [existing issues](https://github.com/ionic-team/stencil/issues) that already report this problem, without success.
1515
required: true

.github/ISSUE_TEMPLATE/feature_request.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ body:
77
label: Prerequisites
88
description: Please ensure you have completed all of the following.
99
options:
10-
- label: I have read the [Contributing Guidelines](https://github.com/ionic-team/stencil/blob/master/.github/CONTRIBUTING.md).
10+
- label: I have read the [Contributing Guidelines](https://github.com/ionic-team/stencil/blob/main/.github/CONTRIBUTING.md).
1111
required: true
12-
- label: I agree to follow the [Code of Conduct](https://github.com/ionic-team/stencil/blob/master/CODE_OF_CONDUCT.md).
12+
- label: I agree to follow the [Code of Conduct](https://github.com/ionic-team/stencil/blob/main/CODE_OF_CONDUCT.md).
1313
required: true
1414
- label: I have searched for [existing issues](https://github.com/ionic-team/stencil/issues) that already include this feature request, without success.
1515
required: true

.github/PULL_REQUEST_TEMPLATE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- Please refer to our contributing documentation for any questions on submitting a pull request, or let us know here if you need any help: https://github.com/ionic-team/stencil/blob/master/.github/CONTRIBUTING.md -->
1+
<!-- Please refer to our contributing documentation for any questions on submitting a pull request, or let us know here if you need any help: https://github.com/ionic-team/stencil/blob/main/.github/CONTRIBUTING.md -->
22

33
## Pull request checklist
44

.github/workflows/browserstack.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: BrowserStack
33
on:
44
pull_request_target:
55
branches:
6-
- master
6+
- main
77

88
permissions: read-all
99

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build & Test
33
on:
44
push:
55
branches:
6-
- 'master'
6+
- 'main'
77
- 'v3.0.0-dev'
88
pull_request:
99
branches:

BREAKING_CHANGES.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ If you're using the `dist` output target, update the `package.json` in the root
7373

7474
Additionally the `dist/loader` output directory has renamed its extensions too, but since its `dist/loader/package.json` file is auto-generated, the entries were renamed too. So unless you were referencing the loader files directly you will not have to do external updates.
7575

76-
See the [Output Folder Structure Defaults](https://github.com/ionic-team/stencil/blob/master/src/compiler/output-targets/readme.md) for more info.
76+
See the [Output Folder Structure Defaults](https://github.com/ionic-team/stencil/blob/main/src/compiler/output-targets/readme.md) for more info.
7777

7878
### NodeJS Update
7979

notes/2020-03-11.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ So the Component tag would be the static getter `is` to define the component tag
7878

7979
**Answer:** We thought it had been fixed several times, but yeah, `**lerna**` uses a lot of npm symlinks, and this doesn´t play nice with `**jest**`.
8080

81-
**Manu & Adam**: talking about jest presets. [ionic-team/stencil jest-preset](https://github.com/ionic-team/stencil/blob/master/scripts/bundles/helpers/jest/jest-preset.js)
81+
**Manu & Adam**: talking about jest presets. [ionic-team/stencil jest-preset](https://github.com/ionic-team/stencil/blob/main/scripts/bundles/helpers/jest/jest-preset.js)
8282

8383
**Answer**: This might still not work with `lerna`. Biggest thing to figure out is how it runs by itself, to see if we got something to fix.
8484

notes/2020-05-13.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ With this PR Stencil will have some of the best web assembly support in the mark
4646
## On DevServer Modules (Experimental)
4747
----
4848
Any node modules that are being imported and bundled inside the package, during development, the devserver would not need to bundle them and would use them only as ES6 modules, the goal is to speed-up build times during development.
49-
https://github.com/ionic-team/stencil/blob/master/src/declarations/stencil-public-compiler.ts#L387-L394
49+
https://github.com/ionic-team/stencil/blob/main/src/declarations/stencil-public-compiler.ts#L387-L394
5050
Vue has this same concept: The devserver is only serving the modules AS modules and not as part of the dev bundle.
5151
## On Static Site generation
5252
----

notes/2020-08-12.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export class HelloWorld {
4242
}
4343
```
4444

45-
The example can be found in the following [hello-vdom.tsx](https://github.com/ionic-team/stencil/blob/master/test/hello-vdom/src/components/hello-vdom.tsx).
45+
The example can be found in the following [hello-vdom.tsx](https://github.com/ionic-team/stencil/blob/main/test/hello-vdom/src/components/hello-vdom.tsx).
4646

4747
Sass should be consumed the same way but it has not yet been tested.
4848

readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,13 @@ Stencil is a tool developers use to create Web Components with some powerful fea
123123

124124
## License
125125

126-
- [MIT](https://raw.githubusercontent.com/ionic-team/stencil/master/LICENSE.md)
126+
- [MIT](https://raw.githubusercontent.com/ionic-team/stencil/main/LICENSE.md)
127127

128128

129129
[npm-badge]: https://img.shields.io/npm/v/@stencil/core.svg
130130
[npm-badge-url]: https://www.npmjs.com/package/@stencil/core
131131
[npm-license]: https://img.shields.io/npm/l/@stencil/core.svg
132-
[npm-license-url]: https://github.com/ionic-team/stencil/blob/master/LICENSE
132+
[npm-license-url]: https://github.com/ionic-team/stencil/blob/main/LICENSE
133133
[circle-badge]: https://circleci.com/gh/ionic-team/stencil.svg?style=shield
134134
[circle-badge-url]: https://circleci.com/gh/ionic-team/stencil
135135
[browserstack-badge]: https://www.browserstack.com/automate/badge.svg?badge_key=WVNVbkRJdDBJQnBEMzZuWUdlMEZuTjlPUm9sOHZsSVNkUlJTRkJVQkx0ST0tLTFhbk5jRUNEVWxJL1J0SVR0WUFndnc9PQ==--90c84981a2ed2ede760ca48fbfc3fdd5b71d3e5e

scripts/release-tasks.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ export function runReleaseTasks(opts: BuildOptions, args: ReadonlyArray<string>)
9191
title: 'Check current branch',
9292
task: () =>
9393
execa('git', ['symbolic-ref', '--short', 'HEAD']).then(({ stdout }) => {
94-
if (stdout !== 'master' && !isAnyBranch) {
95-
throw new Error('Not on `master` branch. Use --any-branch to publish anyway.');
94+
if (stdout !== 'main' && !isAnyBranch) {
95+
throw new Error('Not on `main` branch. Use --any-branch to publish anyway.');
9696
}
9797
}),
9898
skip: () => isDryRun,

src/sys/node/node-stencil-version-checker.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { tmpdir } from 'os';
77

88
const REGISTRY_URL = `https://registry.npmjs.org/@stencil/core`;
99
const CHECK_INTERVAL = 1000 * 60 * 60 * 24 * 7;
10-
const CHANGELOG = `https://github.com/ionic-team/stencil/blob/master/CHANGELOG.md`;
10+
const CHANGELOG = `https://github.com/ionic-team/stencil/blob/main/CHANGELOG.md`;
1111

1212
export async function checkVersion(logger: Logger, currentVersion: string): Promise<() => void> {
1313
try {

0 commit comments

Comments
 (0)