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

[No QA] Fix bugs found with staging deploy comments #2479

Merged
merged 9 commits into from
Apr 20, 2021

Conversation

AndrewGable
Copy link
Contributor

Details

We found a few bugs with the staging deploy comments, this hopefully resolves all of them:

  1. Comment link had an extra newline
  2. Comment had a unneeded timestamp, deleted it
  3. Comments were added to some older PRs, we updated the regex to fix that bug
  4. Added a IS_PRODUCTION_DEPLOY flag to only comment on relevant PRs for staging or production deploys

Fixed Issues

Fixes 🐛 s!

Tests

  1. Merge this PR
  2. Verify all the bugs above are resolved

@AndrewGable AndrewGable self-assigned this Apr 19, 2021
@AndrewGable AndrewGable requested a review from a team as a code owner April 19, 2021 23:32
@MelvinBot MelvinBot requested review from MariaHCD and removed request for a team April 19, 2021 23:32
const priorTagIndex = _.indexOf(tags, inputTag) + 1;

if (priorTagIndex === 0) {
console.log(`No ${itemToFetch} was found for input tag ${inputTag}.
Copy link
Contributor

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.");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
+ "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))
Copy link
Contributor

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

Copy link
Contributor

@roryabraham roryabraham left a 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!

@roryabraham roryabraham merged commit e21dedd into main Apr 20, 2021
@roryabraham roryabraham deleted the andrew-staging-comment branch April 20, 2021 00:15
@roryabraham roryabraham changed the title Fix bugs found with staging deploy comments [No QA] Fix bugs found with staging deploy comments Apr 20, 2021
@OSBotify
Copy link
Contributor

🚀 Deployed to staging 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@roryabraham
Copy link
Contributor

Nice, this seemed to work!

@roryabraham
Copy link
Contributor

@roryabraham
Copy link
Contributor

Fix here

@OSBotify
Copy link
Contributor

OSBotify commented May 8, 2021

🚀 Deployed to production in version: 1.0.39-5🚀

platform result
🤖 android 🤖 failure ❌
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants