Skip to content

Commit

Permalink
ci: prevent merge of stacked PRs (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheButlah authored May 19, 2024
1 parent 57ad3bd commit 3b7bb8f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/stacked-prs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Stacked PRs
on:
pull_request:
types: [opened, edited, synchronize, reopened]
pull_request_target:
types: [opened, edited, synchronize, reopened]

jobs:
prevent_merge_of_stacked_pr:
runs-on: ubuntu-latest
steps:
- name: Check that base is "main"
run: |
echo "${GITHUB_BASE_REF}"
if [[ "${GITHUB_BASE_REF}" != "main" ]]; then
exit 1;
fi

0 comments on commit 3b7bb8f

Please sign in to comment.