From 5156d6cfb9a6a0e3d798fb9ccb20a4ed27258fee Mon Sep 17 00:00:00 2001 From: Yogesh Choudhary Paliyal Date: Sun, 5 Mar 2023 19:16:07 +0530 Subject: [PATCH] Update pr-check.yaml --- .github/workflows/pr-check.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/pr-check.yaml b/.github/workflows/pr-check.yaml index 28f39fae..e5187ad5 100644 --- a/.github/workflows/pr-check.yaml +++ b/.github/workflows/pr-check.yaml @@ -3,10 +3,24 @@ name: PR Check on: pull_request: types: [ ready_for_review ] + issue_comment: + types: [created, edited, deleted] jobs: + + validatePr: + name: 'Validate PR comment' + if: contains(github.event.comment.html_url, '/pull/') # check if the comments come from pull request, exclude those from issue. + runs-on: [re-centos7] + steps: + - name: test + if: contains(github.event.comment.body, '/test') # check the comment if it contains the keywords + run: | + echo test + spotless: + needs: validatePr name: 'Spotless' runs-on: ubuntu-latest steps: @@ -21,6 +35,7 @@ jobs: tests: name: 'Tests' + needs: validatePr runs-on: ubuntu-latest steps: @@ -34,6 +49,7 @@ jobs: build: name: 'Build Production Debug Build' + needs: validatePr runs-on: ubuntu-latest steps: