Learn about integrating Gammacode into your development workflow with Gammacode GitHub ActionsGammacode GitHub Actions brings AI-powered automation to your GitHub workflow. With a simple
/gammacode
or /gc
mention in any PR or issue comment, Gammacode can analyze your code, create pull requests, implement features, and fix bugs - all while following your project’s standards.
Gammacode GitHub Actions is built on top of the Gammacode platform, which enables programmatic integration of Gammacode into your applications. You can use this to build custom automation workflows beyond GitHub Actions.
Why use Gammacode GitHub Actions?
- Instant PR creation: Describe what you need, and Gammacode creates a complete PR with all necessary changes
- Automated code implementation: Turn issues into working code with a single command
- Follows your standards: Gammacode respects your
AGENTS.md
guidelines and existing code patterns - Simple setup: Get started in minutes with our installer and API key
- Secure by default: Your code stays on GitHub’s runners
What can Gammacode do?
Gammacode provides a powerful GitHub Action that transforms how you work with code:Gammacode GitHub Action
This GitHub Action allows you to run Gammacode within your GitHub Actions workflows. You can use this to build any custom workflow on top of Gammacode. View repository →Setup
Quick setup
The easiest way to set up this action is through Gammacode in the terminal. Just open Gammacode and run:- Open the Gammacode GitHub app installation page
- Guide you through installing the app to your repository
- Automatically create the workflow file in
.github/workflows/gammacode.yml
- You must be a repository admin to install the GitHub app and add secrets
- The GitHub app will request read & write permissions for Contents, Issues, and Pull requests
- You’ll need to add your
GAMMACODE_API_KEY
to repository secrets after installation
Manual setup
If you prefer manual setup, follow these steps:-
Install the Gammacode GitHub app to your repository
The Gammacode GitHub app requires the following repository permissions:
- Contents: Read & write (to modify repository files)
- Issues: Read & write (to respond to issues)
- Pull requests: Read & write (to create PRs and push changes)
- Add GAMMACODE_API_KEY to your repository secrets (Learn how to use secrets in GitHub Actions)
-
Create the workflow file at
.github/workflows/gammacode.yml
:
After completing either the quickstart or manual setup, test the action by commenting
/gammacode
or /gc
in an issue or PR!How to use
Basic usage
Comment on any issue or pull request with/gammacode
or /gc
followed by your instructions:
Common use cases
Feature implementation:Configuration
Basic configuration
The action accepts the following parameters:Parameter | Description | Required | Default |
---|---|---|---|
api-key | Your Gammacode API key | Yes | - |
share | Whether to share session for debugging | No | false |
Advanced configuration
You can customize the workflow triggers and add additional parameters:AGENTS.md configuration
Create anAGENTS.md
file in your repository root to define:
- Code style guidelines
- Review criteria
- Project-specific rules
- Preferred patterns and frameworks
AGENTS.md
:
Best practices
Security considerations
Never commit API keys directly to your repository!
- Use GitHub Secrets: Always store your
GAMMACODE_API_KEY
as a repository secret - Limit permissions: Grant only necessary permissions to the GitHub app
- Review suggestions: Always review Gammacode’s suggestions before merging
- Monitor usage: Keep track of API usage and costs
Performance optimization
- Use specific commands: Be specific in your
/gammacode
requests to reduce processing time - Set timeouts: Configure appropriate timeouts for your workflows
- Limit scope: Focus on specific files or components when possible
Cost management
When using Gammacode GitHub Actions, be aware of the associated costs: GitHub Actions costs:- Gammacode runs on GitHub-hosted runners, which consume your GitHub Actions minutes
- See GitHub’s billing documentation
- Each Gammacode interaction consumes API tokens based on the length of prompts and responses
- Token usage varies by task complexity and codebase size
- Use specific commands to reduce unnecessary API calls
- Set appropriate timeouts to avoid runaway jobs
- Use GitHub’s concurrency controls to limit parallel runs
- Monitor your API usage regularly
Examples
Feature development workflow
-
Create an issue describing the feature:
-
Comment on the issue:
-
Gammacode will:
- Analyze your existing codebase
- Create the necessary components
- Add proper TypeScript types
- Include basic tests
- Create a pull request with all changes
Bug fix workflow
-
Report a bug in an issue:
-
Ask Gammacode to investigate:
-
Gammacode will:
- Examine the upload functionality
- Identify the root cause
- Implement a fix
- Add appropriate error handling
- Create a pull request with the solution
Code review workflow
- Create a pull request with your changes
-
Request a review:
-
Gammacode will:
- Analyze all changed files
- Check for security vulnerabilities
- Identify performance bottlenecks
- Suggest improvements
- Add review comments to specific lines
Troubleshooting
Gammacode not responding to commands
Check these common issues:- Workflow file: Ensure
.github/workflows/gammacode.yml
exists and is correctly configured - API key: Verify
GAMMACODE_API_KEY
is set in repository secrets - Permissions: Confirm the GitHub app has necessary permissions
- Syntax: Use
/gammacode
or/gc
(not@gammacode
) - Workflow triggers: Check that your trigger conditions match the comment event
Action failing with errors
Common solutions:- Check workflow logs in the Actions tab of your repository
- Verify API key is valid and not expired
- Check rate limits - you may be hitting API limits
- Review permissions - ensure the workflow has required permissions
- Update action version - make sure you’re using the latest version
Session sharing for debugging
Enable session sharing to debug issues:Advanced usage
Custom triggers
You can configure custom triggers for different scenarios:Multiple workflows
Create separate workflows for different purposes: Code Review Workflow (.github/workflows/gammacode-review.yml
):
.github/workflows/gammacode-features.yml
):
Migration from other tools
If you’re migrating from other AI coding tools, Gammacode offers:- Better context understanding: Analyzes your entire repository structure
- Project-aware responses: Follows your
AGENTS.md
guidelines - Seamless GitHub integration: Native PR and issue handling
- Flexible triggers: Multiple ways to invoke Gammacode