forked from neofinancial/ticket-check-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
79 lines (63 loc) · 2.28 KB
/
action.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: 'Pull Request Ticket Check Action'
description: 'Verify that pull request titles start with a ticket ID'
author: 'Neo Financial Engineering'
inputs:
ticketPrefix:
description: 'The unique identifier for the ticket/issue'
default: ''
required: false
titleFormat:
description: "The intended format the title should be set to if it doesn't match the regular expression. Available variables are `%prefix%`, `%id%`, and `%title%`"
default: '%prefix%%id%: %title%'
required: true
titleRegex:
description: 'The regular expression used to search the title for the intended format'
default: '^(CH)(-?)(?<ticketNumber>\d{3,})'
required: true
titleRegexFlags:
description: 'The regular expression flags applied to the title regular expression'
default: 'gi'
required: true
branchRegex:
description: 'The regular expression used to search the branch for the intended format'
default: '^(CH)(-?)(?<ticketNumber>\d{3,})'
required: true
branchRegexFlags:
description: 'The regular expression flags applied to the branch regular expression'
default: 'gi'
required: true
bodyRegex:
description: 'The regular expression used to search the body for a shorthand reference'
default: '(CH)(-?)(?<ticketNumber>\d{3,})'
required: true
bodyRegexFlags:
description: 'The flags applied to the body regular expression when searching for a shorthand reference'
default: 'gim'
required: true
bodyURLRegex:
description: 'The regular expression used to search the body for a URL reference'
required: false
bodyURLRegexFlags:
description: 'The flags applied to the body regular expression when searching for a URL reference'
default: 'gim'
required: true
exemptUsers:
description: 'User(s) who will be exempt from the ticket check rules. Particularly useful for automated/bot PRs'
default: ''
required: false
quiet:
description: 'Suppress comment on successful PR title update'
default: 'true'
required: false
token:
description: 'GitHub authentication token'
required: true
ticketLink:
description: 'Ticket URL with `%ticketNumber%` placeholder'
required: false
runs:
using: 'node12'
main: 'build/index.js'
branding:
icon: 'git-pull-request'
color: 'blue'