-
Notifications
You must be signed in to change notification settings - Fork 3
/
action.yml
44 lines (44 loc) · 1.15 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: 'PRs Size Labeler'
description: 'Sample GitHub Action written in Go to visualize and optionally limit the size of your pull requests'
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 size is XL'
required: false
default: 'false'
message_if_xl:
description: 'Comment added if the PR size is XL'
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'