Skip to content

Commit a9d4a74

Browse files
authored
Rename master branch to main
1 parent 91606be commit a9d4a74

File tree

9 files changed

+25
-25
lines changed

9 files changed

+25
-25
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ on:
2020
- distcheck
2121
- coverage
2222
push:
23-
branches: [ master, "release/**" ]
23+
branches: [ main, "release/**" ]
2424
pull_request:
25-
branches: [ master ]
25+
branches: [ main ]
2626

2727
permissions:
2828
contents: read

.github/workflows/cifuzz.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CIFuzz
22
on:
33
workflow_dispatch:
44
pull_request:
5-
branches: [ master ]
5+
branches: [ main ]
66

77
permissions:
88
contents: read

.github/workflows/clang-analyzer.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Clang Static Analyzer
22
on:
33
workflow_dispatch:
44
push:
5-
branches: [ master, "release/**" ]
5+
branches: [ main, "release/**" ]
66
pull_request:
7-
branches: [ master ]
7+
branches: [ main ]
88

99
permissions:
1010
contents: read

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16-
branches: [ master, "release/**" ]
16+
branches: [ main, "release/**" ]
1717
pull_request:
1818
# The branches below must be a subset of the branches above
19-
branches: [ master ]
19+
branches: [ main ]
2020
schedule:
2121
- cron: '27 6 * * 4'
2222

.github/workflows/pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
workflows: [ 'Sync' ]
66
types:
77
- completed
8-
branches: [ master ]
8+
branches: [ main ]
99
push:
1010
branches: [ pages ]
1111
pull_request:

.github/workflows/scorecards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
schedule:
77
- cron: '23 17 * * 1'
88
push:
9-
branches: [ master ]
9+
branches: [ main ]
1010

1111
permissions: read-all
1212

.github/workflows/sync.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Sync
22
on:
33
workflow_dispatch:
44
push:
5-
branches: [ master, "release/**" ]
5+
branches: [ main, "release/**" ]
66
pull_request:
7-
branches: [ master ]
7+
branches: [ main ]
88

99
permissions:
1010
contents: read
@@ -72,9 +72,9 @@ jobs:
7272
fi
7373
7474
sync-docs:
75-
name: Sync content from master to pages
75+
name: Sync content from main to pages
7676
runs-on: ubuntu-latest
77-
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
77+
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
7878
needs: ['sync-autogenerated']
7979
permissions:
8080
contents: write
@@ -83,19 +83,19 @@ jobs:
8383
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
8484
with:
8585
submodules: false
86-
fetch-depth: 0 # Necessary to get both the master and pages branches
86+
fetch-depth: 0 # Necessary to get both the main and pages branches
8787
fetch-tags: false
8888
ref: pages
8989

9090
- name: Commit and push, if docs have changed
9191
run: |
92-
if ! git diff --exit-code origin/master -- \
92+
if ! git diff --exit-code origin/main -- \
9393
./doc ./AUTHORS.md ./LICENCE.md ./SECURITY.md ./README.md \
9494
./README ./NON-AUTOTOOLS-BUILD >/dev/null ; then
95-
# Differences from master: merge and push
95+
# Differences from main: merge and push
9696
git config user.name "github-actions[bot]"
9797
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
98-
git merge origin/master --no-edit -m"Sync content from master to pages"
98+
git merge origin/main --no-edit -m"Sync content from main to pages"
9999
git push
100100
else
101101
echo "No content changes to sync"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ https://pcre2project.github.io/pcre2/
3232
<td>
3333

3434
[![GitHub Release](https://img.shields.io/github/v/release/PCRE2Project/pcre2?display_name=release&style=flat-square&label=Latest%20release&color=006094)](https://github.com/PCRE2Project/pcre2/releases)&nbsp;
35-
[![BSD licence](https://img.shields.io/badge/Licence-BSD%203--clause-006094?style=flat-square)](https://github.com/PCRE2Project/pcre2/blob/master/LICENCE.md)
35+
[![BSD licence](https://img.shields.io/badge/Licence-BSD%203--clause-006094?style=flat-square)](https://github.com/PCRE2Project/pcre2/blob/main/LICENCE.md)
3636

3737
</tr>
3838
</tr>

maint/README

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ Preparing for a PCRE2 release
211211
This section contains a checklist of things that I (NCW) do before building a
212212
new release.
213213

214-
* First of all, make sure that the master branch is in good condition.
214+
* First of all, make sure that the main branch is in good condition.
215215

216216
- Basically, test it. The CI jobs should all be passing. This ensures that
217217
pcre2tests are passing, that the build is warning-free, and that all our
@@ -266,12 +266,12 @@ new release.
266266
* Add the new library version to the src/libpcre2-*.sym files (even if no new
267267
symbols have been added since the last release).
268268

269-
* Push all these changes to master.
269+
* Push all these changes to main.
270270

271-
* Take a branch off master, named "release/pcre2-10.XX-RC1" or
271+
* Take a branch off main, named "release/pcre2-10.XX-RC1" or
272272
"release/pcre2-10.XX".
273273

274-
All releases should come from master. The final release isn't branched off
274+
All releases should come from main. The final release isn't branched off
275275
from the RC branch; the RC branch is a "throwaway" release which can be pruned
276276
from the linear history of the trunk of PCRE2's tree.
277277

@@ -346,9 +346,9 @@ new release.
346346

347347
* Announce the release on the mailing list.
348348

349-
* Bump the version number on master to the next release, plus -DEV.
349+
* Bump the version number on main to the next release, plus -DEV.
350350

351-
* After issuing a final release, merge the release tag back to master with:
351+
* After issuing a final release, merge the release tag back to main with:
352352

353353
```
354354
git merge -s ours release/pcre2-10.XX
@@ -359,7 +359,7 @@ new release.
359359

360360
We want users with forks of PCRE2 to be able to update from release to the
361361
next by simply doing a `git merge` in their fork. If the release tag is not
362-
merged back to master, then users will see unnecessary Git conflicts when
362+
merged back to main, then users will see unnecessary Git conflicts when
363363
trying to fast-forward from one release to the next.
364364

365365

0 commit comments

Comments
 (0)