-
Notifications
You must be signed in to change notification settings - Fork 97
Turn automatic backport nominations into suggestions #2191
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
Conversation
f4c2231
to
c347fd8
Compare
// Issue/PR authors/reviewers will receive a mention if the template has `{recipients}`. | ||
let recipients = &mut event.issue.assignees.clone(); | ||
recipients.push(event.issue.user.clone()); | ||
|
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.
This is different from before: if the template has a {recipients}
placeholder, author and reviewers of the PR/issue will receive a mention.
(this change is very specific to my use-case but I think it can be used in other contexts)
Ok(()) | ||
} | ||
|
||
async fn get_zulip_ids(ctx: &Context, recipients: &[User]) -> String { |
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.
this code here is duplicating what we have in src/zulip.rs
so a better way would be to refactor that module and expose functions. Maybe another time.
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.
to generate the mention it's using the trick to write @|12345
where 12345 is the Zulip ID of the user.
Let me know if you want a review. |
c347fd8
to
63ae02e
Compare
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.
Thanks, let's try.
Beta backport nominations were confusing so we decided to turn them into suggestions for reviewers and author of a PR fixing a regression. The idea is to raise awareness on patches fixing P-high/P-critical regressions but at the same time not make it look like a mandatory decision for T-compiler to take.
After this patch, I will modify the template that creates Zulip topics for backport nominations. For example it could look like this:
(visual representation)
(
@user1, @user2, @user3
) are PR author and reviewers.As per Zulip discussion.