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) name: OpenOSRS - CI (PR)
on: pull_request on:
pull_request:
types: ['opened', 'edited', 'reopened', 'synchronize']
jobs: jobs:
pr-lint: pr-lint:
@@ -13,6 +15,8 @@ jobs:
uses: seferov/pr-lint-action@master uses: seferov/pr-lint-action@master
with: with:
title-regex: '^([\w-/]+): \w+' 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: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -116,4 +120,4 @@ jobs:
if: github.event_name == 'pull_request' && github.actor == 'OpenOSRS' if: github.event_name == 'pull_request' && github.actor == 'OpenOSRS'
uses: hmarr/auto-approve-action@v2.0.0 uses: hmarr/auto-approve-action@v2.0.0
with: with:
github-token: ${{ secrets.Owain }} github-token: ${{ secrets.Owain }}