From 2ee783b378b2347d1754d8e6f1a862c3952064d1 Mon Sep 17 00:00:00 2001 From: Thomas Bouffard <27200110+tbouffard@users.noreply.github.com> Date: Fri, 16 Dec 2022 14:37:11 +0100 Subject: [PATCH] ci: use bonitasoft/actions pr-title-conventional-commits (#164) --- .../workflows/commit-message-check-format.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/commit-message-check-format.yml b/.github/workflows/commit-message-check-format.yml index 5c9c545f..7a93d281 100644 --- a/.github/workflows/commit-message-check-format.yml +++ b/.github/workflows/commit-message-check-format.yml @@ -1,15 +1,15 @@ -name: Commit Message format check +name: Commit Message format check on: - pull_request: - branches: [master] - types: [opened, edited, synchronize] + 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: Lint pull request title - uses: jef/conventional-commits-pr-action@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} + - name: Check Pull Request title + uses: bonitasoft/actions/packages/pr-title-conventional-commits@v2