-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[No QA] Fix bugs found with staging deploy comments #2479
Conversation
const priorTagIndex = _.indexOf(tags, inputTag) + 1; | ||
|
||
if (priorTagIndex === 0) { | ||
console.log(`No ${itemToFetch} was found for input tag ${inputTag}. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this will end up having a weird newline in the middle
|
||
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."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+ "so we don't have the prior tag."); | |
+ 'so we don't have the prior tag.'); |
|
||
return GitUtils.getPullRequestsMergedBetween(priorTag, inputTag); | ||
}) | ||
.then(pullRequestList => core.setOutput('PR_LIST', pullRequestList)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's also log the list of PRs we found here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, let's give it a go!
🚀 Deployed to staging 🚀
|
Nice, this seemed to work! |
Oops, we broke prod deploys https://github.com/Expensify/Expensify.cash/runs/2471474181?check_suite_focus=true 😬 |
Fix here |
🚀 Deployed to production in version: 1.0.39-5🚀
|
Details
We found a few bugs with the staging deploy comments, this hopefully resolves all of them:
IS_PRODUCTION_DEPLOY
flag to only comment on relevant PRs for staging or production deploysFixed Issues
Fixes 🐛 s!
Tests