Skip to content

Conversation

@Urgau
Copy link
Member

@Urgau Urgau commented Oct 28, 2025

This PR adjusts the [review-submitted] issue handler to also switch review labels for users with write permission when requesting changes.

Fixes #2169
cc @tgross35

@Urgau Urgau requested a review from Kobzol October 28, 2025 20:42
Copy link
Member

@Kobzol Kobzol left a comment

Choose a reason for hiding this comment

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

Left one nit, feel free to merge with/without changing.

View changes since this review


#[derive(Debug, serde::Deserialize)]
pub struct CollaboratorPermission {
pub permission: String,
Copy link
Member

Choose a reason for hiding this comment

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

We could use an enum here to make it a bit nicer to deal with.

Copy link
Member Author

Choose a reason for hiding this comment

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

I also wanted use an enum but GitHub's own documentation/schema says it's just a string, but on the other hand they say it can only be admin, write, read, and none. Unsure what to do.

Copy link
Member

Choose a reason for hiding this comment

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

Let's leave it. If we use the collaborator permissions on more places, then we can refactor it.

@Urgau Urgau added this pull request to the merge queue Oct 29, 2025
Merged via the queue into rust-lang:master with commit ca35b2f Oct 29, 2025
3 checks passed
@Urgau Urgau deleted the review-changes-requested-write branch October 29, 2025 19:46
@tgross35
Copy link
Contributor

Thank you for working on this ❤️ I can't wait to leave some reviews

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.

For review-submitted labels, don't require that the reviewer is assigned

3 participants