Skip to content

Commit 956e3f7

Browse files
committed
Created common status check NO_JIRA
1 parent 1612cff commit 956e3f7

File tree

1 file changed

+27
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)