forked from CodelyTV/pr-size-labeler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
44 lines (44 loc) · 1.11 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 size labeler'
description: 'Label a PR based on the amount of changes'
inputs:
GITHUB_TOKEN:
description: 'GitHub token'
required: true
xs_max_size:
description: 'Max size for a PR to be considered xs'
required: false
default: '10'
s_max_size:
description: 'Max size for a PR to be considered s'
required: false
default: '100'
m_max_size:
description: 'Max size for a PR to be considered m'
required: false
default: '500'
l_max_size:
description: 'Max size for a PR to be considered l'
required: false
default: '1000'
fail_if_xl:
description: 'Fail if the PR is of xl size'
required: false
default: 'false'
message_if_xl:
description: 'Message to show if the PR is xl size'
required: false
default: ''
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.GITHUB_TOKEN }}
- ${{ inputs.xs_max_size }}
- ${{ inputs.s_max_size }}
- ${{ inputs.m_max_size }}
- ${{ inputs.l_max_size }}
- ${{ inputs.fail_if_xl }}
- ${{ inputs.message_if_xl }}
branding:
icon: 'tag'
color: 'green'