Skip to content

Commit 82ee577

Browse files
authored
Merge pull request #31071 from waterim/feat-19810-Remove-fully-moment
[NoQA] Feature: Remove moment fully
2 parents d82dc7a + cd56975 commit 82ee577

File tree

18 files changed

+6381
-9328
lines changed

18 files changed

+6381
-9328
lines changed

.github/actions/javascript/authorChecklist/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const CONST = {
1717
DEPLOY_BLOCKER: 'DeployBlockerCash',
1818
INTERNAL_QA: 'InternalQA',
1919
},
20+
DATE_FORMAT_STRING: 'yyyy-MM-dd',
2021
};
2122

2223
CONST.APP_REPO_URL = `https://github.com/${CONST.GITHUB_OWNER}/${CONST.APP_REPO}`;

.github/actions/javascript/awaitStagingDeploys/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ const CONST = {
129129
DEPLOY_BLOCKER: 'DeployBlockerCash',
130130
INTERNAL_QA: 'InternalQA',
131131
},
132+
DATE_FORMAT_STRING: 'yyyy-MM-dd',
132133
};
133134

134135
CONST.APP_REPO_URL = `https://github.com/${CONST.GITHUB_OWNER}/${CONST.APP_REPO}`;

.github/actions/javascript/checkDeployBlockers/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ const CONST = {
9696
DEPLOY_BLOCKER: 'DeployBlockerCash',
9797
INTERNAL_QA: 'InternalQA',
9898
},
99+
DATE_FORMAT_STRING: 'yyyy-MM-dd',
99100
};
100101

101102
CONST.APP_REPO_URL = `https://github.com/${CONST.GITHUB_OWNER}/${CONST.APP_REPO}`;

.github/actions/javascript/createOrUpdateStagingDeploy/createOrUpdateStagingDeploy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
const format = require('date-fns/format');
12
const _ = require('underscore');
23
const core = require('@actions/core');
3-
const moment = require('moment');
44
const CONST = require('../../../libs/CONST');
55
const GithubUtils = require('../../../libs/GithubUtils');
66
const GitUtils = require('../../../libs/GitUtils');
@@ -118,7 +118,7 @@ async function run() {
118118
if (shouldCreateNewDeployChecklist) {
119119
const {data: newChecklist} = await GithubUtils.octokit.issues.create({
120120
...defaultPayload,
121-
title: `Deploy Checklist: New Expensify ${moment().format('YYYY-MM-DD')}`,
121+
title: `Deploy Checklist: New Expensify ${format(new Date(), CONST.DATE_FORMAT_STRING)}`,
122122
labels: [CONST.LABELS.STAGING_DEPLOY],
123123
assignees: [CONST.APPLAUSE_BOT],
124124
});

0 commit comments

Comments
 (0)