Skip to content

Commit 68a6a07

Browse files
devversionAndrewKushnir
authored andcommitted
build: clean up references to old master branch (angular#45856)
Cleans up all references to the `master` branch we renamed to `main` across Angular. PR Close angular#45856
1 parent aef5c92 commit 68a6a07

File tree

70 files changed

+200
-215
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+200
-215
lines changed

.circleci/config.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,13 @@ var_10: &only_on_main_branch
6464
branches:
6565
only:
6666
- main
67-
# TODO(BRANCH_RENAME_CLEANUP): remove
68-
- master
6967

7068
# Filter to run a job on all releasable branches.
7169
var_11: &only_release_branches
7270
filters:
7371
branches:
7472
only:
7573
- main
76-
# TODO(BRANCH_RENAME_CLEANUP): remove
77-
- master
7874
- /\d+\.\d+\.x/
7975

8076
# CircleCI orbs
@@ -308,7 +304,7 @@ jobs:
308304
path: dist/bin/packages/core/test/bundling/todo/bundle.min.js.br
309305
destination: core/todo/bundle.br
310306

311-
# NOTE: This is currently limited to master builds only. See the `monitoring` configuration.
307+
# NOTE: This is currently limited to main builds only. See the `monitoring` configuration.
312308
saucelabs:
313309
executor:
314310
name: default-executor

.circleci/rebase-pr.js

-8
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,6 @@ function getRefFromBranchList(gitOutput) {
101101
return 1;
102102
}
103103

104-
// TODO(BRANCH_RENAME_CLEANUP): remove
105-
if (a === 'master') {
106-
return -1;
107-
}
108-
if (b === 'master') {
109-
return 1;
110-
}
111-
112104
const aIsSemver = semverRegex.test(a);
113105
const bIsSemver = semverRegex.test(b);
114106
if (aIsSemver && bIsSemver) {

.github/ISSUE_TEMPLATE/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ contact_links:
1010
url: https://github.com/angular/components/issues/new/choose
1111
about: Issues and feature requests for Angular Material
1212
- name: Support Request
13-
url: https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
13+
url: https://github.com/angular/angular/blob/main/CONTRIBUTING.md#question
1414
about: Questions and requests for support

.github/PULL_REQUEST_TEMPLATE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## PR Checklist
22
Please check if your PR fulfills the following requirements:
33

4-
- [ ] The commit message follows our guidelines: https://github.com/angular/angular/blob/master/CONTRIBUTING.md#commit
4+
- [ ] The commit message follows our guidelines: https://github.com/angular/angular/blob/main/CONTRIBUTING.md#commit
55
- [ ] Tests for the changes have been added (for bug fixes / features)
66
- [ ] Docs have been added / updated (for bug fixes / features)
77

.github/angular-robot.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ merge:
9797

9898
# whether the PR shouldn't have a conflict with the base branch
9999
noConflict: true
100-
# list of labels that a PR needs to have, checked with a regexp (e.g. "target:" will work for the label "target: master")
100+
# list of labels that a PR needs to have, checked with a regexp.
101101
requiredLabels:
102102
- 'target: *'
103103

@@ -119,7 +119,7 @@ merge:
119119
# the comment that will be added when the merge label is added despite failing checks, leave empty or set to false to disable
120120
# {{MERGE_LABEL}} will be replaced by the value of the mergeLabel option
121121
# {{PLACEHOLDER}} will be replaced by the list of failing checks
122-
mergeRemovedComment: "I see that you just added the `{{MERGE_LABEL}}` label, but the following checks are still failing:\n{{PLACEHOLDER}}\n\n**If you want your PR to be merged, it has to pass all the CI checks.**\n\nIf you can't get the PR to a green state due to flakes or broken master, please try rebasing to master and/or restarting the CI job. If that fails and you believe that the issue is not due to your change, please contact the caretaker and ask for help."
122+
mergeRemovedComment: "I see that you just added the `{{MERGE_LABEL}}` label, but the following checks are still failing:\n{{PLACEHOLDER}}\n\n**If you want your PR to be merged, it has to pass all the CI checks.**\n\nIf you can't get the PR to a green state due to flakes or broken `main`, please try rebasing to `main` and/or restarting the CI job. If that fails and you believe that the issue is not due to your change, please contact the caretaker and ask for help."
123123

124124
# options for the triage plugin
125125
triage:

.github/workflows/scorecard.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@ on:
44
schedule:
55
- cron: '0 0 * * 0'
66
push:
7-
branches: [
8-
main,
9-
# TODO(BRANCH_RENAME_CLEANUP): remove
10-
master,
11-
]
7+
branches: [main]
128
workflow_dispatch:
139

1410
# Declare default permissions as read only.

.gitmessage

+3-3
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Fixes #<issue number>
7474
# =============================
7575
#
7676
# The full specification of the Angular Commit Message Format can be found at
77-
# https://github.com/angular/angular/blob/master/CONTRIBUTING.md#commit
77+
# https://github.com/angular/angular/blob/main/CONTRIBUTING.md#commit
7878
#
7979
# The following is an excerpt of the specification with the most commonly needed info.
8080
#
@@ -108,10 +108,10 @@ Fixes #<issue number>
108108
# │ platform-browser-dynamic|platform-server|router|service-worker|
109109
# │ upgrade|zone.js|packaging|changelog|docs-infra|migrations|ngcc|ve|
110110
# │ devtools
111-
# │ https://github.com/angular/angular/blob/master/CONTRIBUTING.md#scope
111+
# │ https://github.com/angular/angular/blob/main/CONTRIBUTING.md#scope
112112
# │
113113
# └─⫸ Commit Type: build|ci|docs|feat|fix|perf|refactor|style|test
114-
# https://github.com/angular/angular/blob/master/CONTRIBUTING.md#type
114+
# https://github.com/angular/angular/blob/main/CONTRIBUTING.md#type
115115
#
116116
#
117117
# Commit Message Body

CONTRIBUTING.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Before you submit your Pull Request (PR) consider the following guidelines:
9494
5. In your forked repository, make your changes in a new git branch:
9595

9696
```shell
97-
git checkout -b my-fix-branch master
97+
git checkout -b my-fix-branch main
9898
```
9999

100100
6. Create your patch, **including appropriate test cases**.
@@ -117,7 +117,7 @@ Before you submit your Pull Request (PR) consider the following guidelines:
117117
git push origin my-fix-branch
118118
```
119119

120-
11. In GitHub, send a pull request to `angular:master`.
120+
11. In GitHub, send a pull request to `angular:main`.
121121

122122
### Reviewing a Pull Request
123123

@@ -181,10 +181,10 @@ After your pull request is merged, you can safely delete your branch and pull th
181181
git push origin --delete my-fix-branch
182182
```
183183

184-
* Check out the master branch:
184+
* Check out the main branch:
185185

186186
```shell
187-
git checkout master -f
187+
git checkout main -f
188188
```
189189

190190
* Delete the local branch:
@@ -193,10 +193,10 @@ After your pull request is merged, you can safely delete your branch and pull th
193193
git branch -D my-fix-branch
194194
```
195195

196-
* Update your master with the latest upstream version:
196+
* Update your local `main` with the latest upstream version:
197197

198198
```shell
199-
git pull --ff upstream master
199+
git pull --ff upstream main
200200
```
201201

202202

@@ -397,7 +397,7 @@ The following documents can help you sort out issues with GitHub accounts and mu
397397
[coc]: https://github.com/angular/code-of-conduct/blob/master/CODE_OF_CONDUCT.md
398398
[commit-message-format]: https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/edit#
399399
[corporate-cla]: https://cla.developers.google.com/about/google-corporate
400-
[dev-doc]: https://github.com/angular/angular/blob/master/docs/DEVELOPER.md
400+
[dev-doc]: https://github.com/angular/angular/blob/main/docs/DEVELOPER.md
401401
[github]: https://github.com/angular/angular
402402
[discord]: https://discord.gg/angular
403403
[individual-cla]: https://cla.developers.google.com/about/google-individual

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
</p>
2525

2626
<p align="center">
27-
<a href="https://circleci.com/gh/angular/workflows/angular/tree/master">
28-
<img src="https://img.shields.io/circleci/build/github/angular/angular/master.svg?logo=circleci&logoColor=fff&label=CircleCI" alt="CI status" />
27+
<a href="https://circleci.com/gh/angular/workflows/angular/tree/main">
28+
<img src="https://img.shields.io/circleci/build/github/angular/angular/main.svg?logo=circleci&logoColor=fff&label=CircleCI" alt="CI status" />
2929
</a>&nbsp;
3030
<a href="https://www.npmjs.com/@angular/core">
3131
<img src="https://img.shields.io/npm/v/@angular/core.svg?logo=npm&logoColor=fff&label=NPM+package&color=limegreen" alt="Angular on npm" />

aio/aio-builds-setup/docs/vm-setup--update-docker-container.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Assuming you have cloned the repository containing the preview server code (as d
66
[here](vm-setup--create-docker-image.md)), you can use the `update-preview-server.sh` script on the
77
VM host to update the preview server based on changes in the source code.
88

9-
The script will pull the latest changes from the origin's master branch and examine if there have
9+
The script will pull the latest changes from the origin's main branch and examine if there have
1010
been any changes in files inside the preview server source code directory (see below). If there are,
1111
it will create a new image and verify that it works as expected. Finally, it will stop and remove
1212
the old docker container and image, create a new container based on the new image and start it.

aio/aio-builds-setup/scripts/update-preview-server.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ readonly CONTAINER_NAME=aio
2525
readonly lastDeployedCommit=$(git rev-parse HEAD)
2626
echo "Currently at commit $lastDeployedCommit."
2727

28-
# Pull latest master from origin.
29-
git pull origin master
28+
# Pull latest main from origin.
29+
git pull origin main
3030

3131
# Do not update the server unless files inside `aio-builds-setup/` have changed
3232
# or the last attempt failed (identified by the provisional image still being around).

aio/content/examples/testing/src/app/app.component.router.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// For more examples:
2-
// https://github.com/angular/angular/blob/master/modules/@angular/router/test/integration.spec.ts
2+
// https://github.com/angular/angular/blob/main/packages/router/test/integration.spec.ts
33

44
import { waitForAsync, ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing';
55

aio/content/examples/universal/server.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function app() {
1515
const indexHtml = existsSync(join(distFolder, 'index.original.html')) ? 'index.original.html' : 'index';
1616

1717
// #docregion ngExpressEngine
18-
// Our Universal express-engine (found @ https://github.com/angular/universal/tree/master/modules/express-engine)
18+
// Our Universal express-engine (found @ https://github.com/angular/universal/tree/main/modules/express-engine)
1919
server.engine('html', ngExpressEngine({
2020
bootstrap: AppServerModule,
2121
}));

aio/content/guide/aot-compiler.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ You can think of `.metadata.json` as a diagram of the overall structure of a dec
109109

110110
<div class="alert is-helpful">
111111

112-
Angular's [schema.ts](https://github.com/angular/angular/blob/master/packages/compiler-cli/src/metadata/schema.ts) describes the JSON format as a collection of TypeScript interfaces.
112+
Angular's [schema.ts](https://github.com/angular/angular/blob/main/packages/compiler-cli/src/metadata/schema.ts) describes the JSON format as a collection of TypeScript interfaces.
113113

114114
</div>
115115

@@ -389,7 +389,7 @@ export class TypicalModule {}
389389
</code-example>
390390

391391
The Angular [`RouterModule`](api/router/RouterModule) exports two macro static methods, `forRoot` and `forChild`, to help declare root and child routes.
392-
Review the [source code](https://github.com/angular/angular/blob/master/packages/router/src/router_module.ts#L139 "RouterModule.forRoot source code")
392+
Review the [source code](https://github.com/angular/angular/blob/main/packages/router/src/router_module.ts#L139 "RouterModule.forRoot source code")
393393
for these methods to see how macros can simplify configuration of complex [NgModules](guide/ngmodules).
394394

395395
<a id="metadata-rewriting"></a>

aio/content/guide/contributors-guide-overview.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The topics in this section cover ways in which you can contribute to the Angular
66

77
## Before you begin
88

9-
Before you get started with your contributions, we recommend that you review [Contributing to Angular](https://github.com/angular/angular/blob/master/CONTRIBUTING.md). That topic explains many of the tasks and guidelines you need to know before you make your first pull request.
9+
Before you get started with your contributions, we recommend that you review [Contributing to Angular](https://github.com/angular/angular/blob/main/CONTRIBUTING.md). That topic explains many of the tasks and guidelines you need to know before you make your first pull request.
1010

1111
## Contributing to Angular
1212

0 commit comments

Comments
 (0)