From 34832687a947d207ac2967f22c0964877da9d83a Mon Sep 17 00:00:00 2001 From: Emanuela Epure <67077116+emanuelaepure10@users.noreply.github.com> Date: Wed, 6 Mar 2024 15:15:57 +0100 Subject: [PATCH] chore: update action conventional commits feat: update action conventional commits ING-3232 --- .github/workflows/action-conventional-commits.yml | 2 +- .github/workflows/gs-commit-message-checker.yml | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/action-conventional-commits.yml b/.github/workflows/action-conventional-commits.yml index cc3ab9b..4e0a9c4 100644 --- a/.github/workflows/action-conventional-commits.yml +++ b/.github/workflows/action-conventional-commits.yml @@ -15,4 +15,4 @@ jobs: - uses: webiny/action-conventional-commits@v1.3.0 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Optional, for private repositories. - allowed-commit-types: "feat,fix" # Optional, set if you want a subset of commit types to be allowed. \ No newline at end of file + allowed-commit-types: "feat,fix,docs,style,refactor,perf,test,chore" # Optional, set if you want a subset of commit types to be allowed. \ No newline at end of file diff --git a/.github/workflows/gs-commit-message-checker.yml b/.github/workflows/gs-commit-message-checker.yml index 6924583..b1463f4 100644 --- a/.github/workflows/gs-commit-message-checker.yml +++ b/.github/workflows/gs-commit-message-checker.yml @@ -25,8 +25,7 @@ jobs: - name: Check Commit Type uses: gsactions/commit-message-checker@v1 with: - pattern: '^.+(feat|fix|docs|style|refactor|perf|test|chore): .+$' - flags: 'gm' + pattern: '^.+(feat|fix|docs|style|refactor|perf|test|chore): .+$' error: 'Your first line has to contain a commit type like "feat: your_title".' - name: Check Line Length uses: gsactions/commit-message-checker@v1 @@ -40,5 +39,5 @@ jobs: - name: Check for Resolves / Fixes uses: gsactions/commit-message-checker@v1 with: - pattern: '^.+(feat|fix|docs|style|refactor|perf|test|chore): \#[0-9]+$' - error: 'You need at least one "feat|fix|docs|style|refactor|perf|test|chore: #" line.' \ No newline at end of file + pattern: '^.+(ING)\-[0-9]+$' + error: 'You need at least one "ING-" line.' \ No newline at end of file