-
Notifications
You must be signed in to change notification settings - Fork 3
/
action.yml
36 lines (36 loc) · 1.07 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
name: 'Check Pull Request Labels'
author: 'Martine S. Lenders'
description: 'Checks if certain labels are set or not set and allows conditions'
inputs:
set_labels:
description: 'List of labels required to be set'
required: false
default: ''
unset_labels:
description: 'List of labels required not to be set'
required: false
default: ''
cond_labels:
description: 'List of (label,condition) tuples for labels introducing a condition'
required: false
default: ''
access_token:
description: 'A GitHub personal access tokens for private repositories'
required: false
default: ''
missing_approvals_label:
description: '(optional) label to be set if the review approval count condition fails'
required: false
default: ''
pull_request:
description: '(optional) PR number of the triggering PR'
required: false
default: ''
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.set_labels }}
- ${{ inputs.unset_labels }}
- ${{ inputs.cond_labels }}
- ${{ inputs.missing_approvals_label }}