fix(agent): restrict tracker suggestions to PR lifecycle actions - #3426
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-05 06:46:26 UTC
⏸️ Suggested Action - Manual Review Review summary Nits — 2 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 #3426 +/- ##
=======================================
Coverage 93.46% 93.46%
=======================================
Files 287 287
Lines 30763 30766 +3
Branches 11210 11212 +2
=======================================
+ Hits 28752 28755 +3
Misses 1355 1355
Partials 656 656
🚀 New features to boost your workflow:
|
Motivation
payload.pull_request, allowing review/comment webhooks to trigger GitHub API work and token usage.Description
opened,edited,reopened,synchronize) and ashouldSuggestProjectTrackerForWebhookguard tosrc/integrations/project-tracker-adapter.ts.eventNameandpayload.actionintomaybeSuggestMilestoneMatchForPrand short-circuit early when the webhook is not a targetedpull_requestlifecycle action insrc/queue/processors.ts.test/unit/project-tracker-adapter.test.tsthat assert review webhooks and non-matchingpull_requestactions do not perform network calls.Testing
npm run typecheck -- --pretty false, which succeeded.npx vitest run test/unit/project-tracker-adapter.test.ts, which passed (42 tests).npm run test:ci, but the run could not be completed here becausetest:coveragesurfaced unrelated/timeout failures intest/unit/backfill.test.tsand the job was terminated; the change is covered by targeted unit tests above.npm audit --audit-level=moderateattempted and returned a403 Forbiddenfrom the registry audit endpoint in this environment (audit not completed here).Codex Task