issue_comment trigger, anyone you allow can start a verification by commenting on a pull request:
Add the workflow
issue_comment runs on the default branch, and github.sha points there, not at the pull request. The ref: refs/pull/<number>/head checkout makes the runner build the pull request’s code. The action reads the pull request itself to decide what to verify.
You can add the issue_comment trigger to your existing workflow instead of a separate file. In that case, combine the condition with your other events, as shown in Turning automatic verification off.
The command
- The command must be the first line of the comment that isn’t a quote. A comment that only mentions it, or a reply that quotes it, starts nothing.
- Options start with
--. Everything after the first word that isn’t an option is the instruction for the agent. It’s added to the verification likeverification_prompt. So/ironbee-verify fix the cart totalis an instruction, not a request to fix. - A multi-line comment works too: the whole body below the command line is the instruction.
- An unknown option gets a usage reply on the pull request, and the run ends red instead of verifying something other than what was asked.
verification_command and change the startsWith condition to match.
Fixes from a comment
--fix asks the run to fix what it finds and commit the fix to the pull request branch.
- It needs an Anthropic credential.
- It is bounded by
verification_apply_fix: a repository that turned fixing off can’t turn it back on from a comment. - Without
--fix, a comment run only verifies and reports.
Following the run
A comment run doesn’t appear in the pull request’s checks, so the action reacts to the comment instead:- an eyes reaction when the run starts
- a thumbs up or thumbs down when it ends
Forks
Comment commands on pull requests from forks are refused. A comment run holds the base repository’s secrets, so building and starting a fork’s code under it would hand them to whoever opened the pull request.Comments only
To verify only when someone comments, and never automatically on pushes and pull requests, see Turning automatic verification off. Neither theif: nor verification_auto stops a comment command.
What’s next?
Running in CI
The other triggers and the report.
Configuration
verification_command, verification_auto and every other input.