From 61189f4de6192042148ad1a40c4636c8c4a65890 Mon Sep 17 00:00:00 2001 From: Thomas Bouffard <27200110+tbouffard@users.noreply.github.com> Date: Mon, 21 Nov 2022 09:49:47 +0100 Subject: [PATCH] ci: use bonitasoft/actions pr-title-conventional-commits (#478) --- .../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 9fb943f7c..7a93d281a 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: + pull_request_target: + # trigger when the PR title changes types: [opened, edited, reopened] jobs: - check-for-cc: + 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-for-cc - id: check-for-cc - uses: agenthunt/conventional-commit-checker-action@v1.0.0 - with: - pr-body-regex: '(.*\n*)+(.*)' + - name: Check Pull Request title + uses: bonitasoft/actions/packages/pr-title-conventional-commits@v2