Skip to content

Commit f134b1c

Browse files
Merge branch 'main' into poc/split-navs
2 parents eb8ec32 + 48520ec commit f134b1c

File tree

95 files changed

+930
-562
lines changed

Some content is hidden

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

95 files changed

+930
-562
lines changed

.github/actionlint.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,13 @@ self-hosted-runner:
44
- ubuntu-latest-xl
55
- macos-15-large
66
- macos-15-xlarge
7-
- ubuntu-latest-reassure-tests
87
- macos-12
8+
- ubuntu-20.04-v4
9+
10+
paths:
11+
'**/*':
12+
ignore:
13+
# This is meant to be a temporary workaround for a bug in actionslint. Upstream:
14+
# - issue: https://github.com/rhysd/actionlint/issues/511
15+
# - PR: https://github.com/rhysd/actionlint/pull/513
16+
- '"env" is not allowed in "runs" section because .* is a Composite action.*'
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Validate actor
2+
description: Validate the the current actor has the permissions they need. By default, it validates that the user has write permissions.
3+
4+
inputs:
5+
# If `REQUIRE_APP_DEPLOYER` is true, we check that they're an app deployer. If not, we just check that they have write access.
6+
REQUIRE_APP_DEPLOYER:
7+
description: Should this action require the actor to be an app deployer?
8+
required: false
9+
default: 'true'
10+
OS_BOTIFY_TOKEN:
11+
description: OSBotify token. Needed to access certain API endpoints the regular github.token can't
12+
required: true
13+
14+
runs:
15+
using: composite
16+
steps:
17+
- name: Get user permissions
18+
if: ${{ !fromJSON(inputs.REQUIRE_APP_DEPLOYER) }}
19+
id: getUserPermissions
20+
shell: bash
21+
run: |
22+
PERMISSION=$(gh api /repos/${{ github.repository }}/collaborators/${{ github.actor }}/permission | jq -r '.permission')
23+
if [[ "$PERMISSION" == 'write' || "$PERMISSION" == 'admin' ]]; then
24+
echo "::notice::✅ Actor ${{ github.actor }} has write permission"
25+
else
26+
echo "::error::❌ Actor ${{ github.actor }} does not have write permission"
27+
exit 1
28+
fi
29+
env:
30+
GITHUB_TOKEN: ${{ inputs.OS_BOTIFY_TOKEN }}
31+
32+
- name: Check if user is deployer
33+
id: isUserDeployer
34+
if: fromJSON(inputs.REQUIRE_APP_DEPLOYER)
35+
shell: bash
36+
run: |
37+
if [[ "${{ github.actor }}" == "OSBotify" || "${{ github.actor }}" == "os-botify[bot]" ]] || \
38+
gh api /orgs/Expensify/teams/mobile-deployers/memberships/${{ github.actor }} --silent; then
39+
echo "::notice::✅ Actor ${{ github.actor }} is an app deployer"
40+
else
41+
echo "::error::❌ Actor ${{ github.actor }} is not an app deployer"
42+
exit 1
43+
fi
44+
env:
45+
GITHUB_TOKEN: ${{ inputs.OS_BOTIFY_TOKEN }}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17242,8 +17242,8 @@ exports["default"] = newComponentCategory;
1724217242
Object.defineProperty(exports, "__esModule", ({ value: true }));
1724317243
const GITHUB_BASE_URL_REGEX = new RegExp('https?://(?:github\\.com|api\\.github\\.com)');
1724417244
const GIT_CONST = {
17245-
GITHUB_OWNER: 'Expensify',
17246-
APP_REPO: 'App',
17245+
GITHUB_OWNER: process.env.GITHUB_REPOSITORY_OWNER,
17246+
APP_REPO: process.env.GITHUB_REPOSITORY.split('/').at(1) ?? '',
1724717247
};
1724817248
const CONST = {
1724917249
...GIT_CONST,
@@ -17532,7 +17532,7 @@ class GithubUtils {
1753217532
const sortedDeployBlockers = [...new Set(deployBlockers)].sort((a, b) => GithubUtils.getIssueOrPullRequestNumberFromURL(a) - GithubUtils.getIssueOrPullRequestNumberFromURL(b));
1753317533
// Tag version and comparison URL
1753417534
// eslint-disable-next-line max-len
17535-
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/Expensify/App/compare/production...staging\r\n`;
17535+
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/${process.env.GITHUB_REPOSITORY}/compare/production...staging\r\n`;
1753617536
// PR list
1753717537
if (sortedPRList.length > 0) {
1753817538
issueBody += '\r\n**This release contains changes from the following pull requests:**\r\n';

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12246,8 +12246,8 @@ exports.getStringInput = getStringInput;
1224612246
Object.defineProperty(exports, "__esModule", ({ value: true }));
1224712247
const GITHUB_BASE_URL_REGEX = new RegExp('https?://(?:github\\.com|api\\.github\\.com)');
1224812248
const GIT_CONST = {
12249-
GITHUB_OWNER: 'Expensify',
12250-
APP_REPO: 'App',
12249+
GITHUB_OWNER: process.env.GITHUB_REPOSITORY_OWNER,
12250+
APP_REPO: process.env.GITHUB_REPOSITORY.split('/').at(1) ?? '',
1225112251
};
1225212252
const CONST = {
1225312253
...GIT_CONST,
@@ -12536,7 +12536,7 @@ class GithubUtils {
1253612536
const sortedDeployBlockers = [...new Set(deployBlockers)].sort((a, b) => GithubUtils.getIssueOrPullRequestNumberFromURL(a) - GithubUtils.getIssueOrPullRequestNumberFromURL(b));
1253712537
// Tag version and comparison URL
1253812538
// eslint-disable-next-line max-len
12539-
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/Expensify/App/compare/production...staging\r\n`;
12539+
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/${process.env.GITHUB_REPOSITORY}/compare/production...staging\r\n`;
1254012540
// PR list
1254112541
if (sortedPRList.length > 0) {
1254212542
issueBody += '\r\n**This release contains changes from the following pull requests:**\r\n';

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -736639,8 +736639,8 @@ checkAndroidStatus()
736639736639
Object.defineProperty(exports, "__esModule", ({ value: true }));
736640736640
const GITHUB_BASE_URL_REGEX = new RegExp('https?://(?:github\\.com|api\\.github\\.com)');
736641736641
const GIT_CONST = {
736642-
GITHUB_OWNER: 'Expensify',
736643-
APP_REPO: 'App',
736642+
GITHUB_OWNER: process.env.GITHUB_REPOSITORY_OWNER,
736643+
APP_REPO: process.env.GITHUB_REPOSITORY.split('/').at(1) ?? '',
736644736644
};
736645736645
const CONST = {
736646736646
...GIT_CONST,
@@ -736929,7 +736929,7 @@ class GithubUtils {
736929736929
const sortedDeployBlockers = [...new Set(deployBlockers)].sort((a, b) => GithubUtils.getIssueOrPullRequestNumberFromURL(a) - GithubUtils.getIssueOrPullRequestNumberFromURL(b));
736930736930
// Tag version and comparison URL
736931736931
// eslint-disable-next-line max-len
736932-
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/Expensify/App/compare/production...staging\r\n`;
736932+
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/${process.env.GITHUB_REPOSITORY}/compare/production...staging\r\n`;
736933736933
// PR list
736934736934
if (sortedPRList.length > 0) {
736935736935
issueBody += '\r\n**This release contains changes from the following pull requests:**\r\n';

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11529,8 +11529,8 @@ exports["default"] = run;
1152911529
Object.defineProperty(exports, "__esModule", ({ value: true }));
1153011530
const GITHUB_BASE_URL_REGEX = new RegExp('https?://(?:github\\.com|api\\.github\\.com)');
1153111531
const GIT_CONST = {
11532-
GITHUB_OWNER: 'Expensify',
11533-
APP_REPO: 'App',
11532+
GITHUB_OWNER: process.env.GITHUB_REPOSITORY_OWNER,
11533+
APP_REPO: process.env.GITHUB_REPOSITORY.split('/').at(1) ?? '',
1153411534
};
1153511535
const CONST = {
1153611536
...GIT_CONST,
@@ -11819,7 +11819,7 @@ class GithubUtils {
1181911819
const sortedDeployBlockers = [...new Set(deployBlockers)].sort((a, b) => GithubUtils.getIssueOrPullRequestNumberFromURL(a) - GithubUtils.getIssueOrPullRequestNumberFromURL(b));
1182011820
// Tag version and comparison URL
1182111821
// eslint-disable-next-line max-len
11822-
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/Expensify/App/compare/production...staging\r\n`;
11822+
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/${process.env.GITHUB_REPOSITORY}/compare/production...staging\r\n`;
1182311823
// PR list
1182411824
if (sortedPRList.length > 0) {
1182511825
issueBody += '\r\n**This release contains changes from the following pull requests:**\r\n';

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11592,8 +11592,8 @@ exports["default"] = run;
1159211592
Object.defineProperty(exports, "__esModule", ({ value: true }));
1159311593
const GITHUB_BASE_URL_REGEX = new RegExp('https?://(?:github\\.com|api\\.github\\.com)');
1159411594
const GIT_CONST = {
11595-
GITHUB_OWNER: 'Expensify',
11596-
APP_REPO: 'App',
11595+
GITHUB_OWNER: process.env.GITHUB_REPOSITORY_OWNER,
11596+
APP_REPO: process.env.GITHUB_REPOSITORY.split('/').at(1) ?? '',
1159711597
};
1159811598
const CONST = {
1159911599
...GIT_CONST,
@@ -12101,7 +12101,7 @@ class GithubUtils {
1210112101
const sortedDeployBlockers = [...new Set(deployBlockers)].sort((a, b) => GithubUtils.getIssueOrPullRequestNumberFromURL(a) - GithubUtils.getIssueOrPullRequestNumberFromURL(b));
1210212102
// Tag version and comparison URL
1210312103
// eslint-disable-next-line max-len
12104-
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/Expensify/App/compare/production...staging\r\n`;
12104+
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/${process.env.GITHUB_REPOSITORY}/compare/production...staging\r\n`;
1210512105
// PR list
1210612106
if (sortedPRList.length > 0) {
1210712107
issueBody += '\r\n**This release contains changes from the following pull requests:**\r\n';

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11490,8 +11490,8 @@ exports["default"] = run;
1149011490
Object.defineProperty(exports, "__esModule", ({ value: true }));
1149111491
const GITHUB_BASE_URL_REGEX = new RegExp('https?://(?:github\\.com|api\\.github\\.com)');
1149211492
const GIT_CONST = {
11493-
GITHUB_OWNER: 'Expensify',
11494-
APP_REPO: 'App',
11493+
GITHUB_OWNER: process.env.GITHUB_REPOSITORY_OWNER,
11494+
APP_REPO: process.env.GITHUB_REPOSITORY.split('/').at(1) ?? '',
1149511495
};
1149611496
const CONST = {
1149711497
...GIT_CONST,
@@ -11780,7 +11780,7 @@ class GithubUtils {
1178011780
const sortedDeployBlockers = [...new Set(deployBlockers)].sort((a, b) => GithubUtils.getIssueOrPullRequestNumberFromURL(a) - GithubUtils.getIssueOrPullRequestNumberFromURL(b));
1178111781
// Tag version and comparison URL
1178211782
// eslint-disable-next-line max-len
11783-
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/Expensify/App/compare/production...staging\r\n`;
11783+
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/${process.env.GITHUB_REPOSITORY}/compare/production...staging\r\n`;
1178411784
// PR list
1178511785
if (sortedPRList.length > 0) {
1178611786
issueBody += '\r\n**This release contains changes from the following pull requests:**\r\n';

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11633,8 +11633,8 @@ exports.getStringInput = getStringInput;
1163311633
Object.defineProperty(exports, "__esModule", ({ value: true }));
1163411634
const GITHUB_BASE_URL_REGEX = new RegExp('https?://(?:github\\.com|api\\.github\\.com)');
1163511635
const GIT_CONST = {
11636-
GITHUB_OWNER: 'Expensify',
11637-
APP_REPO: 'App',
11636+
GITHUB_OWNER: process.env.GITHUB_REPOSITORY_OWNER,
11637+
APP_REPO: process.env.GITHUB_REPOSITORY.split('/').at(1) ?? '',
1163811638
};
1163911639
const CONST = {
1164011640
...GIT_CONST,
@@ -12142,7 +12142,7 @@ class GithubUtils {
1214212142
const sortedDeployBlockers = [...new Set(deployBlockers)].sort((a, b) => GithubUtils.getIssueOrPullRequestNumberFromURL(a) - GithubUtils.getIssueOrPullRequestNumberFromURL(b));
1214312143
// Tag version and comparison URL
1214412144
// eslint-disable-next-line max-len
12145-
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/Expensify/App/compare/production...staging\r\n`;
12145+
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/${process.env.GITHUB_REPOSITORY}/compare/production...staging\r\n`;
1214612146
// PR list
1214712147
if (sortedPRList.length > 0) {
1214812148
issueBody += '\r\n**This release contains changes from the following pull requests:**\r\n';

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2757,8 +2757,8 @@ exports["default"] = run;
27572757
Object.defineProperty(exports, "__esModule", ({ value: true }));
27582758
const GITHUB_BASE_URL_REGEX = new RegExp('https?://(?:github\\.com|api\\.github\\.com)');
27592759
const GIT_CONST = {
2760-
GITHUB_OWNER: 'Expensify',
2761-
APP_REPO: 'App',
2760+
GITHUB_OWNER: process.env.GITHUB_REPOSITORY_OWNER,
2761+
APP_REPO: process.env.GITHUB_REPOSITORY.split('/').at(1) ?? '',
27622762
};
27632763
const CONST = {
27642764
...GIT_CONST,

.github/actions/javascript/getPullRequestDetails/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11593,8 +11593,8 @@ exports.getStringInput = getStringInput;
1159311593
Object.defineProperty(exports, "__esModule", ({ value: true }));
1159411594
const GITHUB_BASE_URL_REGEX = new RegExp('https?://(?:github\\.com|api\\.github\\.com)');
1159511595
const GIT_CONST = {
11596-
GITHUB_OWNER: 'Expensify',
11597-
APP_REPO: 'App',
11596+
GITHUB_OWNER: process.env.GITHUB_REPOSITORY_OWNER,
11597+
APP_REPO: process.env.GITHUB_REPOSITORY.split('/').at(1) ?? '',
1159811598
};
1159911599
const CONST = {
1160011600
...GIT_CONST,
@@ -11883,7 +11883,7 @@ class GithubUtils {
1188311883
const sortedDeployBlockers = [...new Set(deployBlockers)].sort((a, b) => GithubUtils.getIssueOrPullRequestNumberFromURL(a) - GithubUtils.getIssueOrPullRequestNumberFromURL(b));
1188411884
// Tag version and comparison URL
1188511885
// eslint-disable-next-line max-len
11886-
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/Expensify/App/compare/production...staging\r\n`;
11886+
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/${process.env.GITHUB_REPOSITORY}/compare/production...staging\r\n`;
1188711887
// PR list
1188811888
if (sortedPRList.length > 0) {
1188911889
issueBody += '\r\n**This release contains changes from the following pull requests:**\r\n';

.github/actions/javascript/isStagingDeployLocked/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11490,8 +11490,8 @@ exports["default"] = run;
1149011490
Object.defineProperty(exports, "__esModule", ({ value: true }));
1149111491
const GITHUB_BASE_URL_REGEX = new RegExp('https?://(?:github\\.com|api\\.github\\.com)');
1149211492
const GIT_CONST = {
11493-
GITHUB_OWNER: 'Expensify',
11494-
APP_REPO: 'App',
11493+
GITHUB_OWNER: process.env.GITHUB_REPOSITORY_OWNER,
11494+
APP_REPO: process.env.GITHUB_REPOSITORY.split('/').at(1) ?? '',
1149511495
};
1149611496
const CONST = {
1149711497
...GIT_CONST,
@@ -11780,7 +11780,7 @@ class GithubUtils {
1178011780
const sortedDeployBlockers = [...new Set(deployBlockers)].sort((a, b) => GithubUtils.getIssueOrPullRequestNumberFromURL(a) - GithubUtils.getIssueOrPullRequestNumberFromURL(b));
1178111781
// Tag version and comparison URL
1178211782
// eslint-disable-next-line max-len
11783-
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/Expensify/App/compare/production...staging\r\n`;
11783+
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/${process.env.GITHUB_REPOSITORY}/compare/production...staging\r\n`;
1178411784
// PR list
1178511785
if (sortedPRList.length > 0) {
1178611786
issueBody += '\r\n**This release contains changes from the following pull requests:**\r\n';

.github/actions/javascript/markPullRequestsAsDeployed/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12889,8 +12889,8 @@ exports.getStringInput = getStringInput;
1288912889
Object.defineProperty(exports, "__esModule", ({ value: true }));
1289012890
const GITHUB_BASE_URL_REGEX = new RegExp('https?://(?:github\\.com|api\\.github\\.com)');
1289112891
const GIT_CONST = {
12892-
GITHUB_OWNER: 'Expensify',
12893-
APP_REPO: 'App',
12892+
GITHUB_OWNER: process.env.GITHUB_REPOSITORY_OWNER,
12893+
APP_REPO: process.env.GITHUB_REPOSITORY.split('/').at(1) ?? '',
1289412894
};
1289512895
const CONST = {
1289612896
...GIT_CONST,
@@ -13179,7 +13179,7 @@ class GithubUtils {
1317913179
const sortedDeployBlockers = [...new Set(deployBlockers)].sort((a, b) => GithubUtils.getIssueOrPullRequestNumberFromURL(a) - GithubUtils.getIssueOrPullRequestNumberFromURL(b));
1318013180
// Tag version and comparison URL
1318113181
// eslint-disable-next-line max-len
13182-
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/Expensify/App/compare/production...staging\r\n`;
13182+
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/${process.env.GITHUB_REPOSITORY}/compare/production...staging\r\n`;
1318313183
// PR list
1318413184
if (sortedPRList.length > 0) {
1318513185
issueBody += '\r\n**This release contains changes from the following pull requests:**\r\n';

.github/actions/javascript/postTestBuildComment/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11596,8 +11596,8 @@ exports["default"] = run;
1159611596
Object.defineProperty(exports, "__esModule", ({ value: true }));
1159711597
const GITHUB_BASE_URL_REGEX = new RegExp('https?://(?:github\\.com|api\\.github\\.com)');
1159811598
const GIT_CONST = {
11599-
GITHUB_OWNER: 'Expensify',
11600-
APP_REPO: 'App',
11599+
GITHUB_OWNER: process.env.GITHUB_REPOSITORY_OWNER,
11600+
APP_REPO: process.env.GITHUB_REPOSITORY.split('/').at(1) ?? '',
1160111601
};
1160211602
const CONST = {
1160311603
...GIT_CONST,
@@ -11886,7 +11886,7 @@ class GithubUtils {
1188611886
const sortedDeployBlockers = [...new Set(deployBlockers)].sort((a, b) => GithubUtils.getIssueOrPullRequestNumberFromURL(a) - GithubUtils.getIssueOrPullRequestNumberFromURL(b));
1188711887
// Tag version and comparison URL
1188811888
// eslint-disable-next-line max-len
11889-
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/Expensify/App/compare/production...staging\r\n`;
11889+
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/${process.env.GITHUB_REPOSITORY}/compare/production...staging\r\n`;
1189011890
// PR list
1189111891
if (sortedPRList.length > 0) {
1189211892
issueBody += '\r\n**This release contains changes from the following pull requests:**\r\n';

.github/actions/javascript/proposalPoliceComment/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18073,8 +18073,8 @@ run().catch((error) => {
1807318073
Object.defineProperty(exports, "__esModule", ({ value: true }));
1807418074
const GITHUB_BASE_URL_REGEX = new RegExp('https?://(?:github\\.com|api\\.github\\.com)');
1807518075
const GIT_CONST = {
18076-
GITHUB_OWNER: 'Expensify',
18077-
APP_REPO: 'App',
18076+
GITHUB_OWNER: process.env.GITHUB_REPOSITORY_OWNER,
18077+
APP_REPO: process.env.GITHUB_REPOSITORY.split('/').at(1) ?? '',
1807818078
};
1807918079
const CONST = {
1808018080
...GIT_CONST,
@@ -18363,7 +18363,7 @@ class GithubUtils {
1836318363
const sortedDeployBlockers = [...new Set(deployBlockers)].sort((a, b) => GithubUtils.getIssueOrPullRequestNumberFromURL(a) - GithubUtils.getIssueOrPullRequestNumberFromURL(b));
1836418364
// Tag version and comparison URL
1836518365
// eslint-disable-next-line max-len
18366-
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/Expensify/App/compare/production...staging\r\n`;
18366+
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/${process.env.GITHUB_REPOSITORY}/compare/production...staging\r\n`;
1836718367
// PR list
1836818368
if (sortedPRList.length > 0) {
1836918369
issueBody += '\r\n**This release contains changes from the following pull requests:**\r\n';

.github/actions/javascript/reopenIssueWithComment/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11500,8 +11500,8 @@ reopenIssueWithComment()
1150011500
Object.defineProperty(exports, "__esModule", ({ value: true }));
1150111501
const GITHUB_BASE_URL_REGEX = new RegExp('https?://(?:github\\.com|api\\.github\\.com)');
1150211502
const GIT_CONST = {
11503-
GITHUB_OWNER: 'Expensify',
11504-
APP_REPO: 'App',
11503+
GITHUB_OWNER: process.env.GITHUB_REPOSITORY_OWNER,
11504+
APP_REPO: process.env.GITHUB_REPOSITORY.split('/').at(1) ?? '',
1150511505
};
1150611506
const CONST = {
1150711507
...GIT_CONST,
@@ -11790,7 +11790,7 @@ class GithubUtils {
1179011790
const sortedDeployBlockers = [...new Set(deployBlockers)].sort((a, b) => GithubUtils.getIssueOrPullRequestNumberFromURL(a) - GithubUtils.getIssueOrPullRequestNumberFromURL(b));
1179111791
// Tag version and comparison URL
1179211792
// eslint-disable-next-line max-len
11793-
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/Expensify/App/compare/production...staging\r\n`;
11793+
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/${process.env.GITHUB_REPOSITORY}/compare/production...staging\r\n`;
1179411794
// PR list
1179511795
if (sortedPRList.length > 0) {
1179611796
issueBody += '\r\n**This release contains changes from the following pull requests:**\r\n';

0 commit comments

Comments
 (0)