@kody/bugbot
Trigger Cursor Bugbot on a PR as the Cursor-linked GitHub account. Never comment bugbot run as a bot.
Files
@kody/bugbot
Intent
Trigger Cursor Bugbot on a pull request as the GitHub account linked to your Cursor account, never as a bot.
Comments of bugbot run from a bot identity (for example kody-bot) are skipped by Cursor. This package posts the trigger comment through the github credential slot, after checking that the credential belongs to the cursorLogin you pass. Call it instead of commenting yourself.
Success is a top-level PR comment bugbot run (or bugbot run verbose=true) authored by cursorLogin.
PR author must be cursorLogin. Cursor Bugbot ties the run to the GitHub account linked to the Cursor account that posts the trigger, so it only runs when the PR author is that same account. For PRs authored by Devin or another bot, the package returns { posted: false, code: 'github_account_mismatch' } and does not post a comment that would never produce a review.
Prerequisites / setup
- Map this package's
githubcredential slot (from@kody/github) to a GitHub credential for the Cursor-linked account, not a bot. - Agents: import paths and the dry-run smoke check are in
AGENTS.md.
Done when
dryRun: trueresolves the identity and the PR without posting- A live call posts a top-level
bugbot runcomment ascursorLoginwhen the PR author iscursorLogin - Other PR authors return
posted: falseandcode: 'github_account_mismatch'without posting - A bot
cursorLogin, or a credential for a different login, is refused before any request that writes