Add config options to change labels for draft/closed/reopened PRs#1768
Add config options to change labels for draft/closed/reopened PRs#1768WaffleLapkin wants to merge 3 commits intorust-lang:masterfrom
Conversation
|
This actually makes me think that using Something like [[autolabel]]
new_pr = true
add = ["S-waiting-on-review"]
[[autolabel]]
review-submitted = true
reviewed_label = "S-waiting-on-author"
review_labels = ["S-waiting-on-review"]
[[autolabel]]
review-requested = true
remove_labels = ["S-waiting-on-author"]
add_labels = ["S-waiting-on-review"]Instead of [autolabel."S-waiting-on-review"]
new_pr = true
[review-submitted]
reviewed_label = "S-waiting-on-author"
review_labels = ["S-waiting-on-review"]
[review-requested]
remove_labels = ["S-waiting-on-author"]
add_labels = ["S-waiting-on-review"]The advantages are:
Example of the last point: [[autolabel]]
# Positive filters require any positive filter to fire, i.e. this is triggered on either event
review-requested = true
ready-for-review = true
add = ["S-waiting-on-review"]
remove = ["S-waiting-on-author"] |
|
The only question is how to make this in a backwards compatible way... |
|
To give feedback on the best approach, can you explain a bit on what you want from this? |
|
@jackh726 I want to improve the way we handle draft PRs. Specifically there are 3 things:
Currently they don't have any special handling. This is a bit awkward because drafts are marked as Since people know how to use github features and occasionally do use them in |
|
@WaffleLapkin, are you still interested in moving this change forward? |
|
@Urgau I would be interested, but I'm not sure what would be the next step here. Would be happy to discuss if you have ideas though. |
This is no longer the case since #1968, we don't autolabel, nor auto-assign draft PRs when opened. We do now respect ready for review. I don't think we have handling yet for "PRs converted to drafts", what would expect us to do in those cases? |
|
I guess converting to draft should remove |
|
That seems reasonable, and what about the assignee, should it stay? should we remove it? Btw, this discussion might interest you @Kobzol. |
|
I would personally keep the assignee when converting to draft, but switch the labels. |
|
@WaffleLapkin with #2104 we now remove |
Adds the following options: