-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (27 loc) · 1.02 KB
/
pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: PR
on:
# 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.
# _target applies to PR from forks.
pull_request_target:
types: [opened, edited, reopened, synchronize]
jobs:
assignee-reviewer:
runs-on: ubuntu-22.04
steps:
- uses: kentaro-m/[email protected]
conventional-title:
runs-on: ubuntu-22.04
steps:
- uses: morrisoncole/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
title-regex: "^(feat|fix|docs|style|refactor|perf|test|build|ci|chore): .{1,}"
on-failed-regex-fail-action: true
on-failed-regex-create-review: true
on-failed-regex-request-changes: true
on-failed-regex-comment:
"Please stick to Conventional Commits syntax for PR titles ;)"
on-succeeded-regex-dismiss-review-comment:
"Thank you <3"