diff --git a/.github/workflows/comment_pr_to_wrong_branch.yml b/.github/workflows/comment_pr_to_wrong_branch.yml new file mode 100755 index 000000000..ca1990f67 --- /dev/null +++ b/.github/workflows/comment_pr_to_wrong_branch.yml @@ -0,0 +1,21 @@ +name: "Comment if PR goes to wrong branch" + +on: + pull_request: + types: [opened] + branches: + - '*' + - '!develop' + +jobs: + comment_pr: + runs-on: ubuntu-latest + name: Comment on wrong branch + steps: + - name: Comment PR + uses: thollander/actions-comment-pull-request@v1 + with: + message: 'Pull requests should only be placed against the develop branch' + reactions: '-1' + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml index ca5d25c35..ad7204bb5 100755 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/unittests.yml @@ -2,6 +2,9 @@ name: "Unittests Plugins" #on: [workflow_dispatch, push] on: workflow_dispatch: + pull_request: + branches: + - 'develop' push: branches: - '*'