Skip to content

Commit 9c49560

Browse files
committed
Merge branch 'main' into fix/61696-refactor
2 parents d2264bd + 233790a commit 9c49560

470 files changed

Lines changed: 10922 additions & 4508 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.changed.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module.exports = {
88
'deprecation/deprecation': 'error',
99
'rulesdir/no-default-id-values': 'error',
1010
'rulesdir/provide-canBeMissing-in-useOnyx': 'error',
11+
'rulesdir/no-unstable-hook-defaults': 'error',
1112
'no-restricted-syntax': [
1213
'error',
1314
{

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ module.exports = {
219219
'es/no-optional-chaining': 'off',
220220
'deprecation/deprecation': 'off',
221221
'arrow-body-style': 'off',
222+
'no-continue': 'off',
222223

223224
// Import specific rules
224225
'import/consistent-type-specifier-style': ['error', 'prefer-top-level'],

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15560,6 +15560,13 @@ const CONST = {
1556015560
HELP_WANTED: 'Help Wanted',
1556115561
CP_STAGING: 'CP Staging',
1556215562
},
15563+
STATE: {
15564+
OPEN: 'open',
15565+
},
15566+
COMMENT: {
15567+
TYPE_BOT: 'Bot',
15568+
NAME_GITHUB_ACTIONS: 'github-actions',
15569+
},
1556315570
ACTIONS: {
1556415571
CREATED: 'created',
1556515572
EDITED: 'edited',
@@ -15578,6 +15585,7 @@ const CONST = {
1557815585
NO_ACTION: 'NO_ACTION',
1557915586
ACTION_EDIT: 'ACTION_EDIT',
1558015587
ACTION_REQUIRED: 'ACTION_REQUIRED',
15588+
ACTION_HIDE_DUPLICATE: 'ACTION_HIDE_DUPLICATE',
1558115589
};
1558215590
exports["default"] = CONST;
1558315591

@@ -15938,6 +15946,14 @@ class GithubUtils {
1593815946
per_page: 100,
1593915947
}, (response) => response.data.map((comment) => comment.body));
1594015948
}
15949+
static getAllCommentDetails(issueNumber) {
15950+
return this.paginate(this.octokit.issues.listComments, {
15951+
owner: CONST_1.default.GITHUB_OWNER,
15952+
repo: CONST_1.default.APP_REPO,
15953+
issue_number: issueNumber,
15954+
per_page: 100,
15955+
}, (response) => response.data);
15956+
}
1594115957
/**
1594215958
* Create comment on pull request
1594315959
*/

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

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12278,7 +12278,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
1227812278
return result;
1227912279
};
1228012280
Object.defineProperty(exports, "__esModule", ({ value: true }));
12281-
exports.getStringInput = exports.getJSONInput = void 0;
12281+
exports.convertToNumber = exports.getStringInput = exports.getJSONInput = void 0;
1228212282
const core = __importStar(__nccwpck_require__(2186));
1228312283
/**
1228412284
* Safely parse a JSON input to a GitHub Action.
@@ -12307,6 +12307,23 @@ function getStringInput(name, options, defaultValue) {
1230712307
return input;
1230812308
}
1230912309
exports.getStringInput = getStringInput;
12310+
/**
12311+
* Converts a value to a number, returning 0 for non-numeric values.
12312+
*/
12313+
function convertToNumber(value) {
12314+
switch (typeof value) {
12315+
case 'number':
12316+
return value;
12317+
case 'string':
12318+
if (!Number.isNaN(Number(value))) {
12319+
return Number(value);
12320+
}
12321+
return 0;
12322+
default:
12323+
return 0;
12324+
}
12325+
}
12326+
exports.convertToNumber = convertToNumber;
1231012327

1231112328

1231212329
/***/ }),
@@ -12334,6 +12351,13 @@ const CONST = {
1233412351
HELP_WANTED: 'Help Wanted',
1233512352
CP_STAGING: 'CP Staging',
1233612353
},
12354+
STATE: {
12355+
OPEN: 'open',
12356+
},
12357+
COMMENT: {
12358+
TYPE_BOT: 'Bot',
12359+
NAME_GITHUB_ACTIONS: 'github-actions',
12360+
},
1233712361
ACTIONS: {
1233812362
CREATED: 'created',
1233912363
EDITED: 'edited',
@@ -12352,6 +12376,7 @@ const CONST = {
1235212376
NO_ACTION: 'NO_ACTION',
1235312377
ACTION_EDIT: 'ACTION_EDIT',
1235412378
ACTION_REQUIRED: 'ACTION_REQUIRED',
12379+
ACTION_HIDE_DUPLICATE: 'ACTION_HIDE_DUPLICATE',
1235512380
};
1235612381
exports["default"] = CONST;
1235712382

@@ -12712,6 +12737,14 @@ class GithubUtils {
1271212737
per_page: 100,
1271312738
}, (response) => response.data.map((comment) => comment.body));
1271412739
}
12740+
static getAllCommentDetails(issueNumber) {
12741+
return this.paginate(this.octokit.issues.listComments, {
12742+
owner: CONST_1.default.GITHUB_OWNER,
12743+
repo: CONST_1.default.APP_REPO,
12744+
issue_number: issueNumber,
12745+
per_page: 100,
12746+
}, (response) => response.data);
12747+
}
1271512748
/**
1271612749
* Create comment on pull request
1271712750
*/

.github/actions/javascript/checkAndroidStatus/index.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -737053,6 +737053,13 @@ const CONST = {
737053737053
HELP_WANTED: 'Help Wanted',
737054737054
CP_STAGING: 'CP Staging',
737055737055
},
737056+
STATE: {
737057+
OPEN: 'open',
737058+
},
737059+
COMMENT: {
737060+
TYPE_BOT: 'Bot',
737061+
NAME_GITHUB_ACTIONS: 'github-actions',
737062+
},
737056737063
ACTIONS: {
737057737064
CREATED: 'created',
737058737065
EDITED: 'edited',
@@ -737071,6 +737078,7 @@ const CONST = {
737071737078
NO_ACTION: 'NO_ACTION',
737072737079
ACTION_EDIT: 'ACTION_EDIT',
737073737080
ACTION_REQUIRED: 'ACTION_REQUIRED',
737081+
ACTION_HIDE_DUPLICATE: 'ACTION_HIDE_DUPLICATE',
737074737082
};
737075737083
exports["default"] = CONST;
737076737084

@@ -737431,6 +737439,14 @@ class GithubUtils {
737431737439
per_page: 100,
737432737440
}, (response) => response.data.map((comment) => comment.body));
737433737441
}
737442+
static getAllCommentDetails(issueNumber) {
737443+
return this.paginate(this.octokit.issues.listComments, {
737444+
owner: CONST_1.default.GITHUB_OWNER,
737445+
repo: CONST_1.default.APP_REPO,
737446+
issue_number: issueNumber,
737447+
per_page: 100,
737448+
}, (response) => response.data);
737449+
}
737434737450
/**
737435737451
* Create comment on pull request
737436737452
*/

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11617,6 +11617,13 @@ const CONST = {
1161711617
HELP_WANTED: 'Help Wanted',
1161811618
CP_STAGING: 'CP Staging',
1161911619
},
11620+
STATE: {
11621+
OPEN: 'open',
11622+
},
11623+
COMMENT: {
11624+
TYPE_BOT: 'Bot',
11625+
NAME_GITHUB_ACTIONS: 'github-actions',
11626+
},
1162011627
ACTIONS: {
1162111628
CREATED: 'created',
1162211629
EDITED: 'edited',
@@ -11635,6 +11642,7 @@ const CONST = {
1163511642
NO_ACTION: 'NO_ACTION',
1163611643
ACTION_EDIT: 'ACTION_EDIT',
1163711644
ACTION_REQUIRED: 'ACTION_REQUIRED',
11645+
ACTION_HIDE_DUPLICATE: 'ACTION_HIDE_DUPLICATE',
1163811646
};
1163911647
exports["default"] = CONST;
1164011648

@@ -11995,6 +12003,14 @@ class GithubUtils {
1199512003
per_page: 100,
1199612004
}, (response) => response.data.map((comment) => comment.body));
1199712005
}
12006+
static getAllCommentDetails(issueNumber) {
12007+
return this.paginate(this.octokit.issues.listComments, {
12008+
owner: CONST_1.default.GITHUB_OWNER,
12009+
repo: CONST_1.default.APP_REPO,
12010+
issue_number: issueNumber,
12011+
per_page: 100,
12012+
}, (response) => response.data);
12013+
}
1199812014
/**
1199912015
* Create comment on pull request
1200012016
*/

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11683,6 +11683,13 @@ const CONST = {
1168311683
HELP_WANTED: 'Help Wanted',
1168411684
CP_STAGING: 'CP Staging',
1168511685
},
11686+
STATE: {
11687+
OPEN: 'open',
11688+
},
11689+
COMMENT: {
11690+
TYPE_BOT: 'Bot',
11691+
NAME_GITHUB_ACTIONS: 'github-actions',
11692+
},
1168611693
ACTIONS: {
1168711694
CREATED: 'created',
1168811695
EDITED: 'edited',
@@ -11701,6 +11708,7 @@ const CONST = {
1170111708
NO_ACTION: 'NO_ACTION',
1170211709
ACTION_EDIT: 'ACTION_EDIT',
1170311710
ACTION_REQUIRED: 'ACTION_REQUIRED',
11711+
ACTION_HIDE_DUPLICATE: 'ACTION_HIDE_DUPLICATE',
1170411712
};
1170511713
exports["default"] = CONST;
1170611714

@@ -12299,6 +12307,14 @@ class GithubUtils {
1229912307
per_page: 100,
1230012308
}, (response) => response.data.map((comment) => comment.body));
1230112309
}
12310+
static getAllCommentDetails(issueNumber) {
12311+
return this.paginate(this.octokit.issues.listComments, {
12312+
owner: CONST_1.default.GITHUB_OWNER,
12313+
repo: CONST_1.default.APP_REPO,
12314+
issue_number: issueNumber,
12315+
per_page: 100,
12316+
}, (response) => response.data);
12317+
}
1230212318
/**
1230312319
* Create comment on pull request
1230412320
*/

.github/actions/javascript/getArtifactInfo/index.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11578,6 +11578,13 @@ const CONST = {
1157811578
HELP_WANTED: 'Help Wanted',
1157911579
CP_STAGING: 'CP Staging',
1158011580
},
11581+
STATE: {
11582+
OPEN: 'open',
11583+
},
11584+
COMMENT: {
11585+
TYPE_BOT: 'Bot',
11586+
NAME_GITHUB_ACTIONS: 'github-actions',
11587+
},
1158111588
ACTIONS: {
1158211589
CREATED: 'created',
1158311590
EDITED: 'edited',
@@ -11596,6 +11603,7 @@ const CONST = {
1159611603
NO_ACTION: 'NO_ACTION',
1159711604
ACTION_EDIT: 'ACTION_EDIT',
1159811605
ACTION_REQUIRED: 'ACTION_REQUIRED',
11606+
ACTION_HIDE_DUPLICATE: 'ACTION_HIDE_DUPLICATE',
1159911607
};
1160011608
exports["default"] = CONST;
1160111609

@@ -11956,6 +11964,14 @@ class GithubUtils {
1195611964
per_page: 100,
1195711965
}, (response) => response.data.map((comment) => comment.body));
1195811966
}
11967+
static getAllCommentDetails(issueNumber) {
11968+
return this.paginate(this.octokit.issues.listComments, {
11969+
owner: CONST_1.default.GITHUB_OWNER,
11970+
repo: CONST_1.default.APP_REPO,
11971+
issue_number: issueNumber,
11972+
per_page: 100,
11973+
}, (response) => response.data);
11974+
}
1195911975
/**
1196011976
* Create comment on pull request
1196111977
*/

.github/actions/javascript/getDeployPullRequestList/index.js

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11664,7 +11664,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
1166411664
return result;
1166511665
};
1166611666
Object.defineProperty(exports, "__esModule", ({ value: true }));
11667-
exports.getStringInput = exports.getJSONInput = void 0;
11667+
exports.convertToNumber = exports.getStringInput = exports.getJSONInput = void 0;
1166811668
const core = __importStar(__nccwpck_require__(2186));
1166911669
/**
1167011670
* Safely parse a JSON input to a GitHub Action.
@@ -11693,6 +11693,23 @@ function getStringInput(name, options, defaultValue) {
1169311693
return input;
1169411694
}
1169511695
exports.getStringInput = getStringInput;
11696+
/**
11697+
* Converts a value to a number, returning 0 for non-numeric values.
11698+
*/
11699+
function convertToNumber(value) {
11700+
switch (typeof value) {
11701+
case 'number':
11702+
return value;
11703+
case 'string':
11704+
if (!Number.isNaN(Number(value))) {
11705+
return Number(value);
11706+
}
11707+
return 0;
11708+
default:
11709+
return 0;
11710+
}
11711+
}
11712+
exports.convertToNumber = convertToNumber;
1169611713

1169711714

1169811715
/***/ }),
@@ -11720,6 +11737,13 @@ const CONST = {
1172011737
HELP_WANTED: 'Help Wanted',
1172111738
CP_STAGING: 'CP Staging',
1172211739
},
11740+
STATE: {
11741+
OPEN: 'open',
11742+
},
11743+
COMMENT: {
11744+
TYPE_BOT: 'Bot',
11745+
NAME_GITHUB_ACTIONS: 'github-actions',
11746+
},
1172311747
ACTIONS: {
1172411748
CREATED: 'created',
1172511749
EDITED: 'edited',
@@ -11738,6 +11762,7 @@ const CONST = {
1173811762
NO_ACTION: 'NO_ACTION',
1173911763
ACTION_EDIT: 'ACTION_EDIT',
1174011764
ACTION_REQUIRED: 'ACTION_REQUIRED',
11765+
ACTION_HIDE_DUPLICATE: 'ACTION_HIDE_DUPLICATE',
1174111766
};
1174211767
exports["default"] = CONST;
1174311768

@@ -12336,6 +12361,14 @@ class GithubUtils {
1233612361
per_page: 100,
1233712362
}, (response) => response.data.map((comment) => comment.body));
1233812363
}
12364+
static getAllCommentDetails(issueNumber) {
12365+
return this.paginate(this.octokit.issues.listComments, {
12366+
owner: CONST_1.default.GITHUB_OWNER,
12367+
repo: CONST_1.default.APP_REPO,
12368+
issue_number: issueNumber,
12369+
per_page: 100,
12370+
}, (response) => response.data);
12371+
}
1233912372
/**
1234012373
* Create comment on pull request
1234112374
*/

.github/actions/javascript/getPreviousVersion/index.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11575,6 +11575,13 @@ const CONST = {
1157511575
HELP_WANTED: 'Help Wanted',
1157611576
CP_STAGING: 'CP Staging',
1157711577
},
11578+
STATE: {
11579+
OPEN: 'open',
11580+
},
11581+
COMMENT: {
11582+
TYPE_BOT: 'Bot',
11583+
NAME_GITHUB_ACTIONS: 'github-actions',
11584+
},
1157811585
ACTIONS: {
1157911586
CREATED: 'created',
1158011587
EDITED: 'edited',
@@ -11593,6 +11600,7 @@ const CONST = {
1159311600
NO_ACTION: 'NO_ACTION',
1159411601
ACTION_EDIT: 'ACTION_EDIT',
1159511602
ACTION_REQUIRED: 'ACTION_REQUIRED',
11603+
ACTION_HIDE_DUPLICATE: 'ACTION_HIDE_DUPLICATE',
1159611604
};
1159711605
exports["default"] = CONST;
1159811606

@@ -12191,6 +12199,14 @@ class GithubUtils {
1219112199
per_page: 100,
1219212200
}, (response) => response.data.map((comment) => comment.body));
1219312201
}
12202+
static getAllCommentDetails(issueNumber) {
12203+
return this.paginate(this.octokit.issues.listComments, {
12204+
owner: CONST_1.default.GITHUB_OWNER,
12205+
repo: CONST_1.default.APP_REPO,
12206+
issue_number: issueNumber,
12207+
per_page: 100,
12208+
}, (response) => response.data);
12209+
}
1219412210
/**
1219512211
* Create comment on pull request
1219612212
*/

0 commit comments

Comments
 (0)