Skip to content

Commit

Permalink
workflows: Additions for pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
msinn committed May 26, 2022
1 parent 03075de commit aea39c1
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/comment_pr_to_wrong_branch.yml
Original file line number Diff line number Diff line change
@@ -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 }}

3 changes: 3 additions & 0 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: "Unittests Plugins"
#on: [workflow_dispatch, push]
on:
workflow_dispatch:
pull_request:
branches:
- 'develop'
push:
branches:
- '*'
Expand Down

0 comments on commit aea39c1

Please sign in to comment.