Add action to warn against PR against master (should be develop)

This commit is contained in:
Nanne Baars
2021-09-29 18:57:29 +02:00
parent 902af04dd4
commit 906ab766df

View File

@ -7,14 +7,12 @@ jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Post PR comment - uses: wow-actions/auto-comment@v1
uses: mshick/add-pr-comment@v1 with:
with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
message: |
Hi @${{ github.event.pull_request.user.login }},
It looks like this pull request has been made against the ${{github.event.pull_request.head.repo.full_name}} `master` branch. pullRequestOpened: |
Since we use Git Flow all commits to master are through are from the develop branch. 👋 @{{ author }}
You do not need to close this PR, you can change the target branch to `development` by clicking the _"Edit"_ button at the top of this page. It looks like this pull request has been made against the ${{github.event.pull_request.head.repo.full_name}} `master` branch.
repo-token: ${{ secrets.GITHUB_TOKEN }} Since we use Git Flow all commits to master are through are from the develop branch.
allow-repeats: false You do not need to close this PR, you can change the target branch to `development` by clicking the _"Edit"_ button at the top of this page.