Skip to content

Commit

Permalink
[ci] check target branch for PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz committed Mar 19, 2024
1 parent 790656d commit c2724bf
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/target.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Check pull request target branch
on:
pull_request_target:
types:
- opened
- reopened
- synchronize
- edited
jobs:
check-branches:
runs-on: ubuntu-latest
steps:
- name: Check branches
run: |
if [ ${{ github.base_ref }} != "development" ]; then
echo "Merge requests should target `development`."
exit 1
fi

0 comments on commit c2724bf

Please sign in to comment.