forked from pablo-statsig/gh-pr-content-checker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
33 lines (31 loc) · 976 Bytes
/
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
name: 'GitHub PR Content Checker with regex'
description: 'Checks PR body and diff for word occurrences'
author: 'jsoares'
branding:
icon: 'git-pull-request'
color: 'gray-dark'
inputs:
github-token:
description: 'Github token, added magically'
bodyContains:
description: 'String that must be in the PR body'
bodyDoesNotContain:
description: 'String that must not be in the PR body'
diffContains:
description: 'String that must be in the PR diff'
diffDoesNotContain:
description: 'String that must not be in the PR diff'
maxLinesChanged:
description: 'Max number of lines changed per PR'
maxFilesChanged:
description: 'Max number of files changed per PR'
diffDoesNotContainRegex:
description: 'Regex match that should not be in the diff'
diffContainsRegex:
description: 'Regex match that should be in the diff'
outputs:
diff:
description: "Lines added to the PR"
runs:
using: 'node12'
main: 'dist/index.js'