Skip to content

Commit cb0f790

Browse files
authored
Merge pull request #24 from jsquyres/pr/git-commit-checker-ci
Add Github Action for checking PR git commits
2 parents aab8599 + fd342c3 commit cb0f790

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/pr-checks.yaml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: GitHub Action CI
2+
3+
# We're using pull_request_target here instead of just pull_request so that the
4+
# action runs in the context of the base of the pull request, rather than in the
5+
# context of the merge commit. For more detail about the differences, see:
6+
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target
7+
on:
8+
pull_request_target:
9+
# We don't need this to be run on all types of PR behavior
10+
# See https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull_request
11+
types:
12+
- opened
13+
- synchronize
14+
- edited
15+
16+
permissions: {} # none
17+
18+
jobs:
19+
check:
20+
permissions:
21+
pull-requests: write
22+
name: Check Commits
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Pull Request Commit Checker
26+
uses: open-mpi/[email protected]
27+
with:
28+
token: "${{ secrets.GITHUB_TOKEN}}"

0 commit comments

Comments
 (0)