forked from JJ/github-pr-contains-action
-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
30 lines (29 loc) · 1.12 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
name: "Check pull request body, diff and files - Apoorv's Test copy"
description: "Checks that the body or the added code contains or avoid a word, number of files or lines changed"
author: "JJ"
branding:
icon: "git-pull-request"
color: "gray-dark"
inputs:
github-token:
description: "Github token, added magically"
bodyContains:
description: "String or |-separated array of strings, one of which must be contained in the PR body, can be left blank or omitted"
bodyDoesNotContain:
description: "String or |-separated array of strings, none of which should be in the PR body, can be left blank"
diffContains:
description: "Word that must be contained in the added code"
diffDoesNotContain:
description: "Word that should not be contained in the added code"
linesChanged:
description: "Max number of lines changed per PR"
filesChanged:
description: "Max number of files changed in the PR"
waivedUsers:
description: "Users that will not need to follow these guidelines. Defaults to dependabot."
outputs:
diff:
description: "Lines added to the PR"
runs:
using: "node16"
main: "dist/index.js"