Skip to content

Commit

Permalink
Activate commit message check
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
mdellweg committed Nov 15, 2023
1 parent 7564982 commit 0de3383
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,20 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: "3.8"

- name: Install requirements
run: pip3 install github
- name: Check commit message
if: github.event_name == 'pull_request'
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
GITHUB_PULL_REQUEST: ${{ github.event.number }}
GITHUB_PULL_REQUEST_BODY: ${{ github.event.pull_request.body }}
GITHUB_BRANCH: ${{ github.head_ref }}
GITHUB_REPO_SLUG: ${{ github.repository }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_CONTEXT: ${{ github.event.pull_request.commits_url }}
run: sh .github/workflows/scripts/check_commit.sh
- name: Verify requirements files
run: python .ci/scripts/check_requirements.py

Expand Down
2 changes: 1 addition & 1 deletion template_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
additional_repos: []
api_root: /pulp/
black: true
check_commit_message: false
check_commit_message: true
check_gettext: true
check_manifest: true
check_stray_pulpcore_imports: true
Expand Down

0 comments on commit 0de3383

Please sign in to comment.