Twice-daily watcher for TestSprite/testsprite-cli issues.
What it does every run (07:00 & 19:00 UTC):
- Logs — every comment a maintainer makes on an issue, every approval label
added/removed (
accepted/good first issue/help wanted), every assignment / unassignment / claim-rejection, intolog/events.jsonlplus a dailylog/digest-YYYY-MM-DD.mdand the Actions job summary. - Claims — comments a bare
/assignon issues that are open for claiming:- carries a claimable label (their bot rejects
/assignon anything else) - nobody assigned yet
- under the 3-claim slot cap
- no prior failed attempt on that issue (waits for a fresh approval signal or a 14-day cooldown instead of re-noising the thread)
- max 2 new claims per run
- carries a claimable label (their bot rejects
- TTL watch — warns in the digest when one of your claims is ≥72h old without an open PR linking it (their bot releases idle claims at 96h).
Modes
dryRun: trueinconfig.json→ logswould_claimentries, posts nothing.- Go live: set
"dryRun": false, or dispatch the workflow withforce_live: truefor a one-off live run.
- Create a classic PAT with scope
public_repo(fine-grained PATs cannot be granted write on a repository you don't own — this token must post comments as you onTestSprite/testsprite-cli). - Repo Settings → Secrets and variables → Actions → New repository secret:
name
TS_PAT, value the token. - Dry run: Actions → testsprite watch → Run workflow (leaves
force_liveunchecked), read the job summary +log/. - Live: run the same workflow with
force_live: true, or flipconfig.json → "dryRun": falseand commit.
config.json target repo, your handle, caps, labels, cooldowns
scripts/watch.mjs zero-dependency Node ≥20 watcher
state/state.json last window, attempt history, claim ages, caches (committed each run)
log/events.jsonl every logged event (append-only, committed each run)
log/digest-*.md human-readable daily digest
GH_TOKEN=$(gh auth token) node scripts/watch.mjs --dry-run --verbose