From b260cf86d4b6fd64b83098791ca639269380ca0c Mon Sep 17 00:00:00 2001 From: henrykironde Date: Thu, 11 May 2023 20:11:07 -0400 Subject: [PATCH] Remove mristin opinionated-commit-message This removes the mristin opinionated-commit action --- .github/workflows/checks.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/checks.yml diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml new file mode 100644 index 000000000..818c4050d --- /dev/null +++ b/.github/workflows/checks.yml @@ -0,0 +1,33 @@ +name: 'Check commit message style' +on: + pull_request: + types: + - opened + - edited + - reopened + - synchronize + push: + branches: + - main + +jobs: + check-commit-message-style: + runs-on: ubuntu-latest + env: + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + + name: Check commit message style + steps: + - name: Check PR commit message + uses: mristin/opinionated-commit-message@v3.0.0 + + - name: Check commit messages in PR + uses: gsactions/commit-message-checker@v2 + with: + pattern: ^[A-Za-z0-9\s$&+,:;=?@#|'`<>.^*()%!-]{15,50}$ + flags: 'gm' + excludeDescription: 'true' # optional: this excludes the description body of a pull request + excludeTitle: 'true' # optional: this excludes the title of a pull request + checkAllCommitMessages: 'true' + error: 'Length of commit messages should be between 15 to 50 chars long' + accessToken: ${{ secrets.GITHUB_TOKEN }}