Skip to content

Commit 82e7e39

Browse files
committed
Created common status check NO_JIRA
1 parent 359bcde commit 82e7e39

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
# This status check is updated on all repositories by the moan.py script
3+
# in the github-repository-management repository.
4+
# Changes in this file will be overwritten periodically.
5+
# To make changes persistent, please mark this repository with update_status_check: false
6+
# or make your changes in the github-repository-management/status_check.yml file
7+
name: Common CCDC PR Checks
8+
on: [pull_request]
9+
jobs:
10+
ccdc-commit-hooks-on-pull-request-check:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
with:
15+
ref: ${{ github.head_ref }}
16+
fetch-depth: 0
17+
- uses: actions/setup-python@v2
18+
with:
19+
python-version: "3.7"
20+
- name: Get the commit message
21+
run: |
22+
echo 'commit_message<<EOF' >> $GITHUB_ENV
23+
git log --format=%B -n 1 ${{ github.event.after }} >> $GITHUB_ENV
24+
echo 'EOF' >> $GITHUB_ENV
25+
- name: Check pull request files with commit hook action
26+
uses: ccdc-opensource/commit-hooks@main
27+
with:
28+
commitMessage: ${{ env.commit_message }}

0 commit comments

Comments
 (0)