Skip to content

Commit 156f15e

Browse files
devversiondgp1130
authored andcommitted
build: cleanup references to old master branch
Cleans up all referneces to the old `master` branch.
1 parent 6ceaaea commit 156f15e

File tree

18 files changed

+54
-62
lines changed

18 files changed

+54
-62
lines changed

‎.circleci/config.yml

-4
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ var_5: &only_release_branches
3030
branches:
3131
only:
3232
- main
33-
# TODO(BRANCH_RENAME_CLEANUP): remove
34-
- master
3533
- /\d+\.\d+\.x/
3634

3735
# Executor Definitions
@@ -364,8 +362,6 @@ workflows:
364362
only:
365363
- renovate/angular
366364
- main
367-
# TODO(BRANCH_RENAME_CLEANUP): remove
368-
- master
369365
- e2e-cli:
370366
name: e2e-cli-node-16
371367
nodeversion: '16.10'

‎.github/ISSUE_TEMPLATE/1-bug-report.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Share the link to the repo below along with step-by-step instructions to reprodu
5757
5858
Issues that don't have enough info and can't be reproduced will be closed.
5959
60-
You can read more about issue submission guidelines here: https://github.com/angular/angular-cli/blob/master/CONTRIBUTING.md#-submitting-an-issue
60+
You can read more about issue submission guidelines here: https://github.com/angular/angular-cli/blob/main/CONTRIBUTING.md#-submitting-an-issue
6161
-->
6262

6363
## 🔥 Exception or Error

‎.github/ISSUE_TEMPLATE/5-support-request.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ about: Questions and requests for support
88
Please do not file questions or support requests on the GitHub issues tracker.
99

1010
You can get your questions answered using other communication channels. Please see:
11-
https://github.com/angular/angular-cli/blob/master/CONTRIBUTING.md#question
11+
https://github.com/angular/angular-cli/blob/main/CONTRIBUTING.md#question
1212

1313
Thank you!
1414

‎.github/SAVED_REPLIES.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Thanks for reporting this issue. However, this issue is a duplicate of #<ISSUE_N
2929
## Angular CLI: Insufficient Information Provided (v1)
3030

3131
```
32-
Thanks for reporting this issue. However, you didn't provide sufficient information for us to understand and reproduce the problem. Please check out [our submission guidelines](https://github.com/angular/angular-cli/blob/master/CONTRIBUTING.md#-submitting-an-issue) to understand why we can't act on issues that are lacking important information.
32+
Thanks for reporting this issue. However, you didn't provide sufficient information for us to understand and reproduce the problem. Please check out [our submission guidelines](https://github.com/angular/angular-cli/blob/main/CONTRIBUTING.md#-submitting-an-issue) to understand why we can't act on issues that are lacking important information.
3333
3434
If the problem persists, please file a new issue and ensure you provide all of the required information when filling out the issue template.
3535
```
@@ -55,7 +55,7 @@ I'm sorry, but we can't reproduce the problem following the instructions you pro
5555
Remember that we have a large number of issues to resolve, and have only a limited amount of time to reproduce your issue.
5656
Short, explicit instructions make it much more likely we'll be able to reproduce the problem so we can fix it.
5757
58-
If the problem persists, please open a new issue following [our submission guidelines](https://github.com/angular/angular-cli/blob/master/CONTRIBUTING.md#-submitting-an-issue).
58+
If the problem persists, please open a new issue following [our submission guidelines](https://github.com/angular/angular-cli/blob/main/CONTRIBUTING.md#-submitting-an-issue).
5959
6060
A good way to make a minimal repro is to create a new app via `ng new repro-app` and adding the minimum possible code to show the problem. Then you can push this repository to github and link it here.
6161
```
@@ -73,7 +73,7 @@ If the problem persists after upgrading, please open a new issue, provide a simp
7373
```
7474
Hello, we reviewed this issue and determined that it doesn't fall into the bug report or feature request category. This issue tracker is not suitable for support requests, please repost your issue on [StackOverflow](http://stackoverflow.com/) using tag `angular-cli`.
7575
76-
If you are wondering why we don't resolve support issues via the issue tracker, please [check out this explanation](https://github.com/angular/angular-cli/blob/master/CONTRIBUTING.md#-got-a-question-or-problem).
76+
If you are wondering why we don't resolve support issues via the issue tracker, please [check out this explanation](https://github.com/angular/angular-cli/blob/main/CONTRIBUTING.md#-got-a-question-or-problem).
7777
```
7878

7979
## Angular CLI: Static Analysis errors (v1)

‎.github/angular-robot.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ merge:
5858
checks are still failing:
5959
6060
{{PLACEHOLDER}}
61-
61+
6262
**If you want your PR to be merged, it has to pass all the CI checks.**
63-
64-
If you can't get the PR to a green state due to flakes or broken master,
65-
please try rebasing to master and/or restarting the CI job. If that fails
63+
64+
If you can't get the PR to a green state due to flakes or broken `main`,
65+
please try rebasing to `main` and/or restarting the CI job. If that fails
6666
and you believe that the issue is not due to your change, please contact the
6767
caretaker and ask for help.
6868
# options for the triage plugin

‎.github/workflows/scorecard.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@ on:
44
schedule:
55
- cron: '0 2 * * 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.

‎CONTRIBUTING.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Before you submit your Pull Request (PR) consider the following guidelines:
8484
* Make your changes in a new git branch:
8585

8686
```shell
87-
git checkout -b my-fix-branch master
87+
git checkout -b my-fix-branch main
8888
```
8989

9090
* Create your patch, **including appropriate test cases**.
@@ -106,19 +106,19 @@ Before you submit your Pull Request (PR) consider the following guidelines:
106106
git push origin my-fix-branch
107107
```
108108

109-
* In GitHub, send a pull request to `angular/angular-cli:master`.
109+
* In GitHub, send a pull request to `angular/angular-cli:main`.
110110
* If we suggest changes then:
111111
* Make the required updates.
112112
* Re-run the Angular DevKit test suites to ensure tests are still passing.
113113
* Once your PR is approved and you are done with any follow up changes:
114-
* Rebase to the current master to pre-emptively address any merge conflicts.
114+
* Rebase to the current main to pre-emptively address any merge conflicts.
115115

116116
```shell
117-
git rebase master -i
117+
git rebase upstream/main -i
118118
git push -f
119119
```
120120
* Add the `action: merge` label and the correct
121-
[target label](https://github.com/angular/angular/blob/master/docs/TRIAGE_AND_LABELS.md#pr-target)
121+
[target label](https://github.com/angular/angular/blob/main/docs/TRIAGE_AND_LABELS.md#pr-target)
122122
(if PR author has the project collaborator status, or else the last reviewer
123123
should do this).
124124
* The current caretaker will merge the PR to the target branch(es) within 1-2
@@ -137,10 +137,10 @@ from the main (upstream) repository:
137137
git push origin --delete my-fix-branch
138138
```
139139
140-
* Check out the master branch:
140+
* Check out the main branch:
141141
142142
```shell
143-
git checkout master -f
143+
git checkout main -f
144144
```
145145
146146
* Delete the local branch:
@@ -149,10 +149,10 @@ from the main (upstream) repository:
149149
git branch -D my-fix-branch
150150
```
151151
152-
* Update your master with the latest upstream version:
152+
* Update your local `main` with the latest upstream version:
153153
154154
```shell
155-
git pull --ff upstream master
155+
git pull --ff upstream main
156156
```
157157
158158
## <a name="rules"></a> Coding Rules
@@ -192,15 +192,15 @@ If the commit reverts a previous commit, it should begin with `revert: `, follow
192192
### Type
193193
Must be one of the following:
194194

195-
* **build**: Changes to local repository build system and tooling
195+
* **build**: Changes to local repository build system and tooling
196196
* **ci**: Changes to CI configuration and CI specific tooling [2]
197-
* **docs**: Changes which exclusively affects documentation.
197+
* **docs**: Changes which exclusively affects documentation.
198198
* **feat**: Creates a new feature [1]
199199
* **fix**: Fixes a previously discovered failure/bug [1]
200200
* **perf**: Improves performance without any change in functionality or API [1]
201-
* **refactor**: Refactor without any change in functionality or API (includes style changes)
201+
* **refactor**: Refactor without any change in functionality or API (includes style changes)
202202
* **release**: A release point in the repository [2]
203-
* **test**: Improvements or corrections made to the project's test suite
203+
* **test**: Improvements or corrections made to the project's test suite
204204
205205
206206
<sup>[1] This type MUST have a scope. See the next section for more information.</sup><br/>
@@ -292,7 +292,7 @@ changes to be accepted, the CLA must be signed. It's a quick process, we promise
292292
[coc]: https://github.com/angular/code-of-conduct/blob/master/CODE_OF_CONDUCT.md
293293
[commit-message-format]: https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/edit#
294294
[corporate-cla]: http://code.google.com/legal/corporate-cla-v1.0.html
295-
[dev-doc]: https://github.com/angular/angular-cli/blob/master/packages/angular/cli/README.md#development-hints-for-working-on-angular-cli
295+
[dev-doc]: https://github.com/angular/angular-cli/blob/main/packages/angular/cli/README.md#development-hints-for-working-on-angular-cli
296296
[GitHub]: https://github.com/angular/angular-cli
297297
[gitter]: https://gitter.im/angular/angular-cli
298298
[individual-cla]: http://code.google.com/legal/individual-cla-v1.0.html

‎README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<br>
1717
<img src="/docs/images/angular-cli-logo.png" alt="Angular CLI logo" width="100px" height="108px"/>
1818
<br><br>
19-
<i>The Angular CLI is a command-line interface tool that you use to initialize, develop, scaffold,
19+
<i>The Angular CLI is a command-line interface tool that you use to initialize, develop, scaffold,
2020
<br>and maintain Angular applications directly from a command shell.</i>
2121
<br>
2222
</p>
@@ -37,8 +37,8 @@
3737
</p>
3838

3939
<p align="center">
40-
<a href="https://circleci.com/gh/angular/workflows/angular-cli/tree/master">
41-
<img src="https://img.shields.io/circleci/build/github/angular/angular-cli/master.svg?logo=circleci&logoColor=fff&label=CircleCI" alt="CI status" />
40+
<a href="https://circleci.com/gh/angular/workflows/angular-cli/tree/main">
41+
<img src="https://img.shields.io/circleci/build/github/angular/angular-cli/main.svg?logo=circleci&logoColor=fff&label=CircleCI" alt="CI status" />
4242
</a>&nbsp;
4343
<a href="https://discord.gg/angular">
4444
<img src="https://img.shields.io/discord/463752820026376202.svg?logo=discord&logoColor=fff&label=Discord&color=7389d8" alt="Discord conversation" />
@@ -194,7 +194,7 @@ This is a monorepo which contains many tools and packages:
194194
[filestructure]: https://angular.io/guide/file-structure
195195
[node.js]: https://nodejs.org/
196196
[npm]: https://www.npmjs.com/get-npm
197-
[codeofconduct]: https://github.com/angular/angular/blob/master/CODE_OF_CONDUCT.md
197+
[codeofconduct]: https://github.com/angular/angular/blob/main/CODE_OF_CONDUCT.md
198198
[twitter]: https://www.twitter.com/angular
199199
[discord]: https://discord.gg/angular
200200
[gitter]: https://gitter.im/angular/angular-cli

‎docs/DEVELOPER.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ There are two different test suites which can be run locally:
7878
- Run a subset of the tests, use the full Bazel target example: `yarn bazel test //packages/schematics/angular:angular_test`
7979
- For a complete list of test targets use the following Bazel query: `yarn bazel query "tests(//packages/...)"`
8080

81-
You can find more info about debugging [tests with Bazel in the docs.](https://github.com/angular/angular-cli/blob/master/docs/process/bazel.md#debugging-jasmine_node_test)
81+
You can find more info about debugging [tests with Bazel in the docs.](https://github.com/angular/angular-cli/blob/main/docs/process/bazel.md#debugging-jasmine_node_test)
8282

8383
### End to end tests
8484

‎docs/design/build-system.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ It's not strictly accurate because some options remove certain processing stages
2424
This diagram doesn't show these conditionals and only shows the possible processing steps.
2525
Relative paths, such as `./raw-css-loader.ts`, refer to internal plugins, while other names usually refer to public npm packages.
2626

27-
![Overview diagram](https://g.gravizo.com/source/svg?https://raw.githubusercontent.com/angular/angular-cli/master/docs/design/build-system-overview.dot)
27+
![Overview diagram](https://g.gravizo.com/source/svg?https://raw.githubusercontent.com/angular/angular-cli/main/docs/design/build-system-overview.dot)
2828

2929
## Loading and processing sources
3030

@@ -128,7 +128,7 @@ We also use Terser's mangling, by which names, but not properties, are renamed t
128128
The main characteristics of Terser to keep in mind is that it operates via static analysis and does not support the indirection introduced by module loading.
129129
Thus the rest of the pipeline is directed towards providing Terser with code that can be removed via static analysis in large single modules scopes.
130130

131-
To this end we developed [@angular-devkit/build-optimizer](https://github.com/angular/angular-cli/tree/master/packages/angular_devkit/build_optimizer), a post-processing tool for TS code.
131+
To this end we developed [@angular-devkit/build-optimizer](https://github.com/angular/angular-cli/tree/main/packages/angular_devkit/build_optimizer), a post-processing tool for TS code.
132132
Build Optimizer searches for code patterns produced by the TypeScript and Angular compiler that are known to inhibit dead code elimination, and converts them into equivalent structures that enable it instead (the link above contains some examples).
133133
It also adds Terser [annotations](https://github.com/terser/terser#annotations) marking top-level functions as free from side effects for libraries that have the `sideEffects` flag set to false in `package.json`.
134134

‎docs/process/release.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The caretaker should triage issues, merge PR, and sheppard the release.
1414
Caretaker calendar can be found [here](https://calendar.google.com/calendar/embed?src=angular.io_jf53juok1lhpm84hv6bo6fmgbc%40group.calendar.google.com&ctz=America%2FLos_Angeles).
1515

1616
Each shift consists of two caretakers. The primary caretaker is responsible for
17-
merging PRs to master and patch whereas the secondary caretaker is responsible
17+
merging PRs to `main` and patch whereas the secondary caretaker is responsible
1818
for the release. Primary-secondary pairs are as follows:
1919

2020
| Primary | Secondary |

‎packages/angular_devkit/build_angular/test/hello-world-app/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protrac
2424

2525
## Further help
2626

27-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
27+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/main/README.md).

‎packages/angular_devkit/schematics/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ What distinguishes Schematics from other generators, such as Yeoman or Yarn Crea
2323

2424
# Tooling
2525

26-
Schematics is a library, and does not work by itself. A [reference CLI](https://github.com/angular/angular-cli/blob/master/packages/angular_devkit/schematics_cli/bin/schematics.ts) is available on this repository, and is published on NPM at [@angular-devkit/schematics-cli](https://www.npmjs.com/package/@angular-devkit/schematics-cli). This document explains the library usage and the tooling API, but does not go into the tool implementation itself.
26+
Schematics is a library, and does not work by itself. A [reference CLI](https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics_cli/bin/schematics.ts) is available on this repository, and is published on NPM at [@angular-devkit/schematics-cli](https://www.npmjs.com/package/@angular-devkit/schematics-cli). This document explains the library usage and the tooling API, but does not go into the tool implementation itself.
2727

2828
The tooling is responsible for the following tasks:
2929

‎packages/ngtools/webpack/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"bugs": {
2020
"url": "https://github.com/angular/angular-cli/issues"
2121
},
22-
"homepage": "https://github.com/angular/angular-cli/tree/master/packages/@ngtools/webpack",
22+
"homepage": "https://github.com/angular/angular-cli/tree/main/packages/ngtools/webpack",
2323
"dependencies": {},
2424
"peerDependencies": {
2525
"@angular/compiler-cli": "^14.0.0 || ^14.0.0-next",

‎scripts/templates/contributing.ejs

+13-13
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Before you submit your Pull Request (PR) consider the following guidelines:
8484
* Make your changes in a new git branch:
8585

8686
```shell
87-
git checkout -b my-fix-branch master
87+
git checkout -b my-fix-branch main
8888
```
8989

9090
* Create your patch, **including appropriate test cases**.
@@ -106,19 +106,19 @@ Before you submit your Pull Request (PR) consider the following guidelines:
106106
git push origin my-fix-branch
107107
```
108108

109-
* In GitHub, send a pull request to `angular/angular-cli:master`.
109+
* In GitHub, send a pull request to `angular/angular-cli:main`.
110110
* If we suggest changes then:
111111
* Make the required updates.
112112
* Re-run the Angular DevKit test suites to ensure tests are still passing.
113113
* Once your PR is approved and you are done with any follow up changes:
114-
* Rebase to the current master to pre-emptively address any merge conflicts.
114+
* Rebase to the current main to pre-emptively address any merge conflicts.
115115

116116
```shell
117-
git rebase master -i
117+
git rebase upstream/main -i
118118
git push -f
119119
```
120120
* Add the `action: merge` label and the correct
121-
[target label](https://github.com/angular/angular/blob/master/docs/TRIAGE_AND_LABELS.md#pr-target)
121+
[target label](https://github.com/angular/angular/blob/main/docs/TRIAGE_AND_LABELS.md#pr-target)
122122
(if PR author has the project collaborator status, or else the last reviewer
123123
should do this).
124124
* The current caretaker will merge the PR to the target branch(es) within 1-2
@@ -137,10 +137,10 @@ from the main (upstream) repository:
137137
git push origin --delete my-fix-branch
138138
```
139139

140-
* Check out the master branch:
140+
* Check out the main branch:
141141

142142
```shell
143-
git checkout master -f
143+
git checkout main -f
144144
```
145145

146146
* Delete the local branch:
@@ -149,10 +149,10 @@ from the main (upstream) repository:
149149
git branch -D my-fix-branch
150150
```
151151

152-
* Update your master with the latest upstream version:
152+
* Update your local `main` with the latest upstream version:
153153

154154
```shell
155-
git pull --ff upstream master
155+
git pull --ff upstream main
156156
```
157157

158158
## <a name="rules"></a> Coding Rules
@@ -196,11 +196,11 @@ Must be one of the following:
196196
const { COMMIT_TYPES, ScopeRequirement } = require('../../.ng-dev/commit-message');
197197
for (const typeName of Object.keys(COMMIT_TYPES).sort()) {
198198
const type = COMMIT_TYPES[typeName];
199-
%>* **<%= typeName %>**: <%= type.description %> <%
199+
%>* **<%= typeName %>**: <%= type.description %><%
200200
if (type.scope == ScopeRequirement.Required) {
201-
%>[1]<%
201+
%> [1]<%
202202
} else if (type.scope == ScopeRequirement.Forbidden) {
203-
%>[2]<%
203+
%> [2]<%
204204
}
205205
%>
206206
<% } %>
@@ -286,7 +286,7 @@ changes to be accepted, the CLA must be signed. It's a quick process, we promise
286286
[coc]: https://github.com/angular/code-of-conduct/blob/master/CODE_OF_CONDUCT.md
287287
[commit-message-format]: https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/edit#
288288
[corporate-cla]: http://code.google.com/legal/corporate-cla-v1.0.html
289-
[dev-doc]: https://github.com/angular/angular-cli/blob/master/packages/angular/cli/README.md#development-hints-for-working-on-angular-cli
289+
[dev-doc]: https://github.com/angular/angular-cli/blob/main/packages/angular/cli/README.md#development-hints-for-working-on-angular-cli
290290
[GitHub]: https://github.com/angular/angular-cli
291291
[gitter]: https://gitter.im/angular/angular-cli
292292
[individual-cla]: http://code.google.com/legal/individual-cla-v1.0.html

0 commit comments

Comments
 (0)