Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 2 additions & 20 deletions .github/actions/javascript/authorChecklist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15545,8 +15545,8 @@ exports["default"] = newComponentCategory;
Object.defineProperty(exports, "__esModule", ({ value: true }));
const GITHUB_BASE_URL_REGEX = new RegExp('https?://(?:github\\.com|api\\.github\\.com)');
const GIT_CONST = {
GITHUB_OWNER: process.env.GITHUB_REPOSITORY_OWNER ?? 'Expensify',
APP_REPO: (process.env.GITHUB_REPOSITORY ?? 'Expensify/App').split('/').at(1) ?? '',
GITHUB_OWNER: process.env.GITHUB_REPOSITORY_OWNER,
APP_REPO: process.env.GITHUB_REPOSITORY.split('/').at(1) ?? '',
MOBILE_EXPENSIFY_REPO: 'Mobile-Expensify',
};
const CONST = {
Expand Down Expand Up @@ -16045,24 +16045,6 @@ class GithubUtils {
})
.then((response) => response.url);
}
/**
* Get the contents of a file from the API at a given ref as a string.
*/
static async getFileContents(path, ref = 'main') {
const { data } = await this.octokit.repos.getContent({
owner: CONST_1.default.GITHUB_OWNER,
repo: CONST_1.default.APP_REPO,
path,
ref,
});
if (Array.isArray(data)) {
throw new Error(`Provided path ${path} refers to a directory, not a file`);
}
if (!('content' in data)) {
throw new Error(`Provided path ${path} is invalid`);
}
return Buffer.from(data.content, 'base64').toString('utf8');
}
/**
* Get commits between two tags via the GitHub API
*/
Expand Down
22 changes: 2 additions & 20 deletions .github/actions/javascript/awaitStagingDeploys/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12319,8 +12319,8 @@ exports.getStringInput = getStringInput;
Object.defineProperty(exports, "__esModule", ({ value: true }));
const GITHUB_BASE_URL_REGEX = new RegExp('https?://(?:github\\.com|api\\.github\\.com)');
const GIT_CONST = {
GITHUB_OWNER: process.env.GITHUB_REPOSITORY_OWNER ?? 'Expensify',
APP_REPO: (process.env.GITHUB_REPOSITORY ?? 'Expensify/App').split('/').at(1) ?? '',
GITHUB_OWNER: process.env.GITHUB_REPOSITORY_OWNER,
APP_REPO: process.env.GITHUB_REPOSITORY.split('/').at(1) ?? '',
MOBILE_EXPENSIFY_REPO: 'Mobile-Expensify',
};
const CONST = {
Expand Down Expand Up @@ -12819,24 +12819,6 @@ class GithubUtils {
})
.then((response) => response.url);
}
/**
* Get the contents of a file from the API at a given ref as a string.
*/
static async getFileContents(path, ref = 'main') {
const { data } = await this.octokit.repos.getContent({
owner: CONST_1.default.GITHUB_OWNER,
repo: CONST_1.default.APP_REPO,
path,
ref,
});
if (Array.isArray(data)) {
throw new Error(`Provided path ${path} refers to a directory, not a file`);
}
if (!('content' in data)) {
throw new Error(`Provided path ${path} is invalid`);
}
return Buffer.from(data.content, 'base64').toString('utf8');
}
/**
* Get commits between two tags via the GitHub API
*/
Expand Down
22 changes: 2 additions & 20 deletions .github/actions/javascript/checkAndroidStatus/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -737038,8 +737038,8 @@ checkAndroidStatus()
Object.defineProperty(exports, "__esModule", ({ value: true }));
const GITHUB_BASE_URL_REGEX = new RegExp('https?://(?:github\\.com|api\\.github\\.com)');
const GIT_CONST = {
GITHUB_OWNER: process.env.GITHUB_REPOSITORY_OWNER ?? 'Expensify',
APP_REPO: (process.env.GITHUB_REPOSITORY ?? 'Expensify/App').split('/').at(1) ?? '',
GITHUB_OWNER: process.env.GITHUB_REPOSITORY_OWNER,
APP_REPO: process.env.GITHUB_REPOSITORY.split('/').at(1) ?? '',
MOBILE_EXPENSIFY_REPO: 'Mobile-Expensify',
};
const CONST = {
Expand Down Expand Up @@ -737538,24 +737538,6 @@ class GithubUtils {
})
.then((response) => response.url);
}
/**
* Get the contents of a file from the API at a given ref as a string.
*/
static async getFileContents(path, ref = 'main') {
const { data } = await this.octokit.repos.getContent({
owner: CONST_1.default.GITHUB_OWNER,
repo: CONST_1.default.APP_REPO,
path,
ref,
});
if (Array.isArray(data)) {
throw new Error(`Provided path ${path} refers to a directory, not a file`);
}
if (!('content' in data)) {
throw new Error(`Provided path ${path} is invalid`);
}
return Buffer.from(data.content, 'base64').toString('utf8');
}
/**
* Get commits between two tags via the GitHub API
*/
Expand Down
22 changes: 2 additions & 20 deletions .github/actions/javascript/checkDeployBlockers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11602,8 +11602,8 @@ exports["default"] = run;
Object.defineProperty(exports, "__esModule", ({ value: true }));
const GITHUB_BASE_URL_REGEX = new RegExp('https?://(?:github\\.com|api\\.github\\.com)');
const GIT_CONST = {
GITHUB_OWNER: process.env.GITHUB_REPOSITORY_OWNER ?? 'Expensify',
APP_REPO: (process.env.GITHUB_REPOSITORY ?? 'Expensify/App').split('/').at(1) ?? '',
GITHUB_OWNER: process.env.GITHUB_REPOSITORY_OWNER,
APP_REPO: process.env.GITHUB_REPOSITORY.split('/').at(1) ?? '',
MOBILE_EXPENSIFY_REPO: 'Mobile-Expensify',
};
const CONST = {
Expand Down Expand Up @@ -12102,24 +12102,6 @@ class GithubUtils {
})
.then((response) => response.url);
}
/**
* Get the contents of a file from the API at a given ref as a string.
*/
static async getFileContents(path, ref = 'main') {
const { data } = await this.octokit.repos.getContent({
owner: CONST_1.default.GITHUB_OWNER,
repo: CONST_1.default.APP_REPO,
path,
ref,
});
if (Array.isArray(data)) {
throw new Error(`Provided path ${path} refers to a directory, not a file`);
}
if (!('content' in data)) {
throw new Error(`Provided path ${path} is invalid`);
}
return Buffer.from(data.content, 'base64').toString('utf8');
}
/**
* Get commits between two tags via the GitHub API
*/
Expand Down
22 changes: 2 additions & 20 deletions .github/actions/javascript/createOrUpdateStagingDeploy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11668,8 +11668,8 @@ exports["default"] = run;
Object.defineProperty(exports, "__esModule", ({ value: true }));
const GITHUB_BASE_URL_REGEX = new RegExp('https?://(?:github\\.com|api\\.github\\.com)');
const GIT_CONST = {
GITHUB_OWNER: process.env.GITHUB_REPOSITORY_OWNER ?? 'Expensify',
APP_REPO: (process.env.GITHUB_REPOSITORY ?? 'Expensify/App').split('/').at(1) ?? '',
GITHUB_OWNER: process.env.GITHUB_REPOSITORY_OWNER,
APP_REPO: process.env.GITHUB_REPOSITORY.split('/').at(1) ?? '',
MOBILE_EXPENSIFY_REPO: 'Mobile-Expensify',
};
const CONST = {
Expand Down Expand Up @@ -12406,24 +12406,6 @@ class GithubUtils {
})
.then((response) => response.url);
}
/**
* Get the contents of a file from the API at a given ref as a string.
*/
static async getFileContents(path, ref = 'main') {
const { data } = await this.octokit.repos.getContent({
owner: CONST_1.default.GITHUB_OWNER,
repo: CONST_1.default.APP_REPO,
path,
ref,
});
if (Array.isArray(data)) {
throw new Error(`Provided path ${path} refers to a directory, not a file`);
}
if (!('content' in data)) {
throw new Error(`Provided path ${path} is invalid`);
}
return Buffer.from(data.content, 'base64').toString('utf8');
}
/**
* Get commits between two tags via the GitHub API
*/
Expand Down
22 changes: 2 additions & 20 deletions .github/actions/javascript/getArtifactInfo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11563,8 +11563,8 @@ exports["default"] = run;
Object.defineProperty(exports, "__esModule", ({ value: true }));
const GITHUB_BASE_URL_REGEX = new RegExp('https?://(?:github\\.com|api\\.github\\.com)');
const GIT_CONST = {
GITHUB_OWNER: process.env.GITHUB_REPOSITORY_OWNER ?? 'Expensify',
APP_REPO: (process.env.GITHUB_REPOSITORY ?? 'Expensify/App').split('/').at(1) ?? '',
GITHUB_OWNER: process.env.GITHUB_REPOSITORY_OWNER,
APP_REPO: process.env.GITHUB_REPOSITORY.split('/').at(1) ?? '',
MOBILE_EXPENSIFY_REPO: 'Mobile-Expensify',
};
const CONST = {
Expand Down Expand Up @@ -12063,24 +12063,6 @@ class GithubUtils {
})
.then((response) => response.url);
}
/**
* Get the contents of a file from the API at a given ref as a string.
*/
static async getFileContents(path, ref = 'main') {
const { data } = await this.octokit.repos.getContent({
owner: CONST_1.default.GITHUB_OWNER,
repo: CONST_1.default.APP_REPO,
path,
ref,
});
if (Array.isArray(data)) {
throw new Error(`Provided path ${path} refers to a directory, not a file`);
}
if (!('content' in data)) {
throw new Error(`Provided path ${path} is invalid`);
}
return Buffer.from(data.content, 'base64').toString('utf8');
}
/**
* Get commits between two tags via the GitHub API
*/
Expand Down
22 changes: 2 additions & 20 deletions .github/actions/javascript/getDeployPullRequestList/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11705,8 +11705,8 @@ exports.getStringInput = getStringInput;
Object.defineProperty(exports, "__esModule", ({ value: true }));
const GITHUB_BASE_URL_REGEX = new RegExp('https?://(?:github\\.com|api\\.github\\.com)');
const GIT_CONST = {
GITHUB_OWNER: process.env.GITHUB_REPOSITORY_OWNER ?? 'Expensify',
APP_REPO: (process.env.GITHUB_REPOSITORY ?? 'Expensify/App').split('/').at(1) ?? '',
GITHUB_OWNER: process.env.GITHUB_REPOSITORY_OWNER,
APP_REPO: process.env.GITHUB_REPOSITORY.split('/').at(1) ?? '',
MOBILE_EXPENSIFY_REPO: 'Mobile-Expensify',
};
const CONST = {
Expand Down Expand Up @@ -12443,24 +12443,6 @@ class GithubUtils {
})
.then((response) => response.url);
}
/**
* Get the contents of a file from the API at a given ref as a string.
*/
static async getFileContents(path, ref = 'main') {
const { data } = await this.octokit.repos.getContent({
owner: CONST_1.default.GITHUB_OWNER,
repo: CONST_1.default.APP_REPO,
path,
ref,
});
if (Array.isArray(data)) {
throw new Error(`Provided path ${path} refers to a directory, not a file`);
}
if (!('content' in data)) {
throw new Error(`Provided path ${path} is invalid`);
}
return Buffer.from(data.content, 'base64').toString('utf8');
}
/**
* Get commits between two tags via the GitHub API
*/
Expand Down
22 changes: 2 additions & 20 deletions .github/actions/javascript/getPreviousVersion/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11560,8 +11560,8 @@ exports["default"] = run;
Object.defineProperty(exports, "__esModule", ({ value: true }));
const GITHUB_BASE_URL_REGEX = new RegExp('https?://(?:github\\.com|api\\.github\\.com)');
const GIT_CONST = {
GITHUB_OWNER: process.env.GITHUB_REPOSITORY_OWNER ?? 'Expensify',
APP_REPO: (process.env.GITHUB_REPOSITORY ?? 'Expensify/App').split('/').at(1) ?? '',
GITHUB_OWNER: process.env.GITHUB_REPOSITORY_OWNER,
APP_REPO: process.env.GITHUB_REPOSITORY.split('/').at(1) ?? '',
MOBILE_EXPENSIFY_REPO: 'Mobile-Expensify',
};
const CONST = {
Expand Down Expand Up @@ -12298,24 +12298,6 @@ class GithubUtils {
})
.then((response) => response.url);
}
/**
* Get the contents of a file from the API at a given ref as a string.
*/
static async getFileContents(path, ref = 'main') {
const { data } = await this.octokit.repos.getContent({
owner: CONST_1.default.GITHUB_OWNER,
repo: CONST_1.default.APP_REPO,
path,
ref,
});
if (Array.isArray(data)) {
throw new Error(`Provided path ${path} refers to a directory, not a file`);
}
if (!('content' in data)) {
throw new Error(`Provided path ${path} is invalid`);
}
return Buffer.from(data.content, 'base64').toString('utf8');
}
/**
* Get commits between two tags via the GitHub API
*/
Expand Down
22 changes: 2 additions & 20 deletions .github/actions/javascript/getPullRequestDetails/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11666,8 +11666,8 @@ exports.getStringInput = getStringInput;
Object.defineProperty(exports, "__esModule", ({ value: true }));
const GITHUB_BASE_URL_REGEX = new RegExp('https?://(?:github\\.com|api\\.github\\.com)');
const GIT_CONST = {
GITHUB_OWNER: process.env.GITHUB_REPOSITORY_OWNER ?? 'Expensify',
APP_REPO: (process.env.GITHUB_REPOSITORY ?? 'Expensify/App').split('/').at(1) ?? '',
GITHUB_OWNER: process.env.GITHUB_REPOSITORY_OWNER,
APP_REPO: process.env.GITHUB_REPOSITORY.split('/').at(1) ?? '',
MOBILE_EXPENSIFY_REPO: 'Mobile-Expensify',
};
const CONST = {
Expand Down Expand Up @@ -12166,24 +12166,6 @@ class GithubUtils {
})
.then((response) => response.url);
}
/**
* Get the contents of a file from the API at a given ref as a string.
*/
static async getFileContents(path, ref = 'main') {
const { data } = await this.octokit.repos.getContent({
owner: CONST_1.default.GITHUB_OWNER,
repo: CONST_1.default.APP_REPO,
path,
ref,
});
if (Array.isArray(data)) {
throw new Error(`Provided path ${path} refers to a directory, not a file`);
}
if (!('content' in data)) {
throw new Error(`Provided path ${path} is invalid`);
}
return Buffer.from(data.content, 'base64').toString('utf8');
}
/**
* Get commits between two tags via the GitHub API
*/
Expand Down
22 changes: 2 additions & 20 deletions .github/actions/javascript/isStagingDeployLocked/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11563,8 +11563,8 @@ exports["default"] = run;
Object.defineProperty(exports, "__esModule", ({ value: true }));
const GITHUB_BASE_URL_REGEX = new RegExp('https?://(?:github\\.com|api\\.github\\.com)');
const GIT_CONST = {
GITHUB_OWNER: process.env.GITHUB_REPOSITORY_OWNER ?? 'Expensify',
APP_REPO: (process.env.GITHUB_REPOSITORY ?? 'Expensify/App').split('/').at(1) ?? '',
GITHUB_OWNER: process.env.GITHUB_REPOSITORY_OWNER,
APP_REPO: process.env.GITHUB_REPOSITORY.split('/').at(1) ?? '',
MOBILE_EXPENSIFY_REPO: 'Mobile-Expensify',
};
const CONST = {
Expand Down Expand Up @@ -12063,24 +12063,6 @@ class GithubUtils {
})
.then((response) => response.url);
}
/**
* Get the contents of a file from the API at a given ref as a string.
*/
static async getFileContents(path, ref = 'main') {
const { data } = await this.octokit.repos.getContent({
owner: CONST_1.default.GITHUB_OWNER,
repo: CONST_1.default.APP_REPO,
path,
ref,
});
if (Array.isArray(data)) {
throw new Error(`Provided path ${path} refers to a directory, not a file`);
}
if (!('content' in data)) {
throw new Error(`Provided path ${path} is invalid`);
}
return Buffer.from(data.content, 'base64').toString('utf8');
}
/**
* Get commits between two tags via the GitHub API
*/
Expand Down
22 changes: 2 additions & 20 deletions .github/actions/javascript/markPullRequestsAsDeployed/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12960,8 +12960,8 @@ exports.getStringInput = getStringInput;
Object.defineProperty(exports, "__esModule", ({ value: true }));
const GITHUB_BASE_URL_REGEX = new RegExp('https?://(?:github\\.com|api\\.github\\.com)');
const GIT_CONST = {
GITHUB_OWNER: process.env.GITHUB_REPOSITORY_OWNER ?? 'Expensify',
APP_REPO: (process.env.GITHUB_REPOSITORY ?? 'Expensify/App').split('/').at(1) ?? '',
GITHUB_OWNER: process.env.GITHUB_REPOSITORY_OWNER,
APP_REPO: process.env.GITHUB_REPOSITORY.split('/').at(1) ?? '',
MOBILE_EXPENSIFY_REPO: 'Mobile-Expensify',
};
const CONST = {
Expand Down Expand Up @@ -13460,24 +13460,6 @@ class GithubUtils {
})
.then((response) => response.url);
}
/**
* Get the contents of a file from the API at a given ref as a string.
*/
static async getFileContents(path, ref = 'main') {
const { data } = await this.octokit.repos.getContent({
owner: CONST_1.default.GITHUB_OWNER,
repo: CONST_1.default.APP_REPO,
path,
ref,
});
if (Array.isArray(data)) {
throw new Error(`Provided path ${path} refers to a directory, not a file`);
}
if (!('content' in data)) {
throw new Error(`Provided path ${path} is invalid`);
}
return Buffer.from(data.content, 'base64').toString('utf8');
}
/**
* Get commits between two tags via the GitHub API
*/
Expand Down
Loading
Loading