Skip to content

Commit

Permalink
Create pull-request-check.yaml
Browse files Browse the repository at this point in the history
Implements #315
  • Loading branch information
cmhughes authored Dec 23, 2021
1 parent ad9be25 commit 5b8a0da
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/pull-request-check.yaml
Original file line number Diff line number Diff line change
@@ -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"
})

0 comments on commit 5b8a0da

Please sign in to comment.