Skip to content

Commit 656acd2

Browse files
authored
Add an RFC about renaming the default branch of most repos in the org (#225)
1 parent e4121e1 commit 656acd2

File tree

1 file changed

+73
-0
lines changed

1 file changed

+73
-0
lines changed

rfcs/main_branch_side_repos.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# RFC #XX: Rename `master` branch to `main` in non-test repositories
2+
3+
## Summary
4+
5+
Rename `master` branch to `main` in
6+
[web-platform-tests/data-migration](https://github.com/web-platform-tests/data-migration),
7+
[web-platform-tests/wpt.live](https://github.com/web-platform-tests/wpt.live),
8+
[web-platform-tests/rfcs](https://github.com/web-platform-tests/rfcs),
9+
[web-platform-tests/editor](https://github.com/web-platform-tests/editor),
10+
[web-platform-tests/code-of-conduct-moderations](https://github.com/web-platform-tests/code-of-conduct-moderations), and
11+
[web-platform-tests/wpt-notes](https://github.com/web-platform-tests/wpt-notes).
12+
13+
14+
## Details
15+
16+
Find non-archived repositories whose default branch is not main with:
17+
18+
```sh
19+
gh api /orgs/web-platform-tests/repos | jq -r '.[] | select(.default_branch != "main" and (.archived | not)) | .html_url + ": " + .default_branch'
20+
```
21+
22+
Yields:
23+
24+
```
25+
https://github.com/web-platform-tests/wpt: master
26+
https://github.com/web-platform-tests/data-migration: master
27+
https://github.com/web-platform-tests/wpt.live: master
28+
https://github.com/web-platform-tests/rfcs: master
29+
https://github.com/web-platform-tests/wpt-metadata: master
30+
https://github.com/web-platform-tests/editor: master
31+
https://github.com/web-platform-tests/code-of-conduct-moderations: master
32+
https://github.com/web-platform-tests/wpt-notes: master
33+
```
34+
35+
This RFC proposes to rename the default branches of everything *except* `wpt` and `wpt-metadata` to `main`.
36+
37+
Specifically:
38+
39+
### `data-migration`
40+
41+
There are no references to the `master` branch of this repo.
42+
No further work is expected.
43+
44+
### `wpt.live`
45+
46+
This contains [a few references](https://github.com/search?q=repo%3Aweb-platform-tests%2Fwpt.live+master&type=code) to `master`.
47+
Two of these appear to refer to the repo itself.
48+
Both can be fixed to be generic.
49+
50+
### `rfcs`
51+
52+
There are no code references to the `master` branch of this repo.
53+
No further work is expected.
54+
55+
### `editor`
56+
57+
There are no code references to the `master` branch of this repo.
58+
No further work is expected.
59+
60+
### `code-of-conduct-moderations`
61+
62+
This contains no references to any `master` branch.
63+
No further work is expected.
64+
65+
### `wpt-nodes`
66+
67+
There are no code references to the `master` branch of this repo.
68+
No further work is expected.
69+
70+
71+
## Risk
72+
73+
Calamity

0 commit comments

Comments
 (0)