Repository navigation
Only one of AI- label can be added - #723
Merged
Merged
Conversation
Adding AI-guidelines-not-met removes AI-needs-explanation, so triagers no longer have to remove the first label by hand. When both labels are added together, the close label wins and the explanation handler steps aside, so only one comment is posted and only one label is removed.
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #723 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 20 20
Lines 2370 2421 +51
Branches 117 119 +2
=========================================
+ Hits 2370 2421 +51
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Also state in the README that adding AI-needs-explanation to an item that already has AI-guidelines-not-met does nothing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a PR/an issue moves from AI-needs-explanation to AI-guidelines-not-met, triagers would need to first remove the needs-explanation label and add the guidelines-not-met label. With this PR, triager can add the guidelines-not-met label and the bot automatically removes the first label. If both labels are added at the same time, the guidelines-not-met label wins.
Note that this only works on PR/issues that are still open. If the labels are added to closed items, the bot doesn't act.