Repository navigation
claim-bot: claimant-set claim-blocked state with a 7-day timer - #2013
Merged
Merged
Conversation
Member
Author
|
Coordinator note: this overlaps @vpacher's draft #1809 ("claim bot keeps a claimant-blocked claim for 7 days"), which implements #1808 too and has been waiting for the maintainer's decision on the parameters (7 days, set by the claimant, no renewal limit). Please agree between you which one continues, so #1808 doesn't get two implementations. I've also flagged it to the maintainer. |
4 of 7 tasks
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 #1808.
A claimant whose work waits on something they don't control comments
Blocked: <reason>(or/blocked <reason>). The bot addsclaim-blockedand reacts 🚀, silently like other accepted commands.BLOCKED_STALE_HOURS) after the lastBlocked:comment; a new one renews it.claim-blockedand the normal 48 h / 8 h timer applies again: a plain claimant comment on the issue (in the comment event) or activity on their PR (in the sweep).Releasing, handoff,/reassignand an accepted takeover also remove it.claim-blockedwith no claim is removed too.claim-lockedstill wins: the bot ignores locked issues entirely.Blocked:from anyone but the claimant, or with no claim, gets the usual refusal reply.Decisions (the issue's open questions):
/reassignandclaim-locked./reassignor remove the label. A cap needs a maintainer-confirm flow that can go in a follow-up if it's wanted.Workflow and label
claim-blocked, so a progress comment can clear it. The issue's labels come from the event payload.claim-blockedlabel in the repo, sincegh issue edit --add-labelfails on a missing label.Docs: coordination.md §3 (a table row and a paragraph), the obs-worker skill (when to use
Blocked:, and to keep the reason general). No features.md line: the ledger doesn't cover contributor tooling.Evidence
uv run python -m unittest ci/test_claim_bot.pygaveFAILED (failures=3, errors=14), becauseBLOCKEDandBLOCKED_STALE_HOURSwere missing andBlocked:was not a command../lintpasses.