GitHub Integration
Interact with Terragon directly from GitHub
Interact with Terragon directly from GitHub through app mentions, while Terragon handles PR creation and branch management automatically.
GitHub App Mentions
To mention @terragon-labs on GitHub, you must grant Terragon access to the repository you're tagging it in. You can do this in Settings, the repository selector in the prompt box, or in Environments.
How It Works
Mention @terragon-labs
in GitHub to create new Terragon tasks:
@terragon-labs can you fix the failing tests?
text @terragon-labs implement the feature described above
@terragon-labs this method could be optimized using memoization
What Happens
When you mention Terragon:
Terragon immediately reacts with a 👀 emoji to acknowledge your request
Terragon receives full context about the PR/issue and your comment
You'll see the task appear in Home
How Terragon Works with GitHub
Automatic PR Creation
When working on a task, Terragon:
Opens a pull request with:
- Comprehensive description
- Test plan checklist
- Co-author attribution to Terry
- Links to Terragon task
GitHub CLI Access
Every sandbox includes GitHub CLI, allowing Terragon to:
# View PR details and comments
gh pr view 123 --comments
# Check issue information
gh issue view 456
# Understand repository context
gh repo view
Working with Issues
Reference issues in your prompts:
Fix the authentication bug described in issue #234
Terragon will fetch issue details and link the PR appropriately.
Having issues with GitHub integration? See our Troubleshooting guide for solutions to common problems.
For information about security and permissions, see our dedicated Security & Permissions page.