/
action.yml
32 lines (32 loc) · 992 Bytes
/
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
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
inputs:
token:
description: The GitHub token to use when calling the API
default: ${{ github.token }}
required: false
labels:
description: "Comma 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"
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