-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
38 lines (34 loc) · 985 Bytes
/
action.yml
File metadata and controls
38 lines (34 loc) · 985 Bytes
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
name: 'PR Size Checker'
description: 'Automatically labels PRs based on size and warns if they are too large'
author: 'AutomationDojo'
branding:
icon: 'git-pull-request'
color: 'blue'
inputs:
github-token:
description: 'GitHub token for API calls'
required: true
small-threshold:
description: 'Maximum lines changed for a small PR'
required: false
default: '100'
medium-threshold:
description: 'Maximum lines changed for a medium PR'
required: false
default: '300'
large-threshold:
description: 'Maximum lines changed for a large PR'
required: false
default: '600'
comment-on-large:
description: 'Whether to comment on large PRs'
required: false
default: 'true'
outputs:
size-label:
description: 'The size label applied to the PR (small, medium, large, extra-large)'
lines-changed:
description: 'Total number of lines changed (additions + deletions)'
runs:
using: 'node20'
main: 'dist/index.js'