forked from mheap/github-action-required-labels
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
39 lines (39 loc) · 1.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
name: Require Labels
description: Require labels to be added to a pull request before merging
runs:
using: docker
image: Dockerfile
branding:
icon: check-square
color: blue
outputs:
labels:
description: "The labels that were matched as a comma separated string"
inputs:
token:
description: The GitHub token to use when calling the API
default: ${{ github.token }}
required: false
labels:
description: "Comma or new line separated list of labels to match"
required: true
mode:
description: "The mode of comparison to use. One of: exactly, minimum, maximum"
required: true
count:
description: "The required number of labels to match"
required: true
message:
description: "The message to log and to add to the PR (if add_comment is true). See the README for available placeholders"
default: "Label error. Requires {{errorString}} {{count}} of: {{ provided }}. Found: {{ applied }}"
required: false
add_comment:
description: "Add a comment to the PR if required labels are missing"
default: "false"
required: false
exit_type:
description: "The exit type of the action. One of: failure, success"
required: false
use_regex:
description: Evaluate the values in `labels` as regular expressions
default: "false"