Skip to content

Commit

Permalink
Added Base branch check to main (#1515)
Browse files Browse the repository at this point in the history
  • Loading branch information
palisadoes authored Jan 29, 2024
1 parent 9ff2924 commit a320d35
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 @@ -60,6 +60,7 @@ jobs:
with:
path: "./coverage/lcov.info"
min_coverage: 95.0

Graphql-Inspector:
name: Runs Introspection on the github talawa-api repo on the schema.graphql file
runs-on: ubuntu-latest
Expand All @@ -80,3 +81,13 @@ jobs:

- name: Validate Documents
run: graphql-inspector validate './src/GraphQl/**/*.ts' './talawa-api/schema.graphql'

Branch-check:
name: "Base branch check"
runs-on: ubuntu-latest
steps:
- name: "Check if base branch is develop"
if: github.event.pull_request.base.ref != 'develop'
run: |
echo "PR is not against develop branch. Please refer PR_GUIDELINES.md"
exit 1

0 comments on commit a320d35

Please sign in to comment.