Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Expensify.cash to New Expensify #4408

Merged
merged 19 commits into from
Aug 11, 2021
Merged
Show file tree
Hide file tree
Changes from 17 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
2 changes: 1 addition & 1 deletion .github/actions/bumpVersion/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'Bump npm version'
description: 'Increase the application version (JS and native), based on git tags'
inputs:
GITHUB_TOKEN:
description: Auth token for Expensify.cash Github
description: Auth token for New Expensify Github
required: true
SEMVER_LEVEL:
description: Semantic Versioning Level
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/bumpVersion/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ const getBuildVersion = __nccwpck_require__(16);
const BUILD_GRADLE_PATH = process.env.NODE_ENV === 'test'
? path.resolve(__dirname, '../../android/app/build.gradle')
: './android/app/build.gradle';
const PLIST_PATH = './ios/ExpensifyCash/Info.plist';
const PLIST_PATH_TEST = './ios/ExpensifyCashTests/Info.plist';
const PLIST_PATH = './ios/NewExpensify/Info.plist';
const PLIST_PATH_TEST = './ios/NewExpensifyTests/Info.plist';

exports.BUILD_GRADLE_PATH = BUILD_GRADLE_PATH;
exports.PLIST_PATH = PLIST_PATH;
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/checkDeployBlockers/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'Check Deploy blockers'
description: 'Check a recently closed `ProductionDeployCash` issue for unchecked boxes or a missing `:shipit:` comment'
inputs:
GITHUB_TOKEN:
description: Auth token for Expensify.cash Github; necessary for accessing Octokit.
description: Auth token for New Expensify Github; necessary for accessing Octokit.
required: true
ISSUE_NUMBER:
description: The number of the recently closed issue
Expand Down
12 changes: 6 additions & 6 deletions .github/actions/checkDeployBlockers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ const {GitHub, getOctokitOptions} = __nccwpck_require__(3030);
const {throttling} = __nccwpck_require__(9968);

const GITHUB_OWNER = 'Expensify';
const EXPENSIFY_CASH_REPO = 'Expensify.cash';
const EXPENSIFY_CASH_URL = 'https://github.com/Expensify/Expensify.cash';
const EXPENSIFY_CASH_REPO = 'App';
const EXPENSIFY_CASH_URL = 'https://github.com/Expensify/App';

const GITHUB_BASE_URL_REGEX = new RegExp('https?://(?:github\\.com|api\\.github\\.com)');
const PULL_REQUEST_REGEX = new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/pull/([0-9]+).*`);
Expand Down Expand Up @@ -307,7 +307,7 @@ class GithubUtils {

// Tag version and comparison URL
// eslint-disable-next-line max-len
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/Expensify/Expensify.cash/compare/production...staging\r\n`;
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/Expensify/App/compare/production...staging\r\n`;

// PR list
if (!_.isEmpty(sortedPRList)) {
Expand Down Expand Up @@ -381,13 +381,13 @@ class GithubUtils {
}

/**
* Get the most recent workflow run for the given Expensify.cash workflow.
* Get the most recent workflow run for the given New Expensify workflow.
*
* @param {String} workflow
* @returns {Promise}
*/
static getLatestWorkflowRunID(workflow) {
console.log(`Fetching Expensify.cash workflow runs for ${workflow}...`);
console.log(`Fetching New Expensify workflow runs for ${workflow}...`);
return this.octokit.actions.listWorkflowRuns({
owner: GITHUB_OWNER,
repo: EXPENSIFY_CASH_REPO,
Expand All @@ -410,7 +410,7 @@ class GithubUtils {
}

/**
* Generate the URL of an Expensify.cash pull request given the PR number.
* Generate the URL of an New Expensify pull request given the PR number.
*
* @param {Number} number
* @returns {String}
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/createOrUpdateStagingDeploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'Create or Update StagingDeployCash'
description: 'Creates a new StagingDeployCash issue if there is not one open, or updates the existing one.'
inputs:
GITHUB_TOKEN:
description: Auth token for Expensify.cash Github
description: Auth token for New Expensify Github
required: true
NPM_VERSION:
description: The new NPM version of the StagingDeployCash issue.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ const run = function () {
if (shouldCreateNewStagingDeployCash) {
return GithubUtils.octokit.issues.create({
...defaultPayload,
title: `Deploy Checklist: Expensify.cash ${moment().format('YYYY-MM-DD')}`,
title: `Deploy Checklist: New Expensify ${moment().format('YYYY-MM-DD')}`,
labels: [GithubUtils.STAGING_DEPLOY_CASH_LABEL],
assignees: [GithubUtils.APPLAUSE_BOT],
});
Expand Down
14 changes: 7 additions & 7 deletions .github/actions/createOrUpdateStagingDeploy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ const run = function () {
if (shouldCreateNewStagingDeployCash) {
return GithubUtils.octokit.issues.create({
...defaultPayload,
title: `Deploy Checklist: Expensify.cash ${moment().format('YYYY-MM-DD')}`,
title: `Deploy Checklist: New Expensify ${moment().format('YYYY-MM-DD')}`,
labels: [GithubUtils.STAGING_DEPLOY_CASH_LABEL],
assignees: [GithubUtils.APPLAUSE_BOT],
});
Expand Down Expand Up @@ -220,8 +220,8 @@ const {GitHub, getOctokitOptions} = __nccwpck_require__(3030);
const {throttling} = __nccwpck_require__(9968);

const GITHUB_OWNER = 'Expensify';
const EXPENSIFY_CASH_REPO = 'Expensify.cash';
const EXPENSIFY_CASH_URL = 'https://github.com/Expensify/Expensify.cash';
const EXPENSIFY_CASH_REPO = 'App';
const EXPENSIFY_CASH_URL = 'https://github.com/Expensify/App';

const GITHUB_BASE_URL_REGEX = new RegExp('https?://(?:github\\.com|api\\.github\\.com)');
const PULL_REQUEST_REGEX = new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/pull/([0-9]+).*`);
Expand Down Expand Up @@ -434,7 +434,7 @@ class GithubUtils {

// Tag version and comparison URL
// eslint-disable-next-line max-len
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/Expensify/Expensify.cash/compare/production...staging\r\n`;
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/Expensify/App/compare/production...staging\r\n`;

// PR list
if (!_.isEmpty(sortedPRList)) {
Expand Down Expand Up @@ -508,13 +508,13 @@ class GithubUtils {
}

/**
* Get the most recent workflow run for the given Expensify.cash workflow.
* Get the most recent workflow run for the given New Expensify workflow.
*
* @param {String} workflow
* @returns {Promise}
*/
static getLatestWorkflowRunID(workflow) {
console.log(`Fetching Expensify.cash workflow runs for ${workflow}...`);
console.log(`Fetching New Expensify workflow runs for ${workflow}...`);
return this.octokit.actions.listWorkflowRuns({
owner: GITHUB_OWNER,
repo: EXPENSIFY_CASH_REPO,
Expand All @@ -537,7 +537,7 @@ class GithubUtils {
}

/**
* Generate the URL of an Expensify.cash pull request given the PR number.
* Generate the URL of an New Expensify pull request given the PR number.
*
* @param {Number} number
* @returns {String}
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/getMergeCommitForPullRequest/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'Get merge commit for a pull request'
description: 'Get the merge_commit_sha for a pull request'
inputs:
GITHUB_TOKEN:
description: Auth token for Expensify.cash Github
description: Auth token for New Expensify Github
required: true
PULL_REQUEST_NUMBER:
description: The number of the pull request
Expand Down
12 changes: 6 additions & 6 deletions .github/actions/getMergeCommitForPullRequest/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ const {GitHub, getOctokitOptions} = __nccwpck_require__(3030);
const {throttling} = __nccwpck_require__(9968);

const GITHUB_OWNER = 'Expensify';
const EXPENSIFY_CASH_REPO = 'Expensify.cash';
const EXPENSIFY_CASH_URL = 'https://github.com/Expensify/Expensify.cash';
const EXPENSIFY_CASH_REPO = 'App';
const EXPENSIFY_CASH_URL = 'https://github.com/Expensify/App';

const GITHUB_BASE_URL_REGEX = new RegExp('https?://(?:github\\.com|api\\.github\\.com)');
const PULL_REQUEST_REGEX = new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/pull/([0-9]+).*`);
Expand Down Expand Up @@ -335,7 +335,7 @@ class GithubUtils {

// Tag version and comparison URL
// eslint-disable-next-line max-len
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/Expensify/Expensify.cash/compare/production...staging\r\n`;
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/Expensify/App/compare/production...staging\r\n`;

// PR list
if (!_.isEmpty(sortedPRList)) {
Expand Down Expand Up @@ -409,13 +409,13 @@ class GithubUtils {
}

/**
* Get the most recent workflow run for the given Expensify.cash workflow.
* Get the most recent workflow run for the given New Expensify workflow.
*
* @param {String} workflow
* @returns {Promise}
*/
static getLatestWorkflowRunID(workflow) {
console.log(`Fetching Expensify.cash workflow runs for ${workflow}...`);
console.log(`Fetching New Expensify workflow runs for ${workflow}...`);
return this.octokit.actions.listWorkflowRuns({
owner: GITHUB_OWNER,
repo: EXPENSIFY_CASH_REPO,
Expand All @@ -438,7 +438,7 @@ class GithubUtils {
}

/**
* Generate the URL of an Expensify.cash pull request given the PR number.
* Generate the URL of an New Expensify pull request given the PR number.
*
* @param {Number} number
* @returns {String}
Expand Down
12 changes: 6 additions & 6 deletions .github/actions/getReleaseBody/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ const {GitHub, getOctokitOptions} = __nccwpck_require__(3030);
const {throttling} = __nccwpck_require__(9968);

const GITHUB_OWNER = 'Expensify';
const EXPENSIFY_CASH_REPO = 'Expensify.cash';
const EXPENSIFY_CASH_URL = 'https://github.com/Expensify/Expensify.cash';
const EXPENSIFY_CASH_REPO = 'App';
const EXPENSIFY_CASH_URL = 'https://github.com/Expensify/App';

const GITHUB_BASE_URL_REGEX = new RegExp('https?://(?:github\\.com|api\\.github\\.com)');
const PULL_REQUEST_REGEX = new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/pull/([0-9]+).*`);
Expand Down Expand Up @@ -278,7 +278,7 @@ class GithubUtils {

// Tag version and comparison URL
// eslint-disable-next-line max-len
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/Expensify/Expensify.cash/compare/production...staging\r\n`;
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/Expensify/App/compare/production...staging\r\n`;

// PR list
if (!_.isEmpty(sortedPRList)) {
Expand Down Expand Up @@ -352,13 +352,13 @@ class GithubUtils {
}

/**
* Get the most recent workflow run for the given Expensify.cash workflow.
* Get the most recent workflow run for the given New Expensify workflow.
*
* @param {String} workflow
* @returns {Promise}
*/
static getLatestWorkflowRunID(workflow) {
console.log(`Fetching Expensify.cash workflow runs for ${workflow}...`);
console.log(`Fetching New Expensify workflow runs for ${workflow}...`);
return this.octokit.actions.listWorkflowRuns({
owner: GITHUB_OWNER,
repo: EXPENSIFY_CASH_REPO,
Expand All @@ -381,7 +381,7 @@ class GithubUtils {
}

/**
* Generate the URL of an Expensify.cash pull request given the PR number.
* Generate the URL of an New Expensify pull request given the PR number.
*
* @param {Number} number
* @returns {String}
Expand Down
12 changes: 6 additions & 6 deletions .github/actions/isPullRequestMergeable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ const {GitHub, getOctokitOptions} = __nccwpck_require__(3030);
const {throttling} = __nccwpck_require__(9968);

const GITHUB_OWNER = 'Expensify';
const EXPENSIFY_CASH_REPO = 'Expensify.cash';
const EXPENSIFY_CASH_URL = 'https://github.com/Expensify/Expensify.cash';
const EXPENSIFY_CASH_REPO = 'App';
const EXPENSIFY_CASH_URL = 'https://github.com/Expensify/App';

const GITHUB_BASE_URL_REGEX = new RegExp('https?://(?:github\\.com|api\\.github\\.com)');
const PULL_REQUEST_REGEX = new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/pull/([0-9]+).*`);
Expand Down Expand Up @@ -281,7 +281,7 @@ class GithubUtils {

// Tag version and comparison URL
// eslint-disable-next-line max-len
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/Expensify/Expensify.cash/compare/production...staging\r\n`;
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/Expensify/App/compare/production...staging\r\n`;

// PR list
if (!_.isEmpty(sortedPRList)) {
Expand Down Expand Up @@ -355,13 +355,13 @@ class GithubUtils {
}

/**
* Get the most recent workflow run for the given Expensify.cash workflow.
* Get the most recent workflow run for the given New Expensify workflow.
*
* @param {String} workflow
* @returns {Promise}
*/
static getLatestWorkflowRunID(workflow) {
console.log(`Fetching Expensify.cash workflow runs for ${workflow}...`);
console.log(`Fetching New Expensify workflow runs for ${workflow}...`);
return this.octokit.actions.listWorkflowRuns({
owner: GITHUB_OWNER,
repo: EXPENSIFY_CASH_REPO,
Expand All @@ -384,7 +384,7 @@ class GithubUtils {
}

/**
* Generate the URL of an Expensify.cash pull request given the PR number.
* Generate the URL of an New Expensify pull request given the PR number.
*
* @param {Number} number
* @returns {String}
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/isStagingDeployLocked/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'Check if the StagingDeployCash is locked'
description: 'Checks if the open StagingDeployCash issue has the LockCashDeploys label'
inputs:
GITHUB_TOKEN:
description: Auth token for Expensify.cash Github
description: Auth token for New Expensify Github
required: true
outputs:
IS_LOCKED:
Expand Down
12 changes: 6 additions & 6 deletions .github/actions/isStagingDeployLocked/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ const {GitHub, getOctokitOptions} = __nccwpck_require__(3030);
const {throttling} = __nccwpck_require__(9968);

const GITHUB_OWNER = 'Expensify';
const EXPENSIFY_CASH_REPO = 'Expensify.cash';
const EXPENSIFY_CASH_URL = 'https://github.com/Expensify/Expensify.cash';
const EXPENSIFY_CASH_REPO = 'App';
const EXPENSIFY_CASH_URL = 'https://github.com/Expensify/App';

const GITHUB_BASE_URL_REGEX = new RegExp('https?://(?:github\\.com|api\\.github\\.com)');
const PULL_REQUEST_REGEX = new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/pull/([0-9]+).*`);
Expand Down Expand Up @@ -259,7 +259,7 @@ class GithubUtils {

// Tag version and comparison URL
// eslint-disable-next-line max-len
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/Expensify/Expensify.cash/compare/production...staging\r\n`;
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/Expensify/App/compare/production...staging\r\n`;

// PR list
if (!_.isEmpty(sortedPRList)) {
Expand Down Expand Up @@ -333,13 +333,13 @@ class GithubUtils {
}

/**
* Get the most recent workflow run for the given Expensify.cash workflow.
* Get the most recent workflow run for the given New Expensify workflow.
*
* @param {String} workflow
* @returns {Promise}
*/
static getLatestWorkflowRunID(workflow) {
console.log(`Fetching Expensify.cash workflow runs for ${workflow}...`);
console.log(`Fetching New Expensify workflow runs for ${workflow}...`);
return this.octokit.actions.listWorkflowRuns({
owner: GITHUB_OWNER,
repo: EXPENSIFY_CASH_REPO,
Expand All @@ -362,7 +362,7 @@ class GithubUtils {
}

/**
* Generate the URL of an Expensify.cash pull request given the PR number.
* Generate the URL of an New Expensify pull request given the PR number.
*
* @param {Number} number
* @returns {String}
Expand Down
12 changes: 6 additions & 6 deletions .github/actions/markPullRequestsAsDeployed/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ const {GitHub, getOctokitOptions} = __nccwpck_require__(3030);
const {throttling} = __nccwpck_require__(9968);

const GITHUB_OWNER = 'Expensify';
const EXPENSIFY_CASH_REPO = 'Expensify.cash';
const EXPENSIFY_CASH_URL = 'https://github.com/Expensify/Expensify.cash';
const EXPENSIFY_CASH_REPO = 'App';
const EXPENSIFY_CASH_URL = 'https://github.com/Expensify/App';

const GITHUB_BASE_URL_REGEX = new RegExp('https?://(?:github\\.com|api\\.github\\.com)');
const PULL_REQUEST_REGEX = new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/pull/([0-9]+).*`);
Expand Down Expand Up @@ -467,7 +467,7 @@ class GithubUtils {

// Tag version and comparison URL
// eslint-disable-next-line max-len
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/Expensify/Expensify.cash/compare/production...staging\r\n`;
let issueBody = `**Release Version:** \`${tag}\`\r\n**Compare Changes:** https://github.com/Expensify/App/compare/production...staging\r\n`;

// PR list
if (!_.isEmpty(sortedPRList)) {
Expand Down Expand Up @@ -541,13 +541,13 @@ class GithubUtils {
}

/**
* Get the most recent workflow run for the given Expensify.cash workflow.
* Get the most recent workflow run for the given New Expensify workflow.
*
* @param {String} workflow
* @returns {Promise}
*/
static getLatestWorkflowRunID(workflow) {
console.log(`Fetching Expensify.cash workflow runs for ${workflow}...`);
console.log(`Fetching New Expensify workflow runs for ${workflow}...`);
return this.octokit.actions.listWorkflowRuns({
owner: GITHUB_OWNER,
repo: EXPENSIFY_CASH_REPO,
Expand All @@ -570,7 +570,7 @@ class GithubUtils {
}

/**
* Generate the URL of an Expensify.cash pull request given the PR number.
* Generate the URL of an New Expensify pull request given the PR number.
*
* @param {Number} number
* @returns {String}
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/reopenIssueWithComment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'Reopen issue with comment'
description: 'Reopens a GitHub issue and leaves a comment.'
inputs:
GITHUB_TOKEN:
description: Auth token for Expensify.cash Github; necessary for accessing Octokit.
description: Auth token for New Expensify Github; necessary for accessing Octokit.
required: true
ISSUE_NUMBER:
description: The ID number of the issue on which we want to comment and reopen.
Expand Down
Loading