GitHub Bot
The Mastra GitHub bot receives GitHub webhook events and routes them through Code Assist workflows.
Supported Event Inputs
The dispatcher handles:
issue_openedissue_labeledissue_comment_createdpr_comment_createdpr_review_comment_createdpr_review_submittedpr_checks_completedpull_request_closedpromotion_workflow_completed
Labels
The bot manages these labels:
| Label | Meaning |
|---|---|
planning | Code Assist is preparing a plan. |
needs-answer | The planner needs clarification. |
plan-ready | The final implementation plan is posted. |
plan-error | Planning failed. |
implementation-ready | Trusted actor approved implementation. |
auto-merge-when-green | Bot may auto-merge after checks pass. |
implementing | Implementation is active. |
implementation-blocked | Bot stopped for human review. |
pr-open | Draft PR is open. |
Trust Model
Implementation starts only from trusted actors or approved autonomy policy. The service checks collaborator permission and ignores generated bot comments to avoid self-trigger loops.
PR Follow-Up Sources
The PR follow-up workflow can be triggered by:
- trusted PR comments;
- review comments;
- submitted reviews;
- failed check events;
- successful checks that may enable merge;
- PR close events;
- promotion workflow completion events.