2020-09-22 00:21:04 -04:00
|
|
|
name: PR Lint
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
# By default, a workflow only runs when a pull_request's activity type is opened, synchronize, or reopened. We
|
|
|
|
# explicity override here so that PR titles are re-linted when the PR text content is edited.
|
|
|
|
#
|
|
|
|
# Possible values: https://help.github.com/en/actions/reference/events-that-trigger-workflows#pull-request-event-pull_request
|
|
|
|
types: [opened, edited, reopened, synchronize]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-01-24 02:10:16 -05:00
|
|
|
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
persist-credentials: false
|
|
|
|
submodules: recursive
|
2021-01-04 07:16:07 -05:00
|
|
|
- uses: ./.github/actions/pr-lint-action
|
2020-09-22 00:21:04 -04:00
|
|
|
with:
|
|
|
|
title-regex: "^(build|chore|ci|docs|feat|fix|perf|refactor|style|test|other)((.+))?:\\s.+"
|
|
|
|
on-failed-regex-fail-action: true
|
2020-10-26 19:32:54 -04:00
|
|
|
on-failed-regex-request-changes: false
|
|
|
|
on-failed-regex-create-review: false
|
2020-09-22 00:21:04 -04:00
|
|
|
on-failed-regex-comment:
|
|
|
|
"Please format your PR title to match: `%regex%`!"
|
|
|
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|