Update pr.yml
This commit is contained in:
8
.github/workflows/pr.yml
vendored
8
.github/workflows/pr.yml
vendored
@@ -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 }}
|
||||
github-token: ${{ secrets.Owain }}
|
||||
|
||||
Reference in New Issue
Block a user