-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
92 lines (84 loc) · 3.39 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: 'DangerJS Action'
description: 'Run DangerJS'
inputs:
rule-max-commits:
description: 'Enabled rule for Maximum number of commits in PR'
required: false
max-commits-info:
description: 'Maximum number of commits in PR (throw MESSAGE)'
required: false
max-commits-warn:
description: 'Maximum number of commits in PR (throw WARN)'
required: false
rule-commit-messages:
description: 'Enabled rule for Linting commit messages in PR'
required: false
commit-messages-types:
description: 'Commit message allowed types'
required: false
commit-messages-min-summary-length:
description: 'Commit message minimum summary length'
required: false
commit-messages-max-summary-length:
description: 'Commit message maximum summary length'
required: false
commit-messages-max-body-line-length:
description: 'Commit message maximum body line length'
required: false
rule-description:
description: 'Enabled rule for check of PR description'
required: false
description-min-length:
description: 'Minimum length of PR description'
required: false
description-ignore-sections:
description: 'Ignored sections of PR description'
required: false
rule-source-branch:
description: 'Enabled rule for check of PR source branch name'
required: false
rule-target-branch:
description: 'Enabled rule for check of PR target branch is default branch'
required: false
rule-size-lines:
description: 'Enabled rule for check of PR number of changed lines'
required: false
max-size-lines:
description: 'Maximum number of changed lines in PR'
required: false
# Output
instructions:
description: 'Enabled output instructions under issue table in the PR comment'
required: false
instructions-contributions-file:
description: 'Custom name of Contributions Guide file in repository'
required: false
instructions-gitlab-mirror:
description: 'Enabled info about this is only Gitlab mirror'
required: false
instructions-cla-link:
description: 'Link to project Contributor License Agreement'
required: false
runs:
using: 'docker'
image: 'Dockerfile'
env:
ENABLE_RULE_PR_COMMIT_MESSAGES: ${{ inputs.rule-commit-messages }}
ENABLE_RULE_PR_DESCRIPTION: ${{ inputs.rule-description }}
ENABLE_RULE_PR_SOURCE_BRANCH_NAME: ${{ inputs.rule-source-branch }}
ENABLE_RULE_PR_TARGET_BRANCH: ${{ inputs.rule-target-branch }}
ENABLE_RULE_PR_TOO_MANY_COMMITS: ${{ inputs.rule-max-commits }}
ENABLE_RULE_PR_SIZE_LINES: ${{ inputs.rule-size-lines }}
ENABLE_OUTPUT_INSTRUCTIONS: ${{ inputs.instructions }}
CLA_LINK: ${{ inputs.instructions-cla-link}}
COMMIT_MESSAGE_ALLOWED_TYPES: ${{ inputs.commit-messages-types }}
CONTRIBUTING_GUIDE_FILE: ${{ inputs.instructions-contributions-file }}
IGNORED_SECTIONS_DESCRIPTION: ${{ inputs.description-ignore-sections }}
IS_GITLAB_MIRROR: ${{ inputs.instructions-gitlab-mirror}}
MAX_COMMIT_MESSAGE_BODY_LINE: ${{ inputs.commit-messages-max-body-line-length }}
MAX_COMMIT_MESSAGE_SUMMARY: ${{ inputs.commit-messages-max-summary-length }}
MAX_COMMITS_WARN: ${{ inputs.max-commits-warn }}
MAX_COMMITS: ${{ inputs.max-commits-info }}
MAX_PR_LINES: ${{ inputs.max-size-lines }}
MIN_COMMIT_MESSAGE_SUMMARY: ${{ inputs.commit-messages-min-summary-length }}
MIN_PR_DESCRIPTION_LENGTH: ${{ inputs.description-min-length }}