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

Fix milestone reminder #42861

Merged
merged 7 commits into from
Jun 6, 2024
Merged

Fix milestone reminder #42861

merged 7 commits into from
Jun 6, 2024

Conversation

nemanjaglumac
Copy link
Member

@nemanjaglumac nemanjaglumac commented May 17, 2024

Description

Resolves #42835.

The milestone reminder workflow has been broken.
My previous attempt to fix it didn't really work because the parsing logic was wrong.

This is the example:
https://github.com/metabase/metabase/actions/runs/9382661958/job/25834555041#step:2:78

Notice how it tries to fetch https://api.github.com/repos/metabase/metabase/issues/s

Some local experimentation explains why this happened in the past:
image

I've now included a lot of unit tests to make sure this script is working.

Notable Changes

  • The script is now able to parse multiple linked issues, which wasn't the case before
  • The issue number with be included in the bot message (check this comment)

How to verify

Checklist

  • Tests have been added/updated to cover changes in this PR

@nemanjaglumac nemanjaglumac added the no-backport Do not backport this PR to any branch label Jun 5, 2024
@nemanjaglumac nemanjaglumac marked this pull request as ready for review June 5, 2024 20:34
Comment on lines +82 to +83
// Exit as soon as we found an issue without a milestone and alerted the author.
process.exit(0);
Copy link
Member Author

Choose a reason for hiding this comment

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

@iethree as the alternative, we can let the script go through ALL linked issues and alert for each issue without a milestone individually. WDYT?

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 one message is sufficient, i like how you did it here 👍

Copy link
Contributor

@iethree iethree left a comment

Choose a reason for hiding this comment

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

💖

Copy link
Contributor

Choose a reason for hiding this comment

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

love these ❤️

Comment on lines +82 to +83
// Exit as soon as we found an issue without a milestone and alerted the author.
process.exit(0);
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 one message is sufficient, i like how you did it here 👍

@nemanjaglumac nemanjaglumac merged commit 25c4cb0 into master Jun 6, 2024
199 of 202 checks passed
@nemanjaglumac nemanjaglumac deleted the fix-milestone-reminder branch June 6, 2024 22:44
@nemanjaglumac nemanjaglumac added .CI & Tests .DX Developer experience and QoL related. labels Jun 6, 2024
Copy link

github-actions bot commented Jun 6, 2024

@nemanjaglumac Did you forget to add a milestone to the issue #42835 linked in this PR? When and where should I add a milestone?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
.CI & Tests .DX Developer experience and QoL related. no-backport Do not backport this PR to any branch .Team/QueryingComponents
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Milestone Reminder GH Action doesn't always work
2 participants