Skip to content

Commit

Permalink
Adds pr-target-check.yml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tjayrush committed Sep 1, 2024
1 parent 8cbeca9 commit 473cb5d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/pr-target-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Check PR Target Branch
on:
pull_request:
types: [opened, edited]
jobs:
check-branch:
runs-on: ubuntu-latest
steps:
- name: Check if PR is targeting the correct branch
if: github.event.pull_request.base.ref != 'develop' && github.event.pull_request.base.ref != 'master'
run: |
echo "::warning file=${{ github.event.pull_request.url }}::PR is not targeting 'develop' or 'master'. Please consider changing the target branch to 'develop' if this is not a release."

0 comments on commit 473cb5d

Please sign in to comment.