Skip to content

Commit 71666b7

Browse files
committedNov 25, 2024·
chore: rename master to main
Signed-off-by: JP-Ellis <josh@jpellis.me>
1 parent 280f599 commit 71666b7

15 files changed

+31
-31
lines changed
 

‎.github/ISSUE_TEMPLATE/bug.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ body:
3232
attributes:
3333
label: Have you read the Contributing Guidelines on issues?
3434
options:
35-
- label: I have read the [Contributing Guidelines on issues](https://github.com/pact-foundation/pact-python/blob/master/CONTRIBUTING.md#issues).
35+
- label: I have read the [Contributing Guidelines on issues](https://github.com/pact-foundation/pact-python/blob/main/CONTRIBUTING.md#issues).
3636
required: true
3737

3838
- type: checkboxes

‎.github/ISSUE_TEMPLATE/feature.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ body:
1919
attributes:
2020
label: Have you read the Contributing Guidelines on issues?
2121
options:
22-
- label: I have read the [Contributing Guidelines on issues](https://github.com/pact-foundation/pact-python/blob/master/CONTRIBUTING.md#issues).
22+
- label: I have read the [Contributing Guidelines on issues](https://github.com/pact-foundation/pact-python/blob/main/CONTRIBUTING.md#issues).
2323
required: true
2424

2525
- type: textarea

‎.github/PULL_REQUEST_TEMPLATE.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<!--
22
Thank you for sending the PR! We appreciate you spending the time to work on these changes.
3-
You can learn more about contributing to Pact-python here: https://github.com/pact-foundation/pact-python/blob/master/CONTRIBUTING.md
3+
You can learn more about contributing to Pact-python here: https://github.com/pact-foundation/pact-python/blob/main/CONTRIBUTING.md
44
55
Happy contributing!
66
-->
77

88
## :airplane: Pre-flight checklist
99

10-
- [ ] I have read the [Contributing Guidelines on pull requests](https://github.com/pact-foundation/pact-python/blob/master/CONTRIBUTING.md#pull-requests).
10+
- [ ] I have read the [Contributing Guidelines on pull requests](https://github.com/pact-foundation/pact-python/blob/main/CONTRIBUTING.md#pull-requests).
1111
- [ ] **If this is a code change**: I have written unit tests and/or added dogfooding pages to fully verify the new behavior.
1212
- [ ] **If this is a new API or substantial change**: the PR has an accompanying issue (closes #0000) and the maintainers have approved on my working plan.
1313

‎.github/workflows/build.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ on:
66
tags:
77
- v*
88
branches:
9-
- master
9+
- main
1010
pull_request:
1111
branches:
12-
- master
12+
- main
1313

1414
concurrency:
1515
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
@@ -142,7 +142,7 @@ jobs:
142142
build-arm64:
143143
name: Build wheels on ${{ matrix.os }} (arm64)
144144

145-
# As this requires emulation, it's not worth running on PRs or master
145+
# As this requires emulation, it's not worth running on PRs or main
146146
if: >-
147147
github.event_name == 'push' &&
148148
startsWith(github.event.ref, 'refs/tags/v')
@@ -293,4 +293,4 @@ jobs:
293293
body: |
294294
This PR updates the changelog for ${{ github.ref_name }}.
295295
branch: chore/update-changelog
296-
base: master
296+
base: main

‎.github/workflows/docs.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ name: docs
44
on:
55
push:
66
branches:
7-
- master
7+
- main
88
pull_request:
99
branches:
10-
- master
10+
- main
1111

1212
env:
1313
STABLE_PYTHON_VERSION: '3.13'
@@ -52,7 +52,7 @@ jobs:
5252
publish:
5353
name: Publish docs
5454

55-
if: github.ref == 'refs/heads/master'
55+
if: github.ref == 'refs/heads/main'
5656

5757
needs: build
5858
runs-on: ubuntu-latest

‎.github/workflows/labels.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- cron: 20 0 * * 0
1010
push:
1111
branches:
12-
- master
12+
- main
1313
paths:
1414
- .github/labels.yml
1515

@@ -27,5 +27,5 @@ jobs:
2727
uses: EndBug/label-sync@52074158190acb45f3077f9099fea818aa43f97a # v2
2828
with:
2929
config-file: |-
30-
https://raw.githubusercontent.com/pact-foundation/.github/master/.github/labels.yml
30+
https://raw.githubusercontent.com/pact-foundation/.github/main/.github/labels.yml
3131
.github/labels.yml

‎.github/workflows/test.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ name: test
44
on:
55
push:
66
branches:
7-
- master
7+
- main
88
pull_request:
99
branches:
10-
- master
10+
- main
1111

1212
concurrency:
1313
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
@@ -328,7 +328,7 @@ jobs:
328328
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
329329

330330
- name: Spell Check Repo
331-
uses: crate-ci/typos@master
331+
uses: crate-ci/typos@main
332332

333333
pre-commit:
334334
name: Pre-commit

‎.github/workflows/trigger_pact_docs_update.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: Trigger update to docs.pact.io
44
on:
55
push:
66
branches:
7-
- master
7+
- main
88
paths:
99
- '**.md'
1010

‎CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ All pull requests will be checked by the continuous integration system, GitHub a
4242

4343
### Branch Organization
4444

45-
Pact Python has one primary branch `master` and we use feature branches to deliver new features with pull requests. Typically, we scope the branch according to the [conventional commit](#conventional-commit-messages) categories. The more common ones are:
45+
Pact Python has one primary branch `main` and we use feature branches to deliver new features with pull requests. Typically, we scope the branch according to the [conventional commit](#conventional-commit-messages) categories. The more common ones are:
4646

4747
- `feature/<name>` or `feat/<name>` for new features
4848
- `fix/<name>` for bug fixes
@@ -137,7 +137,7 @@ Please make sure the following is done when submitting a pull request:
137137
2. **Use descriptive titles.** It is recommended to follow this [commit message style](#conventional-commit-messages).
138138
3. **Test your changes.** Describe your [**test plan**](#test-plan) in your pull request description.
139139
140-
All pull requests should be opened against the `master` branch.
140+
All pull requests should be opened against the `main` branch.
141141
142142
We have a lot of integration systems that run automated tests to guard against mistakes. The maintainers will also review your code and may fix obvious issues for you. These systems' duty is to make you worry as little about the chores as possible. Your code contributions are more important than sticking to any procedures, although completing the checklist will surely save everyone's time.
143143

‎README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919
<td>
2020
<a
2121
href="https://github.com/pact-foundation/pact-python/actions/workflows/test.yml"><img
22-
src="https://img.shields.io/github/actions/workflow/status/pact-foundation/pact-python/test.yml?branch=master&label=test"
22+
src="https://img.shields.io/github/actions/workflow/status/pact-foundation/pact-python/test.yml?branch=main&label=test"
2323
alt="Test Status"></a>
2424
<a
2525
href="https://github.com/pact-foundation/pact-python/actions/workflows/build.yml"><img
26-
src="https://img.shields.io/github/actions/workflow/status/pact-foundation/pact-python/build.yml?branch=master&label=build"
26+
src="https://img.shields.io/github/actions/workflow/status/pact-foundation/pact-python/build.yml?branch=main&label=build"
2727
alt="Build Status"></a>
2828
<a
2929
href="https://github.com/pact-foundation/pact-python/actions/workflows/docs.yml"><img
30-
src="https://img.shields.io/github/actions/workflow/status/pact-foundation/pact-python/docs.yml?branch=master&label=docs"
30+
src="https://img.shields.io/github/actions/workflow/status/pact-foundation/pact-python/docs.yml?branch=main=docs"
3131
alt="Build Status"></a>
3232
</td>
3333
</tr>

‎docs/provider.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ The CLI options are available as keyword arguments to the various methods of the
141141

142142
You can see more details in the examples
143143

144-
- [Message Provider Verifier Test](https://github.com/pact-foundation/pact-python/blob/master/examples/tests/test_03_message_provider.py)
145-
- [Flask Provider Verifier Test](https://github.com/pact-foundation/pact-python/blob/master/examples/tests/test_01_provider_flask.py)
146-
- [FastAPI Provider Verifier Test](https://github.com/pact-foundation/pact-python/blob/master/examples/tests/test_01_provider_fastapi.py)
144+
- [Message Provider Verifier Test](https://github.com/pact-foundation/pact-python/blob/main/examples/tests/test_03_message_provider.py)
145+
- [Flask Provider Verifier Test](https://github.com/pact-foundation/pact-python/blob/main/examples/tests/test_01_provider_flask.py)
146+
- [FastAPI Provider Verifier Test](https://github.com/pact-foundation/pact-python/blob/main/examples/tests/test_01_provider_fastapi.py)
147147

148148
## Provider States
149149

‎docs/releases.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Pact Python is made available through both GitHub releases and PyPI. The GitHub releases also come with a summary of changes and contributions since the last release.
44

5-
The entire process is automated through the [build](https://github.com/pact-foundation/pact-python/actions/workflows/build.yml?query=branch%3Amaster) GitHub Action. A description of the process is provided [below](#build-pipeline).
5+
The entire process is automated through the [build](https://github.com/pact-foundation/pact-python/actions/workflows/build.yml?query=branch%3Amain) GitHub Action. A description of the process is provided [below](#build-pipeline).
66

77
## Versioning
88

@@ -23,7 +23,7 @@ The version is stored in `pact/__version__.py`. This file is automatically gener
2323

2424
## Build Pipeline
2525

26-
The build pipeline is defined in `.github/workflows/build.yml`. It is triggered on PRs targeting `master`, pushes to the `master` branch, and on every new tag. The pipeline is responsible for building the package (both as source distribution, and compiled wheels), creating the GitHub release, and uploading artifacts to PyPI.
26+
The build pipeline is defined in `.github/workflows/build.yml`. It is triggered on PRs targeting `main`, pushes to the `main` branch, and on every new tag. The pipeline is responsible for building the package (both as source distribution, and compiled wheels), creating the GitHub release, and uploading artifacts to PyPI.
2727

2828
### Build Steps
2929

@@ -34,7 +34,7 @@ In order to reduce the build time, the pipeline builds different sets of wheels
3434
| Trigger | Platforms | Wheels |
3535
| ------------ | ----------------- | --------- |
3636
| Tag | `x86_64`, `arm64` | all |
37-
| `master` | `x86_64` | all |
37+
| `main` | `x86_64` | all |
3838
| Pull Request | `x86_64` | `cp312-*` |
3939

4040
### Publish Step

‎docs/scripts/markdown.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def process_markdown(
116116

117117
mkdocs_gen_files.set_edit_path(
118118
destination,
119-
f"https://github.com/pact-foundation/pact-python/edit/master/{file}",
119+
f"https://github.com/pact-foundation/pact-python/edit/main/{file}",
120120
)
121121

122122

‎docs/scripts/python.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def process_python(
203203

204204
mkdocs_gen_files.set_edit_path(
205205
destination,
206-
f"https://github.com/pact-foundation/pact-python/edit/master/{file}",
206+
f"https://github.com/pact-foundation/pact-python/edit/main/{file}",
207207
)
208208

209209

‎pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ dependencies = [
5454
"Repository" = "https://github.com/pact-foundation/pact-python"
5555
"Documentation" = "https://docs.pact.io"
5656
"Bug Tracker" = "https://github.com/pact-foundation/pact-python/issues"
57-
"Changelog" = "https://github.com/pact-foundation/pact-python/blob/master/CHANGELOG.md"
57+
"Changelog" = "https://github.com/pact-foundation/pact-python/blob/main/CHANGELOG.md"
5858

5959
[project.scripts]
6060
pact-verifier = "pact.cli.verify:main"

0 commit comments

Comments
 (0)
Please sign in to comment.