Skip to content

Commit e51ed1f

Browse files
committed
Merge remote-tracking branch 'upstream/main' into fix-61030/AccountSwitcher-emojis-cut-off
2 parents 95b68fb + 4510fc7 commit e51ed1f

910 files changed

Lines changed: 22157 additions & 11756 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/categories/newComponentCategory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ async function detectReactComponentInFile(filename: string): Promise<boolean | u
9191
};
9292
try {
9393
const {data} = await GithubUtils.octokit.repos.getContent(params);
94-
const content = nodeBase64ToUtf8('content' in data ? data?.content ?? '' : '');
94+
const content = nodeBase64ToUtf8('content' in data ? (data?.content ?? '') : '');
9595
return detectReactComponent(content, filename);
9696
} catch (error) {
9797
console.error('An unknown error occurred with the GitHub API: ', error, params);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15419,7 +15419,7 @@ async function detectReactComponentInFile(filename) {
1541915419
};
1542015420
try {
1542115421
const { data } = await GithubUtils_1.default.octokit.repos.getContent(params);
15422-
const content = nodeBase64ToUtf8('content' in data ? data?.content ?? '' : '');
15422+
const content = nodeBase64ToUtf8('content' in data ? (data?.content ?? '') : '');
1542315423
return detectReactComponent(content, filename);
1542415424
}
1542515425
catch (error) {

.github/actions/javascript/bumpVersion/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3682,7 +3682,7 @@ async function updateIOS(version) {
36823682
[PLIST_KEYS.CF_BUNDLE_SHORT_VERSION]: shortVersion,
36833683
[PLIST_KEYS.CF_BUNDLE_VERSION]: cfVersion,
36843684
});
3685-
// Update plists
3685+
// Update plist
36863686
await Promise.all([PLIST_PATH, PLIST_PATH_NSE, PLIST_PATH_SHARE, MOBILE_EXPENSIFY_PLIST_PATH, MOBILE_EXPENSIFY_PLIST_PATH_NSE, MOBILE_EXPENSIFY_PLIST_PATH_SS].map(async (file) => {
36873687
console.log(`Updating ${file}`);
36883688
await exec(`${PLIST_BUDDY} -c "Set :${PLIST_KEYS.CF_BUNDLE_SHORT_VERSION} ${shortVersion}" ${file}`);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12321,7 +12321,7 @@ const replacer = (str) => ({
1232112321
'\r': '\\r',
1232212322
'\f': '\\f',
1232312323
'"': '\\"',
12324-
}[str] ?? '');
12324+
})[str] ?? '';
1232512325
/**
1232612326
* Replace any characters in the string that will break JSON.parse for our Git Log output
1232712327
*

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12358,7 +12358,7 @@ const replacer = (str) => ({
1235812358
'\r': '\\r',
1235912359
'\f': '\\f',
1236012360
'"': '\\"',
12361-
}[str] ?? '');
12361+
})[str] ?? '';
1236212362
/**
1236312363
* Replace any characters in the string that will break JSON.parse for our Git Log output
1236412364
*

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3018,7 +3018,7 @@ const replacer = (str) => ({
30183018
'\r': '\\r',
30193019
'\f': '\\f',
30203020
'"': '\\"',
3021-
}[str] ?? '');
3021+
})[str] ?? '';
30223022
/**
30233023
* Replace any characters in the string that will break JSON.parse for our Git Log output
30243024
*

.github/actions/javascript/postTestBuildComment/postTestBuildComment.ts

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,30 @@ function getTestBuildMessage(): string {
1313
[inputs[3]]: 'Web',
1414
};
1515

16-
const result = inputs.reduce((acc, platform) => {
17-
const input = core.getInput(platform, {required: false});
16+
const result = inputs.reduce(
17+
(acc, platform) => {
18+
const input = core.getInput(platform, {required: false});
1819

19-
if (!input) {
20-
acc[platform] = {link: 'N/A', qrCode: 'N/A'};
21-
return acc;
22-
}
20+
if (!input) {
21+
acc[platform] = {link: 'N/A', qrCode: 'N/A'};
22+
return acc;
23+
}
2324

24-
const isSuccess = input === 'success';
25+
const isSuccess = input === 'success';
2526

26-
const link = isSuccess ? core.getInput(`${platform}_LINK`) : '❌ FAILED ❌';
27-
const qrCode = isSuccess
28-
? `![${names[platform]}](https://api.qrserver.com/v1/create-qr-code/?size=120x120&data=${link})`
29-
: `The QR code can't be generated, because the ${names[platform]} build failed`;
27+
const link = isSuccess ? core.getInput(`${platform}_LINK`) : '❌ FAILED ❌';
28+
const qrCode = isSuccess
29+
? `![${names[platform]}](https://api.qrserver.com/v1/create-qr-code/?size=120x120&data=${link})`
30+
: `The QR code can't be generated, because the ${names[platform]} build failed`;
3031

31-
acc[platform] = {
32-
link,
33-
qrCode,
34-
};
35-
return acc;
36-
}, {} as Record<TupleToUnion<typeof inputs>, {link: string; qrCode: string}>);
32+
acc[platform] = {
33+
link,
34+
qrCode,
35+
};
36+
return acc;
37+
},
38+
{} as Record<TupleToUnion<typeof inputs>, {link: string; qrCode: string}>,
39+
);
3740

3841
const message = `:test_tube::test_tube: Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! :test_tube::test_tube:
3942
| Android :robot: | iOS :apple: |

.github/libs/sanitizeStringForJSONParse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const replacer = (str: string): string =>
88
'\r': '\\r',
99
'\f': '\\f',
1010
'"': '\\"',
11-
}[str] ?? '');
11+
})[str] ?? '';
1212

1313
/**
1414
* Replace any characters in the string that will break JSON.parse for our Git Log output

.github/scripts/validateActionsAndWorkflows.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,6 @@ done
4141

4242
for ((i=0; i < ${#WORKFLOWS[@]}; i++)); do
4343
WORKFLOW=${WORKFLOWS[$i]}
44-
45-
# Skip linting e2e workflow due to bug here: https://github.com/SchemaStore/schemastore/issues/2579
46-
if [[ "$WORKFLOW" == './workflows/e2ePerformanceTests.yml'
47-
|| "$WORKFLOW" == './workflows/testBuild.yml'
48-
|| "$WORKFLOW" == './workflows/deploy.yml' ]]; then
49-
continue
50-
fi
51-
5244
ajv -s ./tempSchemas/github-workflow.json -d "$WORKFLOW" --strict=false &
5345
ASYNC_PROCESSES[${#ACTIONS[@]} + i]=$!
5446
done

.github/workflows/buildAndroid.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,13 @@ on:
2323

2424
outputs:
2525
AAB_FILE_NAME:
26+
description: Name of the AAB file produced by this workflow.
2627
value: ${{ jobs.build.outputs.AAB_FILE_NAME }}
2728
APK_FILE_NAME:
29+
description: Name of the APK file produced by this workflow.
2830
value: ${{ jobs.build.outputs.APK_FILE_NAME }}
2931
APK_ARTIFACT_NAME:
32+
description: Name of the APK artifact.
3033
value: ${{ jobs.build.outputs.APK_ARTIFACT_NAME }}
3134

3235
workflow_dispatch:

0 commit comments

Comments
 (0)