Repository navigation
claim bot: decision-needed label for questions that wait on the maintainer - #2069
Merged
Merged
Conversation
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.
Fixes #2057 (maintainer approved).
Behavior (as the issue proposes):
Decision needed:(plain,**Decision needed:**,**Decision needed**:, or after a heading marker) addsdecision-neededand a 🚀, silently. Anyone can set it, on claimed or unclaimed issues. Running text ("no decision needed: …") does not match.Decided:(first line) from a maintainer (OWNER/MEMBER/COLLABORATOR) removes it; from anyone else it is refused with a reply. Removing the label by hand also works.Decision needed:also counts asBlocked:(claim-bot: claimant-set claim-blocked state with a 7-day timer #2013): it addsclaim-blocked, starts the 7-day timer and a new one renews it. The claimant's other progress removesclaim-blockedas before and keepsdecision-needed.decision-needed.decision-neededlabel is created in the repo.Defaults picked where the issue left room:
Decided:is matched on the first line only, like the other commands;Decision needed:on any line, as the issue decides.Decision needed:line does both (e.g.Claiming:+ a question); a refused command still only gets the refusal.RED 7e79db1 (
ci/test_claim_bot.pyDecisionTest, 10 cases):FAILED (failures=1, errors=10)—module 'claim_bot' has no attribute 'DECISION'/'handles', and claimant progress returned[]instead of removingclaim-blockedafter a decision comment.GREEN ed5e810: all 73 claim-bot tests pass;
./lintpasses.No workflow change: the claim-bot workflow already runs on every issue comment; the event gate now also routes
Decision needed:andDecided:comments. Contributor tooling only, so no features.md line.