-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:Expensify/Expensify.cash into paras…
…harrajat/quotedText
- Loading branch information
Showing
171 changed files
with
15,987 additions
and
1,407 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
If you haven’t already, check out our [contributing guidelines](https://github.com/Expensify/ReactNativeChat/blob/master/CONTRIBUTING.md) for onboarding and email [email protected] to request to join our Slack channel! | ||
If you haven’t already, check out our [contributing guidelines](https://github.com/Expensify/ReactNativeChat/blob/main/CONTRIBUTING.md) for onboarding and email [email protected] to request to join our Slack channel! | ||
___ | ||
|
||
## Expected Result: | ||
|
@@ -26,3 +26,5 @@ Where is this issue occurring? | |
**Logs:** https://stackoverflow.com/c/expensify/questions/4856 | ||
**Notes/Photos/Videos:** Any additional supporting documentation | ||
**Expensify/Expensify Issue URL:** | ||
|
||
[View all open jobs on Upwork](https://www.upwork.com/ab/jobs/search/?q=Expensify%20React%20Native&sort=recency&user_location_match=2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
.github/actions/getDeployPullRequestList/getDeployPullRequestList.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
const _ = require('underscore'); | ||
const core = require('@actions/core'); | ||
const github = require('@actions/github'); | ||
const GitUtils = require('../../libs/GitUtils'); | ||
|
||
const octokit = github.getOctokit(core.getInput('GITHUB_TOKEN', {required: true})); | ||
const inputTag = core.getInput('TAG', {required: true}); | ||
|
||
const isProductionDeploy = JSON.parse(core.getInput('IS_PRODUCTION_DEPLOY', {required: false})); | ||
const itemToFetch = isProductionDeploy ? 'release' : 'tag'; | ||
|
||
/** | ||
* Gets either releases or tags for a GitHub repo | ||
* | ||
* @param {boolean} fetchReleases | ||
* @returns {*} | ||
*/ | ||
function getTagsOrReleases(fetchReleases) { | ||
if (fetchReleases) { | ||
return octokit.repos.listReleases({ | ||
owner: github.context.repo.owner, | ||
repo: github.context.repo.repo, | ||
}); | ||
} | ||
|
||
return octokit.repos.listTags({ | ||
owner: github.context.repo.owner, | ||
repo: github.context.repo.repo, | ||
}); | ||
} | ||
|
||
console.log(`Fetching ${itemToFetch} list from github...`); | ||
getTagsOrReleases(isProductionDeploy) | ||
.catch(githubError => core.setFailed(githubError)) | ||
.then(({data}) => { | ||
const keyToPluck = isProductionDeploy ? 'tag_name' : 'name'; | ||
const tags = _.pluck(data, keyToPluck); | ||
const priorTagIndex = _.indexOf(tags, inputTag) + 1; | ||
|
||
if (priorTagIndex === 0) { | ||
console.log(`No ${itemToFetch} was found for input tag ${inputTag}.` | ||
+ `Comparing it to latest ${itemToFetch} ${tags[0]}`); | ||
} | ||
|
||
if (priorTagIndex === tags.length) { | ||
const err = new Error('Somehow, the input tag was at the end of the paginated result, ' | ||
+ 'so we don\'t have the prior tag'); | ||
console.error(err.message); | ||
core.setFailed(err); | ||
return; | ||
} | ||
|
||
const priorTag = tags[priorTagIndex]; | ||
console.log(`Given ${itemToFetch}: ${inputTag}`); | ||
console.log(`Prior ${itemToFetch}: ${priorTag}`); | ||
|
||
return GitUtils.getPullRequestsMergedBetween(priorTag, inputTag); | ||
}) | ||
.then((pullRequestList) => { | ||
console.log(`Found the pull request list: ${pullRequestList}`); | ||
return core.setOutput('PR_LIST', pullRequestList); | ||
}) | ||
.catch(error => core.setFailed(error)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 0 additions & 38 deletions
38
.github/actions/getReleasePullRequestList/getReleasePullRequestList.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.