diff --git a/.github/workflows/lint-commit.yaml b/.github/workflows/lint-commit.yaml new file mode 100644 index 00000000..c5c80815 --- /dev/null +++ b/.github/workflows/lint-commit.yaml @@ -0,0 +1,22 @@ +name: Lint Commit +on: + pull_request_target: + types: + - opened + - reopened + - synchronize + - edited + +jobs: + commitlint: + runs-on: ubuntu-latest + name: commitlint + + steps: + - uses: actions/checkout@v4 + - uses: amannn/action-semantic-pull-request@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + subjectPattern: ^(?![A-Z]).+$ +