-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconstants.js
48 lines (48 loc) · 1.79 KB
/
constants.js
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
module.exports = {
configFileName: process.env.REGEX_CONFIG_FILE_NAME,
conclusion_status: {
SUCCESS: 'success',
FAILURE: 'failure',
NEUTRAL: 'neutral',
CANCELLED: 'cancelled',
TIMED_OUT: 'timed_out',
ACTION_REQUIRED: 'action_required'
},
messages: {
valid_commit_message: 'Commit messages are valid',
invalid_commit_message: 'Commit messages are invalid',
valid_pull_request_message: 'Pull request title is valid',
invalid_pull_request_message: 'Pull request title is invalid',
multiple_other_invalid_message: 'other messages are invalid',
single_other_invalid_message: 'other message is invalid',
pr_configuration_not_set: 'Pull request title format is not configured',
commit_message_configuration_not_set:
'Commit message format is not configured',
pr_and_commit_message_configuration_not_set:
'Pull request title and commit message format are not configured',
home_page_message: 'Commit Message Lint App'
},
CHECK_RUN_STATUS_COMPLETED: 'completed',
CHECK_RUN_NAME: 'Commit Message Lint',
output_title_success: 'Message validation passed!!!',
output_title_fail: 'Message validation failed!!!',
INVALID_COMMIT_LIMIT: 3,
USER_AGENT: 'commit-message-lint-app',
invalid_commit_list: {
commit_id: 'sha:',
commit_message: 'message:'
},
REGEX: {
MERGE_COMMIT_REGEX: '/^(Merge pull request)/'
},
events: {
PULL_REQUEST_OPEN: 'pull_request.opened',
CHECK_RUN_REREQUESTED: 'check_run.rerequested',
CHECK_SUITE_REREQUESTED: 'check_suite.rerequested',
CHECK_SUITE_REQUESTED: 'check_suite.requested',
MARKETPLACE_PURCHASE: 'marketplace_purchase',
CHECK_SUITE: 'check_suite'
},
OAUTH_ENDPOINT: 'https://github.com/login/oauth',
INSTALLATION_PATH: 'https://github.com/settings/installations'
};