Skip to content

Commit

Permalink
ci: use bonitasoft/actions pr-title-conventional-commits (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbouffard authored Dec 16, 2022
1 parent 104dd07 commit f820001
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 16 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/commit-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Commit checks

on:
pull_request_target:
# trigger when the PR title changes
types: [opened, edited, reopened]

jobs:
pr-title:
runs-on: ubuntu-22.04
permissions:
pull-requests: write # post comments when the PR title doesn't match the "Conventional Commits" rules
steps:
- name: Check Pull Request title
uses: bonitasoft/actions/packages/pr-title-conventional-commits@v2
24 changes: 8 additions & 16 deletions .github/workflows/contribution-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,15 @@ name: Contribution checks

on:
pull_request:
types: [opened, edited, synchronize]
types: [opened, reopened, synchronize]

jobs:
commit-message-check:
runs-on: ubuntu-20.04
steps:
- name: Check commit message
id: check-for-cc
uses: agenthunt/[email protected]
with:
pr-body-regex: '(.*\n*)+(.*)'
pr-content-check:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Check PR content
uses: bonitasoft/actions/packages/pr-diff-checker@v2.1.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
diffDoesNotContain: '["https://documentation.bonitasoft.com/", "Bonita BPM"]'
extensionsToCheck: '[".adoc"]'
- name: Check PR content
uses: bonitasoft/actions/packages/pr-diff-checker@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
diffDoesNotContain: '["https://documentation.bonitasoft.com/", "Bonita BPM"]'
extensionsToCheck: '[".adoc"]'

0 comments on commit f820001

Please sign in to comment.