forked from deepakputhraya/action-pr-title
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
44 lines (43 loc) · 1.43 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
name: 'Pull Request title rules'
description: 'Github action to enforce Pull Request title conventions'
author: 'deepakputhraya'
inputs:
regex:
description: 'Regex to validate the pull request title'
required: false
default: '.+'
allowed_prefixes:
description: 'Comma separated list of prefix allowed to be used in title. eg: feature,hotfix,JIRA-'
required: false
default: ''
disallowed_prefixes:
description: 'Comma separated list of prefix disallowed to be used in title. eg: feat,fix'
required: false
default: ''
prefix_case_sensitive:
description: 'Are the allowed & disallowed prefixes case sensitive?'
required: false
default: 'false'
min_length:
description: 'Min length of title'
required: false
default: '1'
max_length:
description: 'Max length of title. -1 to ignore the rule'
required: false
default: '-1'
github_token:
description: >
Personal access token (PAT) used to fetch the repository. The PAT is configured
with the local git config, which enables your scripts to run authenticated git
commands. The post-job step removes the PAT.
We recommend using a service account with the least permissions necessary.
Also when generating a new PAT, select the least scopes necessary.
required: false
default: ${{ github.token }}
runs:
using: 'node12'
main: 'index.js'
branding:
icon: 'alert-triangle'
color: 'gray-dark'