Update pr.yml

This commit is contained in:
Owain van Brakel
2019-11-23 23:42:57 +01:00
committed by GitHub
parent d3c37c5905
commit 34432d66a7

View File

@@ -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 }}