From a320d35e91b2a3d10a9143384969dba0973c37f1 Mon Sep 17 00:00:00 2001 From: Peter Harrison <16875803+palisadoes@users.noreply.github.com> Date: Sun, 28 Jan 2024 15:55:39 -1000 Subject: [PATCH] Added Base branch check to main (#1515) --- .github/workflows/pull-requests.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/pull-requests.yml b/.github/workflows/pull-requests.yml index b303360aff..75f6dbda36 100644 --- a/.github/workflows/pull-requests.yml +++ b/.github/workflows/pull-requests.yml @@ -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 @@ -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