Skip to content

Commit 6da2485

Browse files
committed
build: cleanup remaining references to master branch
We should clean up all references to `master` and use `main` where possible.
1 parent 6a0e6ba commit 6da2485

File tree

23 files changed

+48
-69
lines changed

23 files changed

+48
-69
lines changed

.circleci/config.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@ var_14: &publish_branches_filter
8484
branches:
8585
only:
8686
- main
87-
# TODO(BRANCH_RENAME_CLEANUP): remove
88-
- master
8987
# 6.0.x, 7.1.x, etc.
9088
- /\d+\.\d+\.x/
9189

@@ -137,8 +135,6 @@ var_21: &only_main_branch_filter
137135
branches:
138136
only:
139137
- main
140-
# TODO(BRANCH_RENAME_CLEANUP): remove
141-
- master
142138

143139
# -----------------------------
144140
# Container version of CircleCI
@@ -677,5 +673,3 @@ workflows:
677673
# it's not guaranteed that older versions of Angular Material always work
678674
# with the latest Angular version.
679675
- main
680-
# TODO(BRANCH_RENAME_CLEANUP): remove
681-
- master

.circleci/rebase-pr.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,6 @@ function getRefFromBranchList(gitOutput) {
114114
return 1;
115115
}
116116

117-
// TODO(BRANCH_RENAME_CLEANUP): remove
118-
if (a === 'master') {
119-
return -1;
120-
}
121-
if (b === 'master') {
122-
return 1;
123-
}
124-
125117
const aIsSemver = semverRegex.test(a);
126118
const bIsSemver = semverRegex.test(b);
127119
if (aIsSemver && bIsSemver) {

.github/angular-robot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ merge:
4141
noConflict: true
4242
# whether the PR should have all reviews completed.
4343
requireReviews: false
44-
# list of labels that a PR needs to have, checked with a regexp (e.g. "PR target:" will work for the label "PR target: master")
44+
# list of labels that a PR needs to have, checked with a regexp.
4545
requiredLabels:
4646
- 'target: *'
4747

@@ -64,7 +64,7 @@ merge:
6464
# the comment that will be added when the merge label is added despite failing checks, leave empty or set to false to disable
6565
# {{MERGE_LABEL}} will be replaced by the value of the mergeLabel option
6666
# {{PLACEHOLDER}} will be replaced by the list of failing checks
67-
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."
67+
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."
6868

6969
# options for the triage plugin
7070
triage:

.github/workflows/scorecard.yml

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

CHANGELOG.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1896,7 +1896,7 @@ Sass theming API has been reworked so that clients can take advantage of `@use`.
18961896
* Renamed functions, mixins, and variables to be a better reflection of what they do
18971897
* Applications still using `node-sass` will need to switch to the `sass` package
18981898

1899-
For more information, check out the [new theming guide](https://github.com/angular/components/blob/master/guides/theming.md).
1899+
For more information, check out the [new theming guide](https://github.com/angular/components/blob/main/guides/theming.md).
19001900

19011901
### cdk
19021902

@@ -3567,7 +3567,7 @@ the new Sass module system, which offers a number of benefits over the existing
35673567
| bug fix | **autocomplete:** provide horizontal fallback positions ([#18906](https://github.com/angular/components/issues/18906)) ([3488dda](https://github.com/angular/components/commit/3488dda)), closes [#18854](https://github.com/angular/components/issues/18854) |
35683568
| bug fix | **bottom-sheet:** allow result to be passed when dismissing through service ([#18831](https://github.com/angular/components/issues/18831)) ([48e26b1](https://github.com/angular/components/commit/48e26b1)) |
35693569
| bug fix | **core:** ripple mutating global options when animations are… ([#18983](https://github.com/angular/components/issues/18983)) ([09f2872](https://github.com/angular/components/commit/09f2872)) |
3570-
| bug fix | **datepicker:** add hover indication to navigation buttons ([#18995](https://github.com/angular/components/issues/18995)) ([94ab707](https://github.com/angular/components/commit/94ab707)), closes [/github.com/angular/components/blob/master/src/material/button/button.scss#L13](https://github.com//github.com/angular/components/blob/master/src/material/button/button.scss/issues/L13) [#18958](https://github.com/angular/components/issues/18958) |
3570+
| bug fix | **datepicker:** add hover indication to navigation buttons ([#18995](https://github.com/angular/components/issues/18995)) ([94ab707](https://github.com/angular/components/commit/94ab707)), closes [/github.com/angular/components/blob/main/src/material/button/button.scss#L13](https://github.com//github.com/angular/components/blob/main/src/material/button/button.scss/issues/L13) [#18958](https://github.com/angular/components/issues/18958) |
35713571
| bug fix | **datepicker:** disable calendar hover styles on touch devices ([#18876](https://github.com/angular/components/issues/18876)) ([d752cdf](https://github.com/angular/components/commit/d752cdf)) |
35723572
| bug fix | **datepicker:** error in IE/Edge for static disabled binding ([#18202](https://github.com/angular/components/issues/18202)) ([80977f6](https://github.com/angular/components/commit/80977f6)) |
35733573
| bug fix | **dialog:** recapture focus when clicking on backdrop when cl… ([#18826](https://github.com/angular/components/issues/18826)) ([c5ddfe8](https://github.com/angular/components/commit/c5ddfe8)), closes [#18799](https://github.com/angular/components/issues/18799) |
@@ -3954,7 +3954,7 @@ features in that regard- a new package that wraps the
39543954
in an easy-to-use Angular component.
39553955

39563956
You can see the
3957-
[documentation on GitHub](https://github.com/angular/components/blob/master/src/google-maps/README.md)
3957+
[documentation on GitHub](https://github.com/angular/components/blob/main/src/google-maps/README.md)
39583958
for the time being.
39593959

39603960
Big thanks to @mbehrlich for contributing this!
@@ -4372,7 +4372,7 @@ features in that regard- a new package that wraps the
43724372
in an easy-to-use Angular component.
43734373

43744374
You can see the
4375-
[documentation on GitHub](https://github.com/angular/components/blob/master/src/youtube-player)
4375+
[documentation on GitHub](https://github.com/angular/components/blob/main/src/youtube-player)
43764376
for the time being.
43774377

43784378
Big thanks to @YourDeveloperFriend for contributing this!
@@ -5823,4 +5823,4 @@ You can view a beta version of the docs at https://beta-angular-material-io.fire
58235823

58245824
# Changes Prior to 7.0.0
58255825

5826-
To view changes that occurred prior to 7.0.0, see [CHANGELOG_ARCHIVE.md](https://github.com/angular/components/blob/master/CHANGELOG_ARCHIVE.md).
5826+
To view changes that occurred prior to 7.0.0, see [CHANGELOG_ARCHIVE.md](https://github.com/angular/components/blob/main/CHANGELOG_ARCHIVE.md).

CHANGELOG_ARCHIVE.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
This contains changes before 7.0.0. See [CHANGELOG.md](https://github.com/angular/components/blob/master/CHANGELOG.md) for changes in 7.0.0+.
1+
This contains changes before 7.0.0. See [CHANGELOG.md](https://github.com/angular/components/blob/main/CHANGELOG.md) for changes in 7.0.0+.
22

33
<a name="6.4.7"></a>
44
## [6.4.7 kryptonite-kombucha](https://github.com/angular/material2/compare/6.4.6...6.4.7) (2018-08-29)
@@ -588,7 +588,7 @@ ng update @angular/material
588588

589589

590590
### Breaking Changes
591-
* A number of APIs that were deprecated during beta have been removed, see [here for complete list](https://github.com/angular/material2/blob/master/CHANGELOG.md#600-beta5-2018-03-23)
591+
* A number of APIs that were deprecated during beta have been removed, see [here for complete list](https://github.com/angular/material2/blob/main/CHANGELOG.md#600-beta5-2018-03-23)
592592
* See `ng update` tooling above to automatically migrate to the new APIs
593593

594594

@@ -1640,7 +1640,7 @@ We expect to have the tool ready when we release version 6.0.0.
16401640
* **menu:** not closing when overlay is detached externally ([#8868](https://github.com/angular/material2/issues/8868)) ([534c797](https://github.com/angular/material2/commit/534c797))
16411641
* **overlay:** export OverlaySizeConfig ([#8932](https://github.com/angular/material2/issues/8932)) ([adfa31e](https://github.com/angular/material2/commit/adfa31e))
16421642
* **paginator:** set default display value ([#8455](https://github.com/angular/material2/issues/8455)) ([ccb325e](https://github.com/angular/material2/commit/ccb325e)), closes [#8454](https://github.com/angular/material2/issues/8454)
1643-
* **portal:** inaccurate hasAttahed result and portal being cleared if attached too early ([#8642](https://github.com/angular/material2/issues/8642)) ([93e6c53](https://github.com/angular/material2/commit/93e6c53)), closes [/github.com/angular/material2/blob/master/src/material/dialog/dialog-container.ts#L118](https://github.com//github.com/angular/material2/blob/master/src/material/dialog/dialog-container.ts/issues/L118) [#8628](https://github.com/angular/material2/issues/8628)
1643+
* **portal:** inaccurate hasAttahed result and portal being cleared if attached too early ([#8642](https://github.com/angular/material2/issues/8642)) ([93e6c53](https://github.com/angular/material2/commit/93e6c53)), closes [/github.com/angular/material2/blob/main/src/material/dialog/dialog-container.ts#L118](https://github.com//github.com/angular/material2/blob/main/src/material/dialog/dialog-container.ts/issues/L118) [#8628](https://github.com/angular/material2/issues/8628)
16441644
* **select:** alt + arrow key not opening in single-selection mode ([#8910](https://github.com/angular/material2/issues/8910)) ([85f83f9](https://github.com/angular/material2/commit/85f83f9))
16451645
* **select:** change event emitted before data binding is updated ([#8740](https://github.com/angular/material2/issues/8740)) ([2493797](https://github.com/angular/material2/commit/2493797)), closes [#8739](https://github.com/angular/material2/issues/8739)
16461646
* **select:** complete state change event ([#8777](https://github.com/angular/material2/issues/8777)) ([46411e3](https://github.com/angular/material2/commit/46411e3))
@@ -2023,15 +2023,15 @@ StackBlitz instead of Plunker.
20232023
### Breaking Changes
20242024

20252025
* All "md" prefixes have been removed. See the [deprecation notice in the beta.11 notes for more
2026-
information](https://github.com/angular/material2/blob/master/CHANGELOG.md#deprecation-of-md-prefix).
2026+
information](https://github.com/angular/material2/blob/main/CHANGELOG.md#deprecation-of-md-prefix).
20272027
* All cdk re-exports in `@angular/material` have been removed. See the [the beta.10 notes for more
2028-
information](https://github.com/angular/material2/blob/master/CHANGELOG.md#breaking-changes-2).
2028+
information](https://github.com/angular/material2/blob/main/CHANGELOG.md#breaking-changes-2).
20292029
* Previously the `ScrollDispatcher.scrolled` subscription would react both on scroll events and on window resize events. Now it only reacts to scroll events. To react to resize events, subscribe to the `ViewportRuler.change()` stream.
20302030
* `UniqueSelectionDispatcher`, `UniqueSelectionDispatcherListener` and `UNIQUE_SELECTION_DISPATCHER_PROVIDER` are no longer
20312031
available from @angular/material and instead must be imported from @angular/cdk/collections
20322032
* `isFocusTrapEnabled` is now properly marked internal.
20332033
* The `OverlayRef.getState` method has been renamed to `OverlayRef.getConfig`.
2034-
* `defaultErrorStateMatcher` has been replaced by `ErrorStateMatcher`. For more info, see the [input docs](https://github.com/angular/material2/blob/master/src/material/input/input.md#custom-error-matcher).
2034+
* `defaultErrorStateMatcher` has been replaced by `ErrorStateMatcher`. For more info, see the [input docs](https://github.com/angular/material2/blob/main/src/material/input/input.md#custom-error-matcher).
20352035

20362036
### Features
20372037

@@ -2128,7 +2128,7 @@ tools like webpack to more easily load _only_ the components being used in an ap
21282128

21292129
* Angular Material now requires **Angular 4.4.3 or greater**
21302130
* `MaterialModule` has been removed. ([cf1ece0](https://github.com/angular/material2/commit/cf1ece0)) (#6803)
2131-
[See the deprecation notice from beta.3 for more information](https://github.com/angular/material2/blob/master/CHANGELOG.md#materialmodule).
2131+
[See the deprecation notice from beta.3 for more information](https://github.com/angular/material2/blob/main/CHANGELOG.md#materialmodule).
21322132
* `MdCoreModule` has been removed. Most of its functionality has been moved to `@angular/cdk` over
21332133
the last few releases.
21342134
* `FocusOriginMonitor` has been renamed to `FocusMonitor` and moved to `@angular/cdk`.
@@ -3570,7 +3570,7 @@ switch to using our UMD bundles. Example config:
35703570
}
35713571
```
35723572

3573-
You can see a more detailed example in our [demo app's system config](https://github.com/angular/material2/blob/master/src/demo-app/system-config.ts).
3573+
You can see a more detailed example in our [demo app's system config](https://github.com/angular/material2/blob/main/src/demo-app/system-config.ts).
35743574

35753575
In addition to this, each component now has an `index.js` file, so you should now have imports like
35763576
```ts

CODING_STANDARDS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,8 @@ the same tests that the non-MDC version had. Similarly, we check that the public
263263
Components match that of the non-MDC version.
264264

265265
In the case where old tests no longer make sense and should be omitted or the public API should be
266-
changed, you can do so in [scripts/check-mdc-tests-config.ts](https://github.com/angular/components/blob/master/scripts/check-mdc-tests-config.ts) and
267-
[scripts/check-mdc-exports-config.ts](https://github.com/angular/components/blob/master/scripts/check-mdc-exports-config.ts).
266+
changed, you can do so in [scripts/check-mdc-tests-config.ts](https://github.com/angular/components/blob/main/scripts/check-mdc-tests-config.ts) and
267+
[scripts/check-mdc-exports-config.ts](https://github.com/angular/components/blob/main/scripts/check-mdc-exports-config.ts).
268268
Remember to leave a comment explaining why the change was necessary.
269269

270270
#### Coercion

CONTRIBUTING.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Before you submit your Pull Request (PR) consider the following guidelines:
8383
* Make your changes in a new git branch:
8484

8585
```shell
86-
git checkout -b my-fix-branch master
86+
git checkout -b my-fix-branch main
8787
```
8888

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

109-
* In GitHub, send a pull request to `components:master`.
109+
* In GitHub, send a pull request to `components:main`.
110110
* If we suggest changes then:
111111
* Make the required updates.
112112
* Re-run the Angular Material test suites to ensure tests are still passing.
113113
* Rebase your branch and force push to your GitHub repository (this will update your Pull
114114
Request):
115115

116116
```shell
117-
git rebase master -i
117+
git rebase upstream/main -i
118118
git push -f
119119
```
120120

@@ -132,10 +132,10 @@ from the main (upstream) repository:
132132
git push my-fork --delete my-fix-branch
133133
```
134134
135-
* Check out the master branch:
135+
* Check out the main branch:
136136
137137
```shell
138-
git checkout master -f
138+
git checkout main -f
139139
```
140140
141141
* Delete the local branch:
@@ -144,10 +144,10 @@ from the main (upstream) repository:
144144
git branch -D my-fix-branch
145145
```
146146
147-
* Update your master with the latest upstream version:
147+
* Update your local `main` with the latest upstream version:
148148
149149
```shell
150-
git pull --ff upstream master
150+
git pull --ff upstream main
151151
```
152152
153153
## <a name="rules"></a> Coding Rules
@@ -260,9 +260,9 @@ changes to be accepted, the CLA must be signed. It's a quick process, we promise
260260
[material-group]: https://groups.google.com/forum/#!forum/angular-material2
261261
[coc]: https://github.com/angular/code-of-conduct/blob/master/CODE_OF_CONDUCT.md
262262
[commit-message-format]: https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/preview
263-
[commit-message-scopes]: https://github.com/angular/components/blob/master/.ng-dev/commit-message.ts#L10
263+
[commit-message-scopes]: https://github.com/angular/components/blob/main/.ng-dev/commit-message.ts#L10
264264
[corporate-cla]: http://code.google.com/legal/corporate-cla-v1.0.html
265-
[dev-doc]: https://github.com/angular/components/blob/master/DEV_ENVIRONMENT.md
265+
[dev-doc]: https://github.com/angular/components/blob/main/DEV_ENVIRONMENT.md
266266
[github]: https://github.com/angular/components
267267
[gitter]: https://gitter.im/angular/components
268268
[individual-cla]: http://code.google.com/legal/individual-cla-v1.0.html

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ own custom components. The team maintains several npm packages.
1818
[Documentation, demos, and guides][mat-docs] |
1919
[Frequently Asked Questions](FAQ.md) |
2020
[Community Google group](https://groups.google.com/forum/#!forum/angular-material2) |
21-
[Contributing](https://github.com/angular/components/blob/master/CONTRIBUTING.md) |
21+
[Contributing](https://github.com/angular/components/blob/main/CONTRIBUTING.md) |
2222
[StackBlitz Template](https://stackblitz.com/fork/components-issue)
2323

2424
## Getting started
@@ -86,8 +86,8 @@ We aim for great user experience with the following screen readers:
8686
[MDC Web]: https://github.com/material-components/material-components-web/
8787
[cdk-docs]: https://material.angular.io/cdk/categories
8888
[mat-docs]: https://material.angular.io
89-
[map-docs]: https://github.com/angular/components/blob/master/src/google-maps/README.md
90-
[ytp-docs]: https://github.com/angular/components/blob/master/src/youtube-player/README.md
89+
[map-docs]: https://github.com/angular/components/blob/main/src/google-maps/README.md
90+
[ytp-docs]: https://github.com/angular/components/blob/main/src/youtube-player/README.md
9191
[getting-started]: https://material.angular.io/guide/getting-started
92-
[contributing]: https://github.com/angular/components/blob/master/CONTRIBUTING.md
92+
[contributing]: https://github.com/angular/components/blob/main/CONTRIBUTING.md
9393
[help-wanted]: https://github.com/angular/components/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22

guides/theming.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ npm package (`@angular/material/prebuilt-themes`). To include the pre-built them
250250
application, [add your chosen CSS file to the `styles` array of your project's `angular.json`
251251
file][adding-styles].
252252

253-
[prebuilt]: https://github.com/angular/components/blob/master/src/material/core/theming/prebuilt
253+
[prebuilt]: https://github.com/angular/components/blob/main/src/material/core/theming/prebuilt
254254

255255
### Defining multiple themes
256256

src/cdk/schematics/ng-update/update-schematic.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ because the non-separated upgrade data would just include: _`onChange` => `onVal
101101
Also besides separating the upgrade data based on the target version, we split the upgrade data
102102
based on the type of code that is affected by these migrations:
103103

104-
* See here: [src/material/schematics/update/material/data](https://github.com/angular/components/tree/master/src/material/schematics/update/material/data)
104+
* See here: [src/material/schematics/update/material/data](https://github.com/angular/components/tree/main/src/material/schematics/update/material/data)
105105

106106
### Adding upgrade data
107107

src/cdk/schematics/utils/build-component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function buildDefaultPath(project: ProjectDefinition): string {
5151

5252
/**
5353
* List of style extensions which are CSS compatible. All supported CLI style extensions can be
54-
* found here: angular/angular-cli/master/packages/schematics/angular/ng-new/schema.json#L118-L122
54+
* found here: angular/angular-cli/main/packages/schematics/angular/ng-new/schema.json#L118-L122
5555
*/
5656
const supportedCssExtensions = ['css', 'scss', 'less'];
5757

0 commit comments

Comments
 (0)