Issues are the task queue: /claim books an issue, and a claim without a pull request expires #266

Merged
LakshanSivakumar merged 1 commit from upstream-pr/266 into main 2026-11-27 08:08:43 +00:00
LakshanSivakumar commented 2026-11-27 06:45:56 +00:00 (Migrated from github.com)

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-27T06:45:56Z.


What this changes

Makes the issue tracker the task queue, so two people stop fixing the same thing on the same day.

  • Claiming: a comment of /claim on an issue assigns it to the commenter and adds a claimed label. If someone else holds it, the bot says who. /release gives it up (the holder or a maintainer).
  • Expiry: an hourly job frees a claim when no open pull request mentions the issue after 24 hours, or when the pull requests that do have been quiet for 72 hours.
  • Rules written down: CONTRIBUTING.md gets "Claim it before you start" (check it is free, claim, open a draft pull request early with Refs #N), and AGENTS.md gets the same in short form so coding agents follow it. The pull request template asks for the issue.

A QUEUE.md file was suggested for this. It is not used, because booking a line in a file needs a merge (contributors work from forks), bookings conflict with each other in one file, and nothing removes a stale line. An issue comment is instant and needs no merge.

How it was tested

  • cargo test ...: not needed, no Rust changed
  • cargo xtask policy: 370 files ok
  • The workflow's two scripts run against a fake API: claim on a free issue, claim on a held issue (refused), a comment that only mentions /claim (ignored), release by the holder, by a stranger (refused) and by the owner; expiry for no pull request after 30 h, a fresh claim (kept), a pull request quiet for 80 h, an active one (kept), and a closed one. The check script is JavaScript, which the asset policy does not allow in the repo, so it is not committed.
  • Not run on GitHub yet: issue_comment and schedule workflows only run from the default branch, so the first real run is after merge.

To know before merging

  • The workflow has issues: write and pull-requests: read. It never checks out code and runs no contributor code; it only reads the comment's first word.
  • The claimed label does not exist yet. GitHub creates it on first use; give it a colour afterwards if you like.
  • Only people who have commented on an issue can be assigned to it, which /claim satisfies.
  • The windows (24 h, 72 h) are two constants at the top of the expiry script.
  • Tracking issues (#4, #258) hold several tasks. The rule for those: say which piece you take in the /claim comment, or open a smaller issue and claim that.
<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:5522465757 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/266). Originally posted by [LakshanSivakumar](https://github.com/LakshanSivakumar) on 2026-11-27T06:45:56Z. --- ## What this changes Makes the issue tracker the task queue, so two people stop fixing the same thing on the same day. - **Claiming:** a comment of `/claim` on an issue assigns it to the commenter and adds a `claimed` label. If someone else holds it, the bot says who. `/release` gives it up (the holder or a maintainer). - **Expiry:** an hourly job frees a claim when no open pull request mentions the issue after 24 hours, or when the pull requests that do have been quiet for 72 hours. - **Rules written down:** `CONTRIBUTING.md` gets "Claim it before you start" (check it is free, claim, open a draft pull request early with `Refs #N`), and `AGENTS.md` gets the same in short form so coding agents follow it. The pull request template asks for the issue. A `QUEUE.md` file was suggested for this. It is not used, because booking a line in a file needs a merge (contributors work from forks), bookings conflict with each other in one file, and nothing removes a stale line. An issue comment is instant and needs no merge. ## How it was tested - [ ] `cargo test ...`: not needed, no Rust changed - [x] `cargo xtask policy`: 370 files ok - [x] The workflow's two scripts run against a fake API: claim on a free issue, claim on a held issue (refused), a comment that only mentions `/claim` (ignored), release by the holder, by a stranger (refused) and by the owner; expiry for no pull request after 30 h, a fresh claim (kept), a pull request quiet for 80 h, an active one (kept), and a closed one. The check script is JavaScript, which the asset policy does not allow in the repo, so it is not committed. - [ ] Not run on GitHub yet: `issue_comment` and `schedule` workflows only run from the default branch, so the first real run is after merge. ## To know before merging - The workflow has `issues: write` and `pull-requests: read`. It never checks out code and runs no contributor code; it only reads the comment's first word. - The `claimed` label does not exist yet. GitHub creates it on first use; give it a colour afterwards if you like. - Only people who have commented on an issue can be assigned to it, which `/claim` satisfies. - The windows (24 h, 72 h) are two constants at the top of the expiry script. - Tracking issues (#4, #258) hold several tasks. The rule for those: say which piece you take in the `/claim` comment, or open a smaller issue and claim that.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
LakshanSivakumar/Native-Victory-macOS!266
No description provided.