From 5b8a0da8c28b563ba7cb492d6205d28a8c977a5c Mon Sep 17 00:00:00 2001 From: Chris Hughes Date: Thu, 23 Dec 2021 16:03:46 +0000 Subject: [PATCH] Create pull-request-check.yaml Implements https://github.com/cmhughes/latexindent.pl/issues/315 --- .github/workflows/pull-request-check.yaml | 24 +++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/pull-request-check.yaml diff --git a/.github/workflows/pull-request-check.yaml b/.github/workflows/pull-request-check.yaml new file mode 100644 index 00000000..96976eb4 --- /dev/null +++ b/.github/workflows/pull-request-check.yaml @@ -0,0 +1,24 @@ +# purpose: +# comment on pull requests to the main +# branch, asking them to be submitted +# to develop. + +on: + pull_request: + branches: + - main + +jobs: + comment: + runs-on: ubuntu-latest + steps: + - uses: actions/github-script@v5 + with: + github-token: ${{secrets.GITHUB_TOKEN}} + script: | + github.rest.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: "Thank you for your contribution! Please can you change this pull request so that it goes to the `develop` branch? Thank you" + })