diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index b6ab279e6c..6c41bf9f0f 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -1,6 +1,8 @@ name: OpenOSRS - CI (PR) -on: pull_request +on: + pull_request: + types: ['opened', 'edited', 'reopened', 'synchronize'] jobs: pr-lint: @@ -13,6 +15,8 @@ jobs: uses: seferov/pr-lint-action@master with: title-regex: '^([\w-/]+): \w+' + github-token: ${{ secrets.GITHUB_TOKEN }} + auto-close-message: 'Closing this pull request since the title does not match %pattern% pattern. Please fix the title and re-open the pull request.' build: runs-on: ubuntu-latest @@ -116,4 +120,4 @@ jobs: if: github.event_name == 'pull_request' && github.actor == 'OpenOSRS' uses: hmarr/auto-approve-action@v2.0.0 with: - github-token: ${{ secrets.Owain }} \ No newline at end of file + github-token: ${{ secrets.Owain }}