Skip to content

Commit 4af6fdd

Browse files
authored
chore: update branch references to main (#94)
* chore: update branch references to main * chore: update Sampo default branch to main
1 parent ec58c24 commit 4af6fdd

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CI
22

33
on:
44
push:
5-
branches: [master]
5+
branches: [main]
66
pull_request:
77

88
jobs:

.github/workflows/release.yml

Lines changed: 5 additions & 5 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
workflow_dispatch:
88

99
permissions:
@@ -19,7 +19,7 @@ jobs:
1919
check-release-label:
2020
name: Check for release label
2121
runs-on: ubuntu-latest
22-
# Run when PR with 'release' label is merged to master
22+
# Run when PR with 'release' label is merged to main
2323
if: |
2424
github.event_name == 'workflow_dispatch' ||
2525
(github.event_name == 'pull_request' &&
@@ -31,7 +31,7 @@ jobs:
3131
- name: Checkout repository
3232
uses: actions/checkout@v4
3333
with:
34-
ref: master
34+
ref: main
3535
fetch-depth: 0
3636

3737
- name: Check release conditions
@@ -91,7 +91,7 @@ jobs:
9191
- name: Checkout repository
9292
uses: actions/checkout@v4
9393
with:
94-
ref: master
94+
ref: main
9595
fetch-depth: 0
9696
token: ${{ steps.releaser.outputs.token }}
9797

@@ -150,7 +150,7 @@ jobs:
150150
echo "committed=false" >> "$GITHUB_OUTPUT"
151151
else
152152
git commit -m "chore: Release v${NEW_VERSION}"
153-
git push origin master
153+
git push origin main
154154
echo "committed=true" >> "$GITHUB_OUTPUT"
155155
fi
156156

.github/workflows/sdk-compliance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
pull_request:
1010
push:
1111
branches:
12-
- master
12+
- main
1313

1414
jobs:
1515
compliance:

.sampo/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
version = 1
33

44
[git]
5-
default_branch = "master"
5+
default_branch = "main"
66
short_tags = "posthog" # Tag with v1.2.3 rather than posthog-v1.2.3
77

88
[github]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ the [PostHog SDK releases process](https://posthog.com/handbook/engineering/sdks
329329

330330
1. **Add a changeset** to your PR describing the changes (see above)
331331
2. **Add the `release` label** to the PR when it's ready for release
332-
3. **Merge the PR** into `master`
332+
3. **Merge the PR** into `main`
333333
334334
Once merged, the release workflow will automatically:
335335

0 commit comments

Comments
 (0)