diff --git a/.github/workflows/pr-lint.yaml b/.github/workflows/pr-lint.yaml new file mode 100644 index 0000000..237dffe --- /dev/null +++ b/.github/workflows/pr-lint.yaml @@ -0,0 +1,16 @@ +name: Pull Request Linter +on: + pull_request: + types: + - opened + - edited + - reopened +jobs: + lint-pr: + name: Lint pull request title + runs-on: ubuntu-latest + steps: + - name: Lint pull request title + uses: jef/conventional-commits-pr-action@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/pull-request-lint.yaml b/.github/workflows/pull-request-lint.yaml deleted file mode 100644 index 1de342b..0000000 --- a/.github/workflows/pull-request-lint.yaml +++ /dev/null @@ -1,17 +0,0 @@ -name: Pull Request Lint -on: - pull_request_target: - types: - - opened - - edited - - reopened - - synchronize -jobs: - pull-request-lint: - name: Lint pull request - runs-on: ubuntu-latest - steps: - - name: Lint pull request - uses: amannn/action-semantic-pull-request@v3.4.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}