feat(miner): add ci wait CLI command#2703
Conversation
Expose pollCheckRuns as `gittensory-miner ci wait` so miners can block until a PR's check runs finish, with JSON output for scripting. Co-authored-by: Cursor <cursoragent@cursor.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2703 +/- ##
==========================================
- Coverage 96.15% 96.13% -0.03%
==========================================
Files 240 240
Lines 26964 26985 +21
Branches 9788 9792 +4
==========================================
+ Hits 25928 25941 +13
- Misses 426 433 +7
- Partials 610 611 +1 🚀 New features to boost your workflow:
|
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-03 07:39:24 UTC
⏸️ Suggested Action - Manual Review Review summary Nits — 6 non-blocking
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Co-authored-by: Cursor <cursoragent@cursor.com>
Parse polling options without throwing so malformed argv surfaces user-facing errors and documents the flags in --help. Co-authored-by: Cursor <cursoragent@cursor.com>
JSONbored
left a comment
There was a problem hiding this comment.
Merge conflicts:
This branch has conflicts that must be resolved
Use the [web editor](https://github.com/JSONbored/gittensory/pull/2703/conflicts) or the command line to resolve conflicts before continuing.
packages/gittensory-miner/package.json
Summary
gittensory-miner ci wait <owner/repo> <pr-number>to block until GitHub check runs settle, reusing the existingpollCheckRunspoller.--jsonfor scripting and honorGITHUB_TOKEN/GITTENSOR_MINER_GITHUB_TOKEN.--helpwith unit tests for arg parsing and exit codes.Test plan
npm test -- test/unit/miner-cli-ci-wait.test.ts test/unit/miner-cli.test.ts