Skip to content

Commit 6695cbe

Browse files
committed
Add more master - main
1 parent 9230a98 commit 6695cbe

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

Diff for: .github/pull_request_template.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ Thank you for submitting a pull request!
33
44
Please verify that:
55
* [ ] There is an associated issue in the `Backlog` milestone (**required**)
6-
* [ ] Code is up-to-date with the `master` branch
6+
* [ ] Code is up-to-date with the `main` branch
77
* [ ] You've successfully run `gulp runtests` locally
88
* [ ] There are new or updated unit tests validating the change
99
1010
Refer to CONTRIBUTING.MD for more details.
11-
https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md
11+
https://github.com/Microsoft/TypeScript/blob/main/CONTRIBUTING.md
1212
-->
1313

1414
Fixes #

Diff for: .github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ name: CI
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
- release-*
88
pull_request:
99
branches:
10-
- master
10+
- main
1111
- release-*
1212

1313
jobs:

Diff for: .github/workflows/sync-branch.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ jobs:
2828
- run: |
2929
git config user.email "[email protected]"
3030
git config user.name "TypeScript Bot"
31-
git fetch origin master
32-
git merge origin/master --no-ff
31+
git fetch origin main
32+
git merge origin/main --no-ff
3333
npm ci
3434
npm test
3535
git push

Diff for: CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ You will need to complete a Contributor License Agreement (CLA). Briefly, this a
102102
Your pull request should:
103103

104104
* Include a description of what your change intends to do
105-
* Be based on reasonably recent commit in the **master** branch
105+
* Be based on reasonably recent commit in the **main** branch
106106
* Include adequate tests
107107
* At least one test should fail in the absence of your non-test code changes. If your PR does not match this criteria, please specify why
108108
* Tests should include reasonable permutations of the target fix/change
@@ -118,7 +118,7 @@ There are three relevant locations to be aware of when it comes to TypeScript's
118118
* `lib`: the location of the last-known-good (LKG) versions of the files which are updated periodically.
119119
* `built/local`: the build output location, including where `src/lib` files will be copied to.
120120

121-
Any changes should be made to [src/lib](https://github.com/Microsoft/TypeScript/tree/master/src/lib). **Most** of these files can be updated by hand, with the exception of any generated files (see below).
121+
Any changes should be made to [src/lib](https://github.com/Microsoft/TypeScript/tree/main/src/lib). **Most** of these files can be updated by hand, with the exception of any generated files (see below).
122122

123123
Library files in `built/local/` are updated automatically by running the standard build task:
124124

Diff for: README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ npm install -g typescript@next
2626

2727
## Contribute
2828

29-
There are many ways to [contribute](https://github.com/microsoft/TypeScript/blob/master/CONTRIBUTING.md) to TypeScript.
29+
There are many ways to [contribute](https://github.com/microsoft/TypeScript/blob/main/CONTRIBUTING.md) to TypeScript.
3030
* [Submit bugs](https://github.com/microsoft/TypeScript/issues) and help us verify fixes as they are checked in.
3131
* Review the [source code changes](https://github.com/microsoft/TypeScript/pulls).
3232
* Engage with other TypeScript users and developers on [StackOverflow](https://stackoverflow.com/questions/tagged/typescript).
3333
* Help each other in the [TypeScript Community Discord](https://discord.gg/typescript).
3434
* Join the [#typescript](https://twitter.com/search?q=%23TypeScript) discussion on Twitter.
35-
* [Contribute bug fixes](https://github.com/microsoft/TypeScript/blob/master/CONTRIBUTING.md).
36-
* Read the archived language specification ([docx](https://github.com/microsoft/TypeScript/blob/master/doc/TypeScript%20Language%20Specification%20-%20ARCHIVED.docx?raw=true),
37-
[pdf](https://github.com/microsoft/TypeScript/blob/master/doc/TypeScript%20Language%20Specification%20-%20ARCHIVED.pdf?raw=true), [md](https://github.com/microsoft/TypeScript/blob/master/doc/spec-ARCHIVED.md)).
35+
* [Contribute bug fixes](https://github.com/microsoft/TypeScript/blob/main/CONTRIBUTING.md).
36+
* Read the archived language specification ([docx](https://github.com/microsoft/TypeScript/blob/main/doc/TypeScript%20Language%20Specification%20-%20ARCHIVED.docx?raw=true),
37+
[pdf](https://github.com/microsoft/TypeScript/blob/main/doc/TypeScript%20Language%20Specification%20-%20ARCHIVED.pdf?raw=true), [md](https://github.com/microsoft/TypeScript/blob/main/doc/spec-ARCHIVED.md)).
3838

3939
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see
4040
the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected])

Diff for: scripts/update-experimental-branches.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ async function main() {
3434
// Forcibly cleanup workspace
3535
runSequence([
3636
["git", ["checkout", "."]],
37-
["git", ["fetch", "-fu", "origin", "master:master"]],
38-
["git", ["checkout", "master"]],
37+
["git", ["fetch", "-fu", "origin", "main:main"]],
38+
["git", ["checkout", "main"]],
3939
["git", ["remote", "add", "fork", remoteUrl]], // Add the remote fork
4040
]);
4141

@@ -51,15 +51,15 @@ async function main() {
5151
owner: "Microsoft",
5252
repo: "TypeScript",
5353
issue_number: num,
54-
body: `This PR is configured as an experiment, and currently has rebase conflicts with master - please rebase onto master and fix the conflicts.`
54+
body: `This PR is configured as an experiment, and currently has rebase conflicts with main - please rebase onto main and fix the conflicts.`
5555
});
5656
}
57-
throw new Error(`Rebase conflict detected in PR ${num} with master`); // A PR is currently in conflict, give up
57+
throw new Error(`Rebase conflict detected in PR ${num} with main`); // A PR is currently in conflict, give up
5858
}
5959
runSequence([
6060
["git", ["fetch", "origin", `pull/${num}/head:${num}`]],
6161
["git", ["checkout", `${num}`]],
62-
["git", ["rebase", "master"]],
62+
["git", ["rebase", "main"]],
6363
["git", ["push", "-f", "-u", "fork", `${num}`]], // Keep a rebased copy of this branch in our fork
6464
]);
6565

@@ -71,7 +71,7 @@ async function main() {
7171

7272
// Return to `master` and make a new `experimental` branch
7373
runSequence([
74-
["git", ["checkout", "master"]],
74+
["git", ["checkout", "main"]],
7575
["git", ["checkout", "-b", "experimental"]],
7676
]);
7777

0 commit comments

Comments
 (0)