Skip to content

Commit 49bfdce

Browse files
authored
Merge pull request #107 from PFConnect/canary
feat: enforce canary as origin
2 parents 89887d3 + 2fac26a commit 49bfdce

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Enforce Canary as PR Source
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, synchronize]
6+
branches: [main]
7+
8+
jobs:
9+
check-branch:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Ensure PR source is canary
13+
run: |
14+
if [[ "${{ github.head_ref }}" != "canary" ]]; then
15+
echo "PRs to main must originate from the canary branch."
16+
exit 1
17+
fi

0 commit comments

Comments
 (0)