From f7b9ade73b89625cd505a42a98983073ae259c1e Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Sat, 19 Feb 2022 16:53:25 +0200 Subject: [PATCH] github: Check pull request title in workflows. --- .github/workflows/commit.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/commit.yml b/.github/workflows/commit.yml index 30df0e57d..729bbec5b 100644 --- a/.github/workflows/commit.yml +++ b/.github/workflows/commit.yml @@ -2,6 +2,11 @@ name: '📜 Check Commit Messages' on: pull_request: + types: + - opened + - edited + - reopened + - synchronize branches: - 'master' @@ -15,7 +20,7 @@ jobs: pattern: '^[^!]+: [A-Za-z]+.+ .+\.$' flags: 'gm' error: 'Commit subject line must match the following pattern: : .' - excludeTitle: 'true' + excludeTitle: 'false' excludeDescription: 'true' checkAllCommitMessages: 'true' accessToken: ${{ secrets.GITHUB_TOKEN }} @@ -24,7 +29,7 @@ jobs: with: pattern: '^[^#].{10,78}$' error: 'Commit subject line maximum line length of 78 characters is exceeded.' - excludeTitle: 'true' + excludeTitle: 'false' excludeDescription: 'true' checkAllCommitMessages: 'true' accessToken: ${{ secrets.GITHUB_TOKEN }}