diff --git a/.gitea/workflows/commitlint.yml b/.gitea/workflows/commit-lints.yml similarity index 57% rename from .gitea/workflows/commitlint.yml rename to .gitea/workflows/commit-lints.yml index ad032ef..03b1a2e 100644 --- a/.gitea/workflows/commitlint.yml +++ b/.gitea/workflows/commit-lints.yml @@ -1,19 +1,16 @@ -name: commitlint +name: Commit Linter on: pull_request: - branches: - - "*" - types: - - opened - - edited + branches: [ "*" ] + types: [ "opened", "edited" ] jobs: check-and-test: runs-on: ubuntu-latest container: docker.io/commitlint/commitlint:21.2.1 steps: - - uses: actions/checkout@v7.0.0 - - name: check PR title + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 + - name: Verify PR title run: | echo "${{ gitea.event.pull_request.title }}" | commitlint --config .commitlintrc.json