Repository navigation
Expand file tree
/
Copy pathaction.yml
More file actions
44 lines (44 loc) · 1.53 KB
/
Copy pathaction.yml
File metadata and controls
44 lines (44 loc) · 1.53 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
name: "Pull Request Linter"
description: "Ensure your PR titles match a given regex."
branding:
icon: "check"
color: "green"
inputs:
title-regex:
description: "Regex to ensure PR title matches. Allows anything by default."
required: false
default: ^[Aa][Nn]-(?!0+[:\/])\d+[:\/].*
on-failed-regex-create-review:
description:
"Whether the action should create a PR review & comment when the regex
doesn't match."
required: false
default: "true"
on-failed-regex-comment:
description:
"Comment for the bot to post on PRs that fail the regex. Use %regex% to
reference regex."
required: false
default: "PR name does not conform with convention 😵💫 (PR title must start with 'AN-' followed by non-zero numbers, deliminated by a ':' or '/')"
on-failed-regex-fail-action:
description: "Whether the action should fail when the regex doesn't match."
required: false
default: "true"
on-failed-regex-request-changes:
description:
"Whether the action should request changes or just provide a comment."
required: false
default: "true"
on-succeeded-regex-dismiss-review-comment:
description:
"Comment for the bot to post on PRs that succeed the regex and have their
review dismissed."
required: false
default: "PR name conforms with convention - Great Success! 🥳"
repo-token:
description:
"Github token with access to the repository (secrets.GITHUB_TOKEN)."
required: true
runs:
using: "node20"
main: "dist/index.js"