feat(commands): shared PR-comment command-handler preamble helper - #3831
feat(commands): shared PR-comment command-handler preamble helper#3831jimcody1995 wants to merge 1 commit into
Conversation
Extract the shared PR-comment webhook guards (created action, non-bot author, repo/PR/installation/actor present) into a testable classifier mirroring classifyPlanCommandRequest, without wiring handlers yet. Fixes JSONbored#2161 Co-authored-by: Cursor <cursoragent@cursor.com>
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3831 +/- ##
=======================================
Coverage 93.41% 93.41%
=======================================
Files 326 327 +1
Lines 32855 32867 +12
Branches 12035 12042 +7
=======================================
+ Hits 30691 30703 +12
Misses 1530 1530
Partials 634 634
🚀 New features to boost your workflow:
|
|
Caution 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥 🛑 Gittensory review result - reject/close recommendedReview updated: 2026-07-06 13:46:36 UTC
🛑 Suggested Action - Reject/Close
Review summary Nits — 5 non-blocking
Why this is blocked
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.
|
|
Gittensory is closing this pull request on the maintainer's behalf (Linked issue overlaps another open PR; duplicate of another open PR). This is an automated maintenance action — to pursue this change, please open a new pull request with the issues resolved. Closed PRs may be analyzed later to improve review accuracy, but they are not automatically reopened or re-reviewed. |
Summary
classifyPrCommandRequest(payload, installationId)for PR-thread @gittensory command webhooks.maybeProcessGateOverrideCommand:unsupported_comment_action,bot_author,missing_repo_pr_installation_or_actor.Fixes #2161
Scope
processors.tsor existing handler changes.Validation
git diff --checknpx vitest run test/unit/classify-pr-command-request.test.ts— 4 passedConflict avoidance
New files only (
src/github/classify-pr-command-request.ts,test/unit/classify-pr-command-request.test.ts). Zero file overlap with open PRs #3826, #3829, #3823 — should merge cleanly after those land without rebase.Made with Cursor