-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathconstants.js
36 lines (27 loc) · 1.05 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
const ORGANIZATION_NAME = process.env.ORGANIZATION_NAME || 'electron';
const REPO_NAME = process.env.REPO_NAME || 'electron';
const NUM_SUPPORTED_VERSIONS = process.env.NUM_SUPPORTED_VERSIONS || 4;
const SLACK_BOT_TOKEN = process.env.SLACK_BOT_TOKEN;
const ACTION_TYPE = process.env.ACTION_TYPE;
const UNRELEASED_GITHUB_APP_CREDS = process.env.UNRELEASED_GITHUB_APP_CREDS;
const BLOCKS_RELEASE_LABEL =
process.env.BLOCKS_RELEASE_LABEL || 'blocks-release';
const AUDIT_POST_CHANNEL = process.env.AUDIT_POST_CHANNEL || '#wg-releases';
const RELEASE_BRANCH_PATTERN = /^(\d)+-(?:(?:[0-9]+-x$)|(?:x+-y$))$/;
const EXCLUDED_COMMIT_PATTERN = /^(?:build|ci|test)(?:\(\w+\))?:/;
const MILLISECONDS_PER_DAY = 1000 * 60 * 60 * 24;
const UNRELEASED_DAYS_WARN_THRESHOLD = 8;
module.exports = {
ACTION_TYPE,
AUDIT_POST_CHANNEL,
BLOCKS_RELEASE_LABEL,
EXCLUDED_COMMIT_PATTERN,
NUM_SUPPORTED_VERSIONS,
ORGANIZATION_NAME,
RELEASE_BRANCH_PATTERN,
REPO_NAME,
SLACK_BOT_TOKEN,
UNRELEASED_GITHUB_APP_CREDS,
MILLISECONDS_PER_DAY,
UNRELEASED_DAYS_WARN_THRESHOLD,
};