Skip to content

Commit

Permalink
feat: Added target branch checking PR workflow (#1443)
Browse files Browse the repository at this point in the history
* feat: Added target branch checking PR workflow

- If the target branch is not develop than this check will fail.

Signed-off-by: Akhilender <[email protected]>

* Appended extra line at the end

---------

Signed-off-by: Akhilender <[email protected]>
  • Loading branch information
akhilender-bongirwar authored Jan 17, 2024
1 parent 5e4b1e1 commit d1a9c39
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,14 @@ 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 d1a9c39

Please sign in to comment.