Skip to content

Commit

Permalink
feat: Added target branch checking PR workflow
Browse files Browse the repository at this point in the history
- If the target branch is not develop than this check will fail.

Signed-off-by: Akhilender <[email protected]>
  • Loading branch information
akhilender-bongirwar committed Jan 17, 2024
1 parent 84c6697 commit 885c4ce
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,13 @@ jobs:
- name: Validate Documents
run: graphql-inspector validate './src/GraphQl/**/*.ts' './talawa-api/schema.graphql'

Check-Target-Branch:
name: Check Target Branch
runs-on: ubuntu-latest
steps:
- name: Check if the target branch is develop
if: github.event.pull_request.base.ref != 'develop'
run: |
echo "Error: Pull request target branch must be 'develop'. Please refer PR_GUIDELINES.md"
exit 1

0 comments on commit 885c4ce

Please sign in to comment.