Automatically release status:in-progress on close and merge #58
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Closed issues can retain
status:in-progress(happened with #46/#48), leaving stale tracker state that needs manual cleanup.Goal
When Gitea-Tools performs an issue close, PR merge, or PR close, it removes
status:in-progressfrom the relevant issue(s).Scope
Only for actions performed through Gitea-Tools. No web-UI/webhook/background reconciliation here.
Behavior
status:in-progressfrom that issue (absent = no-op success).Closes/Fixes/Resolves #n,Refs #n, branch…/issue-<n>-…) → remove the label; touch no other labels.Implementation
Small unit-testable helpers in
mcp_server.py:extract_linked_issue_numbers(text, branch_name=None),release_in_progress_label(...),cleanup_in_progress_for_pr(...). No new network calls beyond the label mutation. No change to auth/profile/retry/audit/config/worktree/release-tag behavior.Acceptance
Label auto-removed on close/merge/close-without-merge of linked work; no unrelated labels removed; missing label = no-op; missing link = no guess; failures reported; backwards compatible; full suite passes.
Refs #46, #48.
Closing as duplicate of #56 (auto-release status:in-progress on close/merge), which is implemented and merged via PR #57. Releasing status:in-progress; no corrective PR needed.