GitHub Integration
OpenCode provides GitHub integration for repository automation and CI/CD workflows.
GitHub Agent
The GitHub agent automates repository tasks through GitHub Actions.
Installation
opencode github installThis sets up a GitHub Actions workflow for your repository.
Running the Agent
opencode github run --token YOUR_GITHUB_TOKENFlags:
--event: Mock GitHub event--token: GitHub personal access token
Usage
Once installed, the GitHub agent can:
- Respond to issues
- Review pull requests
- Automate code changes
- Generate documentation
Configuration
Configure GitHub-specific settings in your opencode.json or through environment variables.