Skip to content

Commit 776b197

Browse files
authored
chore: update branch references to main (#118)
1 parent 2850a3b commit 776b197

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: 'CodeQL Advanced'
22

33
on:
44
push:
5-
branches: ['master']
5+
branches: ['main']
66
pull_request:
7-
branches: ['master']
7+
branches: ['main']
88
schedule:
99
- cron: '32 13 * * 1'
1010

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: "Release"
33
on:
44
pull_request:
55
types: [closed]
6-
branches: [master]
6+
branches: [main]
77

88
permissions:
99
contents: read
@@ -18,7 +18,7 @@ jobs:
1818
check-release-label:
1919
name: Check for release label
2020
runs-on: ubuntu-latest
21-
# Run when PR with 'release' label is merged to master, or when manually triggered
21+
# Run when PR with 'release' label is merged to main, or when manually triggered
2222
if: |
2323
github.event.pull_request.merged == true
2424
&& contains(github.event.pull_request.labels.*.name, 'release')
@@ -29,7 +29,7 @@ jobs:
2929
- name: Checkout repository
3030
uses: actions/checkout@v6
3131
with:
32-
ref: master
32+
ref: main
3333
fetch-depth: 0
3434

3535
- name: Check release conditions
@@ -93,7 +93,7 @@ jobs:
9393
- name: Checkout repository
9494
uses: actions/checkout@v6
9595
with:
96-
ref: master
96+
ref: main
9797
fetch-depth: 0
9898
token: ${{ steps.releaser.outputs.token }}
9999

@@ -140,7 +140,7 @@ jobs:
140140
with:
141141
commit_message: "chore: bump version to ${{ steps.bump-version.outputs.new_version }} [version bump]"
142142
repo: ${{ github.repository }}
143-
branch: master
143+
branch: main
144144
file_pattern: "lib/PostHog.php composer.json CHANGELOG.md"
145145
env:
146146
GITHUB_TOKEN: ${{ steps.releaser.outputs.token }}
@@ -153,7 +153,7 @@ jobs:
153153
run: |
154154
LAST_CHANGELOG_ENTRY=$(awk -v defText="see CHANGELOG.md" '/^## /{if (flag) exit; flag=1} flag && /^##$/{exit} flag; END{if (!flag) print defText}' CHANGELOG.md)
155155
gh release create "$NEW_VERSION" \
156-
--target master \
156+
--target main \
157157
--title "$NEW_VERSION" \
158158
--notes "$LAST_CHANGELOG_ENTRY"
159159

RELEASING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Releasing
22

3-
Releases are semi-automated via GitHub Actions. When a PR with the `release` and a version bump label is merged to `master`, the release workflow is triggered.
3+
Releases are semi-automated via GitHub Actions. When a PR with the `release` and a version bump label is merged to `main`, the release workflow is triggered.
44

55
You'll need an approval from a PostHog engineer. If you're an employee, you can see the request in the [#approvals-client-libraries](https://app.slack.com/client/TSS5W8YQZ/C0A3UEVDDNF) channel.
66

@@ -9,15 +9,15 @@ You'll need an approval from a PostHog engineer. If you're an employee, you can
99
1. **Create your PR** with the changes you want to release
1010
2. **Add the `release` label** to the PR
1111
3. **Add a version bump label** that should be either `bump-patch`, `bump-minor` or `bump-major`
12-
4. **Merge the PR** to `master`
12+
4. **Merge the PR** to `main`
1313

1414
Once merged, the following happens automatically:
1515

1616
1. A Slack notification is sent to the client libraries channel requesting approval
1717
2. A maintainer approves the release in the GitHub `Release` environment
1818
3. The version is bumped in `lib/PostHog.php` and `composer.json` based on the version label (`patch`, `minor`, or `major`, extracted from the label)
1919
4. The `CHANGELOG.md` is updated with a link to the full changelog
20-
5. Changes are committed and pushed to `master`
20+
5. Changes are committed and pushed to `main`
2121
6. A git tag is created (e.g., `v1.8.0`)
2222
7. A GitHub release is created with the changelog content
2323
8. Slack is notified of the successful release

0 commit comments

Comments
 (0)