Skip to content

Commit 42f3232

Browse files
committed
master --> main
1 parent 931ff83 commit 42f3232

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,14 @@ Other people shouldn't need them.
104104
as that won't show up correctly on GitHub's releases page.
105105
2. Make a pull request of your changelog edits. Review carefully:
106106
changing the changelog afterwards is difficult, as the text gets copied into the releases page.
107-
3. Merge the pull request and pull the merge commit to your local `master` branch.
108-
4. Run `python3 scripts/release.py` from the `master` branch.
107+
3. Merge the pull request and pull the merge commit to your local `main` branch.
108+
4. Run `python3 scripts/release.py` from the `main` branch.
109109
The script pushes a tag named e.g. `v2022.08.28`,
110110
which triggers the parts of `.github/workflows/release-builds.yml`
111111
that have `if: startsWith(github.ref, 'refs/tags/v')` in them.
112112
They build and deploy docs, copy the changelog to the releases page, and so on.
113113
5. Update `porcupine.wiki` if you added new features that are likely not obvious to users.
114114

115-
If you want, you can also do a release from a branch named `bugfix-release` instead of `master`.
115+
If you want, you can also do a release from a branch named `bugfix-release` instead of `main`.
116116
This is useful if you fixed a bug that made Porcupine unusable for someone,
117-
but the new features on `master` aren't ready for releasing yet.
117+
but the new features on `main` aren't ready for releasing yet.

scripts/release.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def main():
2626

2727
# https://stackoverflow.com/a/1593487
2828
branch = subprocess.check_output("git symbolic-ref --short HEAD", shell=True).decode().strip()
29-
assert branch in ("master", "bugfix-release")
29+
assert branch in ("main", "bugfix-release")
3030

3131
# If this fails you have uncommitted changes
3232
for line in subprocess.check_output("git status --porcelain", shell=True).splitlines():

0 commit comments

Comments
 (0)