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..ba64272 100644 --- a/.github/workflows/gs-commit-message-checker.yml +++ b/.github/workflows/gs-commit-message-checker.yml @@ -22,23 +22,22 @@ jobs: name: Check Commit Message runs-on: ubuntu-latest steps: - - name: Check Commit Type - uses: gsactions/commit-message-checker@v1 - with: - pattern: '^.+(feat|fix|docs|style|refactor|perf|test|chore): .+$' - flags: 'gm' - error: 'Your first line has to contain a commit type like "feat: your_title".' - name: Check Line Length uses: gsactions/commit-message-checker@v1 with: pattern: '^[^#].{74}' error: 'The maximum line length of 74 characters is exceeded.' excludeDescription: 'true' # optional: this excludes the description body of a pull request - excludeTitle: 'true' # optional: this excludes the title of a pull request + excludeTitle: 'false' # optional: this excludes the title of a pull request checkAllCommitMessages: 'true' # optional: this checks all commits associated with a pull request accessToken: ${{ secrets.GITHUB_TOKEN }} # github access token is only required if checkAllCommitMessages is true - 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.' + - name: Check Commit Type + uses: gsactions/commit-message-checker@v1 + with: + pattern: '^.+(feat|fix|docs|style|refactor|perf|test|chore): .+$' + error: 'Your first line has to contain a commit type like "feat: your_title".' \ No newline at end of file