Skip to content

Commit 5fd85d2

Browse files
authored
master to main branch migration (#1527)
Signed-off-by: Stephen Mackenzie <[email protected]>
1 parent 3ef6d04 commit 5fd85d2

File tree

13 files changed

+30
-30
lines changed

13 files changed

+30
-30
lines changed

.github/workflows/benchmark.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ jobs:
9393
- name: Checkout
9494
uses: actions/checkout@v3
9595
with:
96-
ref: master
96+
ref: main
9797
path: src
9898

9999
# This is a PAT from an Admin user. We do this in order to be able to write to a
100-
# protected branch (master) from this workflow.
100+
# protected branch (main) from this workflow.
101101
# See https://github.community/t/how-to-push-to-protected-branches-in-a-github-action/16101/14
102102
#
103103
token: "${{ secrets.GH_ACTION_TOKEN }}"
@@ -134,6 +134,6 @@ jobs:
134134
else
135135
git add --all
136136
git commit -m "Generated from GitHub "${{ github.workflow }}" Workflow"
137-
git push origin master
137+
git push origin main
138138
fi
139139
working-directory: src

.github/workflows/wiki.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,5 @@ jobs:
5959
run: |
6060
git add --all
6161
( git commit -m "Generated from GitHub ${{ github.workflow }} Workflow" \
62-
&& git push origin master \
62+
&& git push origin main \
6363
) || echo "Nothing new to commit"

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[![Release](https://shields.io/github/v/release/AcademySoftwareFoundation/rez)](https://github.com/AcademySoftwareFoundation/rez/releases)
22
[![Pypy Release](https://shields.io/pypi/v/rez)](https://pypi.org/project/rez)<br>
3-
[![Core](https://github.com/AcademySoftwareFoundation/rez/workflows/core/badge.svg?branch=master)](https://github.com/AcademySoftwareFoundation/rez/actions?query=workflow%3Acore+branch%3Amaster)
4-
[![Ubuntu](https://github.com/AcademySoftwareFoundation/rez/workflows/ubuntu/badge.svg?branch=master)](https://github.com/AcademySoftwareFoundation/rez/actions?query=workflow%3Aubuntu+branch%3Amaster)
5-
[![Mac](https://github.com/AcademySoftwareFoundation/rez/workflows/mac/badge.svg?branch=master)](https://github.com/AcademySoftwareFoundation/rez/actions?query=workflow%3Amac+branch%3Amaster)
6-
[![Windows](https://github.com/AcademySoftwareFoundation/rez/workflows/windows/badge.svg?branch=master)](https://github.com/AcademySoftwareFoundation/rez/actions?query=workflow%3AWindows+branch%3Amaster)<br>
7-
[![Installation](https://github.com/AcademySoftwareFoundation/rez/workflows/installation/badge.svg?branch=master)](https://github.com/AcademySoftwareFoundation/rez/actions?query=workflow%3Ainstallation+branch%3Amaster)
8-
[![Flake8](https://github.com/AcademySoftwareFoundation/rez/workflows/flake8/badge.svg?branch=master)](https://github.com/AcademySoftwareFoundation/rez/actions?query=workflow%3Aflake8+branch%3Amaster)
3+
[![Core](https://github.com/AcademySoftwareFoundation/rez/workflows/core/badge.svg?branch=main)](https://github.com/AcademySoftwareFoundation/rez/actions?query=workflow%3Acore+branch%3Amain)
4+
[![Ubuntu](https://github.com/AcademySoftwareFoundation/rez/workflows/ubuntu/badge.svg?branch=main)](https://github.com/AcademySoftwareFoundation/rez/actions?query=workflow%3Aubuntu+branch%3Amain)
5+
[![Mac](https://github.com/AcademySoftwareFoundation/rez/workflows/mac/badge.svg?branch=main)](https://github.com/AcademySoftwareFoundation/rez/actions?query=workflow%3Amac+branch%3Amain)
6+
[![Windows](https://github.com/AcademySoftwareFoundation/rez/workflows/windows/badge.svg?branch=main)](https://github.com/AcademySoftwareFoundation/rez/actions?query=workflow%3AWindows+branch%3Amain)<br>
7+
[![Installation](https://github.com/AcademySoftwareFoundation/rez/workflows/installation/badge.svg?branch=main)](https://github.com/AcademySoftwareFoundation/rez/actions?query=workflow%3Ainstallation+branch%3Amain)
8+
[![Flake8](https://github.com/AcademySoftwareFoundation/rez/workflows/flake8/badge.svg?branch=main)](https://github.com/AcademySoftwareFoundation/rez/actions?query=workflow%3Aflake8+branch%3Amain)
99
[![Wiki](https://github.com/AcademySoftwareFoundation/rez/workflows/wiki/badge.svg)](https://github.com/AcademySoftwareFoundation/rez/actions?query=workflow%3Awiki+event%3Arelease)
1010
[![Pypi](https://github.com/AcademySoftwareFoundation/rez/workflows/pypi/badge.svg)](https://github.com/AcademySoftwareFoundation/rez/actions?query=workflow%3Apypi+event%3Arelease)
1111
[![Benchmark](https://github.com/AcademySoftwareFoundation/rez/workflows/benchmark/badge.svg)](https://github.com/AcademySoftwareFoundation/rez/actions?query=workflow%3Abenchmark+event%3Arelease)<br>

RELEASE.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Releasing New Rez Versions
22

3-
To merge a PR to master and release a new version:
3+
To merge a PR to the `main` branch and release a new version:
44

55
1. Merge the PR locally, following the instructions given on GitHub in the
6-
`command line instructions` link (but do not push to master yet);
6+
`command line instructions` link (but do not push to `main` yet);
77
2. Run the tests (rez-selftest) to double check nothing is broken;
8-
3. Make sure the [rez version](https://github.com/AcademySoftwareFoundation/rez/blob/master/src/rez/utils/_version.py)
8+
3. Make sure the [rez version](https://github.com/AcademySoftwareFoundation/rez/blob/main/src/rez/utils/_version.py)
99
is correct, and change if necessary. The version may have been correct at the
1010
time of PR submission, but may need an update due to releases that have occurred
1111
since;
@@ -17,10 +17,10 @@ To merge a PR to master and release a new version:
1717
```
1818
This command prints the changelog entry to stdout, which you can then paste in
1919
to the top of CHANGELOG.md.
20-
5. Commit and push to master;
20+
5. Commit and push to `main`;
2121
6. Wait for all Github workflows to pass;
2222
7. Run the release-rez utility script. This performs the following actions:
23-
* Creates tag on latest version, and pushes tag to master;
23+
* Creates tag on latest version, and pushes tag to `main`;
2424
* Generates the new GitHub release (https://github.com/AcademySoftwareFoundation/rez/releases).
2525
```
2626
]$ python ./release-rez.py

release-rez.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ def parse_topmost_changelog():
107107
assert False
108108

109109

110-
def check_on_master():
110+
def check_on_main():
111111
branch = run_command("git", "branch", "--contains").split()[-1]
112112

113-
if branch != "master":
114-
sys.stderr.write("Must be run from master.\n")
113+
if branch != "main":
114+
sys.stderr.write("Must be run from the 'main' branch.\n")
115115
sys.exit(1)
116116

117117

@@ -269,7 +269,7 @@ def generate_changelog_entry(issue_nums):
269269
def doit(step):
270270
return (opts.step is None) or (step == opts.step)
271271

272-
check_on_master()
272+
check_on_main()
273273

274274
if doit("push"):
275275
push_codebase()

src/rez/config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
class Setting(object):
3636
"""Setting subclasses implement lazy setting validators.
3737
38-
Note that lazy setting validation only happens on master configuration
38+
Note that lazy setting validation only happens on main configuration
3939
settings - plugin settings are validated on load only.
4040
"""
4141
schema = Schema(object)
@@ -497,8 +497,8 @@ class Config(six.with_metaclass(LazyAttributeMeta, object)):
497497
`Config` object directly.
498498
499499
Config files are merged with other config files to create a `Config`
500-
instance. The 'rezconfig' file in rez acts as the master - other config
501-
files update the master configuration to create the final config. See the
500+
instance. The 'rezconfig' file in rez acts as the primary - other config
501+
files update the primary configuration to create the final config. See the
502502
comments at the top of 'rezconfig' for more details.
503503
"""
504504
schema = config_schema

src/rez/rezconfig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1206,7 +1206,7 @@
12061206
# can be used to block releases from development or feature branches,
12071207
# and support a workflow such as "gitflow". Each branch name should be
12081208
# a regular expression that can be used with re.match(), for example
1209-
# "^master$".
1209+
# "^main$".
12101210
"releasable_branches": [],
12111211

12121212
# If True, a release will be cancelled if the repository has already been

src/rezplugins/build_system/template_files/Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@ HHC_LOCATION =
10181018

10191019
# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag
10201020
# controls if a separate .chi index file is generated (YES) or that
1021-
# it should be included in the master .chm file (NO).
1021+
# it should be included in the main .chm file (NO).
10221022

10231023
GENERATE_CHI = NO
10241024

wiki/generate-wiki.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
OUT_DIR = "out"
3131
GITHUB_REPO = "unknown/rez"
32-
GITHUB_BRANCH = "master"
32+
GITHUB_BRANCH = "main"
3333
GITHUB_WORKFLOW = "Wiki"
3434

3535

wiki/pages/Basic-Concepts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ The digram shows the following operations occurring:
359359
* This results in a list of resolved packages. These are the packages that are used in the
360360
configured environment;
361361
* The commands from each package are concatenated together;
362-
* This master list of commands is then translated into the target shell language (in this example
362+
* This total list of commands is then translated into the target shell language (in this example
363363
that is *bash*);
364364
* A sub-shell is created and the translated command code is sourced within this environment,
365365
creating the final configured environment.

0 commit comments

Comments
 (0)