generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 5
/
action.yml
49 lines (49 loc) · 1.6 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
45
46
47
48
49
name: PR Size Watcher
description: Checks PR size, adds comment and/or fails build if PR is too big.
branding:
icon: "eye"
color: "gray-dark"
author: Kirill Bubochkin
inputs:
githubToken:
description: "GitHub token for commenting on a PR"
default: ""
required: true
errorSize:
description: Max number of additions after each changes will be requested.
default: "500"
required: false
errorMessage:
description: >
Message that will be added as a comment if error is triggered.
{allowed} placeholder will be replaced with `errorSize` value.
default: ":no_entry: PR has more than **{allowed} additions**. Split it into smaller PRs."
required: false
warningSize:
description: Max number of additions after each warning comment will be added.
default: "300"
required: false
warningMessage:
description: >
Message that will be added as a comment if warning is triggered.
{allowed} placeholder will be replaced with `warningSize` value.
default: ":warning: PR has more than **{allowed} additions**. Consider splitting it into smaller PRs."
required: false
excludeTitle:
description: >
If not empty PR title will be checked against this regex. If it matches, validation will be skipped.
default: ""
required: false
excludePaths:
description: >
File paths that should be excluded from size calculation.
default: ""
required: false
excludeLabels:
description: >
Labels that should be excluded from size calculation.
default: ""
required: false
runs:
using: "node20"
main: "dist/index.js"