feat(miner): add read-only CI check-run poller#2621
Conversation
|
🚨 Contributor flagged. Click here for more info: Superagent Dashboard |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-02 23:37:50 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.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2621 +/- ##
=======================================
Coverage 96.09% 96.09%
=======================================
Files 237 237
Lines 26444 26446 +2
Branches 9587 9588 +1
=======================================
+ Hits 25412 25414 +2
Misses 425 425
Partials 607 607 🚀 New features to boost your workflow:
|
Add the miner CI check-run poller package surface with typed entrypoints and unit coverage. Handle paginated GitHub check-run responses, terminal stale conclusions, malformed payloads, and trusted GitHub API origin validation so authenticated requests cannot exfiltrate tokens to arbitrary hosts.
10501d8 to
ae59938
Compare
|
@JSONbored I would like to contribute to this project, Could you review my PR? |
|
@JSONbored I implemented issue #2323 correctly. But I think your Gittensory Orb Review Agent has some problems. |
I warned you last night, please stop tagging me / asking for reviews - next time you do it, it's a +5 day wait to be reviewed and/or automatic closure. I already get notified to review this, I don't need to be reminded. |
Summary
Implements #2323 by adding a read-only GitHub Checks poller for
gittensory-miner. The poller resolves a PR head SHA, fetches check runs, normalizes CI state, and supports bounded exponential backoff without performing any GitHub writes.Related Issue
Closes: #2323
Change Type
Real Behavior Proof
pollCheckRuns(repoFullName, prNumber)inpackages/gittensory-miner/lib/ci-poller.jsGETrequestspending,success,failure, orneutralpendingfailuresleepFnValidation
npx vitest run test/unit/miner-ci-poller.test.tsnpm run build:minernpm run typechecknpm run test:unitnpm run test:cinpm audit --audit-level=moderateChecklist