-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
52 lines (49 loc) · 2.37 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
50
51
52
name: "Lint Pull Request"
description: "Lint the pull request structure and leave a comment suggesting changes if linting fails"
author: 'Maurice Arikoglu (reactionlink.de)'
branding:
icon: git-pull-request
color: blue
inputs:
access-token:
description: "Token with triage permissions or GITHUB_TOKEN"
required: true
token-login:
description: "Username of the GitHub user"
required: true
github-event:
description: "toJSON of github.event (event triggering the action)"
required: true
use-greetings:
description: "JSON string array to use for randomly selected greetings (used in comment body, runs through JSON.parse)"
default: '["Hello @{name},\n"]'
use-approval-labels:
description: "JSON string array to use for labeling linted pull request (runs through JSON.parse)"
default: '["Good"]'
use-title-regex:
description: "Regex string to use for linting the pull request title"
default: '\w+'
use-description-regex:
description: "Regex string to use for linting the pull request description"
default: '\w+'
use-title-regex-flag:
description: "Regex flag to use for linting the pull request title (Use empty string for none)"
default: 'g'
use-description-regex-flag:
description: "Regex flag to use for linting the pull request description (Use empty string for none)"
default: 'g'
use-problem-title:
description: "Template string to use for highlighting a title that failed to pass (used in comment body). Template-Literals: {title}"
default: '- The title `{title}` is not the format I expected.'
use-problem-description:
description: "Template string to use for highlighting a description that failed to pass (used in comment body). Template-Literals: {body}"
default: '- The description `{body}` is not the format I expected.'
use-explanation-title:
description: "JSON string array to describe rules to pass linting for the pull request title (used in comment body, runs through JSON.parse)"
default: '["- There must be a title","- Use proper capitalization"]'
use-explanation-description:
description: "JSON string array to describe rules to pass linting for the pull request description (used in comment body, runs through JSON.parse)"
default: '["- There must be a description"]'
runs:
using: "node20"
main: "dist/index.js"