Skip to content

Commit f609635

Browse files
committed
Merge branch 'main' of https://github.com/Uzaifm127/App into fix/82018
2 parents 685f05e + 2044ede commit f609635

119 files changed

Lines changed: 2906 additions & 543 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.

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

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15888,7 +15888,7 @@ class GithubUtils {
1588815888
/**
1588915889
* Generate the issue body and assignees for a StagingDeployCash.
1589015890
*/
15891-
static generateStagingDeployCashBodyAndAssignees(tag, PRList, PRListMobileExpensify, verifiedPRList = [], verifiedPRListMobileExpensify = [], deployBlockers = [], resolvedDeployBlockers = [], resolvedInternalQAPRs = [], isFirebaseChecked = false, isGHStatusChecked = false) {
15891+
static generateStagingDeployCashBodyAndAssignees({ tag, PRList, PRListMobileExpensify = [], verifiedPRList = [], verifiedPRListMobileExpensify = [], deployBlockers = [], resolvedDeployBlockers = [], resolvedInternalQAPRs = [], isFirebaseChecked = false, isGHStatusChecked = false, chronologicalSection = '', }) {
1589215892
return this.fetchAllPullRequests(PRList.map((pr) => this.getPullRequestNumberFromURL(pr)))
1589315893
.then((data) => {
1589415894
const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, isEmptyObject_1.isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : [];
@@ -15959,6 +15959,10 @@ class GithubUtils {
1595915959
}
1596015960
issueBody += '\r\n\r\n';
1596115961
}
15962+
if (chronologicalSection) {
15963+
issueBody += chronologicalSection;
15964+
issueBody += '\r\n\r\n';
15965+
}
1596215966
issueBody += '**Deployer verifications:**';
1596315967
// eslint-disable-next-line max-len
1596415968
issueBody += `\r\n- [${isFirebaseChecked ? 'x' : ' '}] I checked [Firebase Crashlytics](https://console.firebase.google.com/u/0/project/expensify-mobile-app/crashlytics/app/ios:com.expensify.expensifylite/issues?state=open&time=last-seven-days&types=crash&tag=all&sort=eventCount) for **this release version** and verified that this release does not introduce any new crashes. More detailed instructions on this verification can be found [here](https://stackoverflowteams.com/c/expensify/questions/15095/15096).`;
@@ -16074,6 +16078,26 @@ class GithubUtils {
1607416078
...(options.status && { status: options.status }),
1607516079
});
1607616080
}
16081+
/**
16082+
* Get the workflow run URL for a specific commit SHA and workflow file.
16083+
* Returns the HTML URL of the matching run, or undefined if not found.
16084+
*/
16085+
static async getWorkflowRunURLForCommit(commitSha, workflowFile) {
16086+
try {
16087+
const response = await this.octokit.actions.listWorkflowRuns({
16088+
owner: CONST_1.default.GITHUB_OWNER,
16089+
repo: CONST_1.default.APP_REPO,
16090+
workflow_id: workflowFile,
16091+
head_sha: commitSha,
16092+
per_page: 1,
16093+
});
16094+
return response.data.workflow_runs.at(0)?.html_url;
16095+
}
16096+
catch (error) {
16097+
console.warn(`Failed to find workflow run for commit ${commitSha}:`, error);
16098+
return undefined;
16099+
}
16100+
}
1607716101
/**
1607816102
* Generate the URL of an New Expensify pull request given the PR number.
1607916103
*/
@@ -16231,6 +16255,7 @@ class GithubUtils {
1623116255
commit: commit.sha,
1623216256
subject: commit.commit.message,
1623316257
authorName: commit.commit.author?.name ?? 'Unknown',
16258+
date: commit.commit.committer?.date ?? '',
1623416259
}));
1623516260
}
1623616261
catch (error) {

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

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12666,7 +12666,7 @@ class GithubUtils {
1266612666
/**
1266712667
* Generate the issue body and assignees for a StagingDeployCash.
1266812668
*/
12669-
static generateStagingDeployCashBodyAndAssignees(tag, PRList, PRListMobileExpensify, verifiedPRList = [], verifiedPRListMobileExpensify = [], deployBlockers = [], resolvedDeployBlockers = [], resolvedInternalQAPRs = [], isFirebaseChecked = false, isGHStatusChecked = false) {
12669+
static generateStagingDeployCashBodyAndAssignees({ tag, PRList, PRListMobileExpensify = [], verifiedPRList = [], verifiedPRListMobileExpensify = [], deployBlockers = [], resolvedDeployBlockers = [], resolvedInternalQAPRs = [], isFirebaseChecked = false, isGHStatusChecked = false, chronologicalSection = '', }) {
1267012670
return this.fetchAllPullRequests(PRList.map((pr) => this.getPullRequestNumberFromURL(pr)))
1267112671
.then((data) => {
1267212672
const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, isEmptyObject_1.isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : [];
@@ -12737,6 +12737,10 @@ class GithubUtils {
1273712737
}
1273812738
issueBody += '\r\n\r\n';
1273912739
}
12740+
if (chronologicalSection) {
12741+
issueBody += chronologicalSection;
12742+
issueBody += '\r\n\r\n';
12743+
}
1274012744
issueBody += '**Deployer verifications:**';
1274112745
// eslint-disable-next-line max-len
1274212746
issueBody += `\r\n- [${isFirebaseChecked ? 'x' : ' '}] I checked [Firebase Crashlytics](https://console.firebase.google.com/u/0/project/expensify-mobile-app/crashlytics/app/ios:com.expensify.expensifylite/issues?state=open&time=last-seven-days&types=crash&tag=all&sort=eventCount) for **this release version** and verified that this release does not introduce any new crashes. More detailed instructions on this verification can be found [here](https://stackoverflowteams.com/c/expensify/questions/15095/15096).`;
@@ -12852,6 +12856,26 @@ class GithubUtils {
1285212856
...(options.status && { status: options.status }),
1285312857
});
1285412858
}
12859+
/**
12860+
* Get the workflow run URL for a specific commit SHA and workflow file.
12861+
* Returns the HTML URL of the matching run, or undefined if not found.
12862+
*/
12863+
static async getWorkflowRunURLForCommit(commitSha, workflowFile) {
12864+
try {
12865+
const response = await this.octokit.actions.listWorkflowRuns({
12866+
owner: CONST_1.default.GITHUB_OWNER,
12867+
repo: CONST_1.default.APP_REPO,
12868+
workflow_id: workflowFile,
12869+
head_sha: commitSha,
12870+
per_page: 1,
12871+
});
12872+
return response.data.workflow_runs.at(0)?.html_url;
12873+
}
12874+
catch (error) {
12875+
console.warn(`Failed to find workflow run for commit ${commitSha}:`, error);
12876+
return undefined;
12877+
}
12878+
}
1285512879
/**
1285612880
* Generate the URL of an New Expensify pull request given the PR number.
1285712881
*/
@@ -13009,6 +13033,7 @@ class GithubUtils {
1300913033
commit: commit.sha,
1301013034
subject: commit.commit.message,
1301113035
authorName: commit.commit.author?.name ?? 'Unknown',
13036+
date: commit.commit.committer?.date ?? '',
1301213037
}));
1301313038
}
1301413039
catch (error) {

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

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737409,7 +737409,7 @@ class GithubUtils {
737409737409
/**
737410737410
* Generate the issue body and assignees for a StagingDeployCash.
737411737411
*/
737412-
static generateStagingDeployCashBodyAndAssignees(tag, PRList, PRListMobileExpensify, verifiedPRList = [], verifiedPRListMobileExpensify = [], deployBlockers = [], resolvedDeployBlockers = [], resolvedInternalQAPRs = [], isFirebaseChecked = false, isGHStatusChecked = false) {
737412+
static generateStagingDeployCashBodyAndAssignees({ tag, PRList, PRListMobileExpensify = [], verifiedPRList = [], verifiedPRListMobileExpensify = [], deployBlockers = [], resolvedDeployBlockers = [], resolvedInternalQAPRs = [], isFirebaseChecked = false, isGHStatusChecked = false, chronologicalSection = '', }) {
737413737413
return this.fetchAllPullRequests(PRList.map((pr) => this.getPullRequestNumberFromURL(pr)))
737414737414
.then((data) => {
737415737415
const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, isEmptyObject_1.isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : [];
@@ -737480,6 +737480,10 @@ class GithubUtils {
737480737480
}
737481737481
issueBody += '\r\n\r\n';
737482737482
}
737483+
if (chronologicalSection) {
737484+
issueBody += chronologicalSection;
737485+
issueBody += '\r\n\r\n';
737486+
}
737483737487
issueBody += '**Deployer verifications:**';
737484737488
// eslint-disable-next-line max-len
737485737489
issueBody += `\r\n- [${isFirebaseChecked ? 'x' : ' '}] I checked [Firebase Crashlytics](https://console.firebase.google.com/u/0/project/expensify-mobile-app/crashlytics/app/ios:com.expensify.expensifylite/issues?state=open&time=last-seven-days&types=crash&tag=all&sort=eventCount) for **this release version** and verified that this release does not introduce any new crashes. More detailed instructions on this verification can be found [here](https://stackoverflowteams.com/c/expensify/questions/15095/15096).`;
@@ -737595,6 +737599,26 @@ class GithubUtils {
737595737599
...(options.status && { status: options.status }),
737596737600
});
737597737601
}
737602+
/**
737603+
* Get the workflow run URL for a specific commit SHA and workflow file.
737604+
* Returns the HTML URL of the matching run, or undefined if not found.
737605+
*/
737606+
static async getWorkflowRunURLForCommit(commitSha, workflowFile) {
737607+
try {
737608+
const response = await this.octokit.actions.listWorkflowRuns({
737609+
owner: CONST_1.default.GITHUB_OWNER,
737610+
repo: CONST_1.default.APP_REPO,
737611+
workflow_id: workflowFile,
737612+
head_sha: commitSha,
737613+
per_page: 1,
737614+
});
737615+
return response.data.workflow_runs.at(0)?.html_url;
737616+
}
737617+
catch (error) {
737618+
console.warn(`Failed to find workflow run for commit ${commitSha}:`, error);
737619+
return undefined;
737620+
}
737621+
}
737598737622
/**
737599737623
* Generate the URL of an New Expensify pull request given the PR number.
737600737624
*/
@@ -737752,6 +737776,7 @@ class GithubUtils {
737752737776
commit: commit.sha,
737753737777
subject: commit.commit.message,
737754737778
authorName: commit.commit.author?.name ?? 'Unknown',
737779+
date: commit.commit.committer?.date ?? '',
737755737780
}));
737756737781
}
737757737782
catch (error) {

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

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11933,7 +11933,7 @@ class GithubUtils {
1193311933
/**
1193411934
* Generate the issue body and assignees for a StagingDeployCash.
1193511935
*/
11936-
static generateStagingDeployCashBodyAndAssignees(tag, PRList, PRListMobileExpensify, verifiedPRList = [], verifiedPRListMobileExpensify = [], deployBlockers = [], resolvedDeployBlockers = [], resolvedInternalQAPRs = [], isFirebaseChecked = false, isGHStatusChecked = false) {
11936+
static generateStagingDeployCashBodyAndAssignees({ tag, PRList, PRListMobileExpensify = [], verifiedPRList = [], verifiedPRListMobileExpensify = [], deployBlockers = [], resolvedDeployBlockers = [], resolvedInternalQAPRs = [], isFirebaseChecked = false, isGHStatusChecked = false, chronologicalSection = '', }) {
1193711937
return this.fetchAllPullRequests(PRList.map((pr) => this.getPullRequestNumberFromURL(pr)))
1193811938
.then((data) => {
1193911939
const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, isEmptyObject_1.isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : [];
@@ -12004,6 +12004,10 @@ class GithubUtils {
1200412004
}
1200512005
issueBody += '\r\n\r\n';
1200612006
}
12007+
if (chronologicalSection) {
12008+
issueBody += chronologicalSection;
12009+
issueBody += '\r\n\r\n';
12010+
}
1200712011
issueBody += '**Deployer verifications:**';
1200812012
// eslint-disable-next-line max-len
1200912013
issueBody += `\r\n- [${isFirebaseChecked ? 'x' : ' '}] I checked [Firebase Crashlytics](https://console.firebase.google.com/u/0/project/expensify-mobile-app/crashlytics/app/ios:com.expensify.expensifylite/issues?state=open&time=last-seven-days&types=crash&tag=all&sort=eventCount) for **this release version** and verified that this release does not introduce any new crashes. More detailed instructions on this verification can be found [here](https://stackoverflowteams.com/c/expensify/questions/15095/15096).`;
@@ -12119,6 +12123,26 @@ class GithubUtils {
1211912123
...(options.status && { status: options.status }),
1212012124
});
1212112125
}
12126+
/**
12127+
* Get the workflow run URL for a specific commit SHA and workflow file.
12128+
* Returns the HTML URL of the matching run, or undefined if not found.
12129+
*/
12130+
static async getWorkflowRunURLForCommit(commitSha, workflowFile) {
12131+
try {
12132+
const response = await this.octokit.actions.listWorkflowRuns({
12133+
owner: CONST_1.default.GITHUB_OWNER,
12134+
repo: CONST_1.default.APP_REPO,
12135+
workflow_id: workflowFile,
12136+
head_sha: commitSha,
12137+
per_page: 1,
12138+
});
12139+
return response.data.workflow_runs.at(0)?.html_url;
12140+
}
12141+
catch (error) {
12142+
console.warn(`Failed to find workflow run for commit ${commitSha}:`, error);
12143+
return undefined;
12144+
}
12145+
}
1212212146
/**
1212312147
* Generate the URL of an New Expensify pull request given the PR number.
1212412148
*/
@@ -12276,6 +12300,7 @@ class GithubUtils {
1227612300
commit: commit.sha,
1227712301
subject: commit.commit.message,
1227812302
authorName: commit.commit.author?.name ?? 'Unknown',
12303+
date: commit.commit.committer?.date ?? '',
1227912304
}));
1228012305
}
1228112306
catch (error) {

.github/actions/javascript/checkSVGCompression/index.js

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20458,7 +20458,7 @@ class GithubUtils {
2045820458
/**
2045920459
* Generate the issue body and assignees for a StagingDeployCash.
2046020460
*/
20461-
static generateStagingDeployCashBodyAndAssignees(tag, PRList, PRListMobileExpensify, verifiedPRList = [], verifiedPRListMobileExpensify = [], deployBlockers = [], resolvedDeployBlockers = [], resolvedInternalQAPRs = [], isFirebaseChecked = false, isGHStatusChecked = false) {
20461+
static generateStagingDeployCashBodyAndAssignees({ tag, PRList, PRListMobileExpensify = [], verifiedPRList = [], verifiedPRListMobileExpensify = [], deployBlockers = [], resolvedDeployBlockers = [], resolvedInternalQAPRs = [], isFirebaseChecked = false, isGHStatusChecked = false, chronologicalSection = '', }) {
2046220462
return this.fetchAllPullRequests(PRList.map((pr) => this.getPullRequestNumberFromURL(pr)))
2046320463
.then((data) => {
2046420464
const internalQAPRs = Array.isArray(data) ? data.filter((pr) => !(0, isEmptyObject_1.isEmptyObject)(pr.labels.find((item) => item.name === CONST_1.default.LABELS.INTERNAL_QA))) : [];
@@ -20529,6 +20529,10 @@ class GithubUtils {
2052920529
}
2053020530
issueBody += '\r\n\r\n';
2053120531
}
20532+
if (chronologicalSection) {
20533+
issueBody += chronologicalSection;
20534+
issueBody += '\r\n\r\n';
20535+
}
2053220536
issueBody += '**Deployer verifications:**';
2053320537
// eslint-disable-next-line max-len
2053420538
issueBody += `\r\n- [${isFirebaseChecked ? 'x' : ' '}] I checked [Firebase Crashlytics](https://console.firebase.google.com/u/0/project/expensify-mobile-app/crashlytics/app/ios:com.expensify.expensifylite/issues?state=open&time=last-seven-days&types=crash&tag=all&sort=eventCount) for **this release version** and verified that this release does not introduce any new crashes. More detailed instructions on this verification can be found [here](https://stackoverflowteams.com/c/expensify/questions/15095/15096).`;
@@ -20644,6 +20648,26 @@ class GithubUtils {
2064420648
...(options.status && { status: options.status }),
2064520649
});
2064620650
}
20651+
/**
20652+
* Get the workflow run URL for a specific commit SHA and workflow file.
20653+
* Returns the HTML URL of the matching run, or undefined if not found.
20654+
*/
20655+
static async getWorkflowRunURLForCommit(commitSha, workflowFile) {
20656+
try {
20657+
const response = await this.octokit.actions.listWorkflowRuns({
20658+
owner: CONST_1.default.GITHUB_OWNER,
20659+
repo: CONST_1.default.APP_REPO,
20660+
workflow_id: workflowFile,
20661+
head_sha: commitSha,
20662+
per_page: 1,
20663+
});
20664+
return response.data.workflow_runs.at(0)?.html_url;
20665+
}
20666+
catch (error) {
20667+
console.warn(`Failed to find workflow run for commit ${commitSha}:`, error);
20668+
return undefined;
20669+
}
20670+
}
2064720671
/**
2064820672
* Generate the URL of an New Expensify pull request given the PR number.
2064920673
*/
@@ -20801,6 +20825,7 @@ class GithubUtils {
2080120825
commit: commit.sha,
2080220826
subject: commit.commit.message,
2080320827
authorName: commit.commit.author?.name ?? 'Unknown',
20828+
date: commit.commit.committer?.date ?? '',
2080420829
}));
2080520830
}
2080620831
catch (error) {

0 commit comments

Comments
 (0)