Connect the integration
Connecting your GitHub account to Relevance AI is a straightforward process:- Go to the “Integrations” page in the sidebar of your Relevance AI dashboard.
- Click on “GitHub” from the available integrations.
- Click on the “Add Integration” button.
- In the pop-up window, sign into your GitHub account.
- Grant the necessary permissions for Relevance AI to access your GitHub repositories.
- Once authenticated, your GitHub account will appear as a connected integration.
Triggers for GitHub
The GitHub integration allows you to set up triggers that automatically activate your AI agents when specific events occur in your repositories. Most GitHub triggers are instant (webhook-based), meaning your agents respond in real-time as soon as events happen — whether it’s a new issue being opened, a pull request being merged, or a workflow run completing. This enables event-driven automation that keeps your development workflows moving without manual intervention. The following trigger options are available, organized by category:Repository events
Repository events
- New repository (Instant) — Triggers when a new repository is created in your account or organization. Useful for applying default settings, adding collaborators, or creating initial issues.
- New fork (Instant) — Triggers when someone forks your repository. Use this to track adoption, send welcome messages, or log fork activity.
- New star (Instant) — Triggers when a user stars your repository. Ideal for tracking growth milestones or sending thank-you notifications.
- New watcher (Instant) — Triggers when a user starts watching your repository for notifications.
- New tag (Instant) — Triggers when a new tag is pushed to a repository. Useful for initiating release workflows or changelog generation.
Issue & pull request events
Issue & pull request events
- New issue (Instant) — Triggers when a new issue is opened. Perfect for auto-labeling, assigning issues to the right team member, or sending acknowledgment replies.
- Updated issue (Instant) — Triggers when an issue is modified (title, body, labels, assignees, or status). Use this to sync issue state with external project management tools.
- New pull request (Instant) — Triggers when a pull request is opened or ready for review. Ideal for starting automated code review, running checks, or notifying reviewers.
- Updated pull request (Instant) — Triggers when a pull request is modified or changes state (e.g., converted to draft, marked ready, or closed).
- New comment (Instant) — Triggers when a comment is added to an issue or pull request. Useful for extracting action items, detecting questions, or routing feedback.
- New label on issue (Instant) — Triggers when a label is applied to an issue. Use this to route issues into category-specific workflows.
- New review request (Instant) — Triggers when a reviewer is requested on a pull request. Useful for notifying reviewers or starting pre-review automation.
- New pull request review (Instant) — Triggers when a review is submitted on a pull request (approved, changes requested, or commented).
Commit & branch events
Commit & branch events
- New commit (Instant) — Triggers when a new commit is pushed to any branch. Use this to run linting, update changelogs, or notify downstream systems.
- New push (Instant) — Triggers on any push to a repository, including multiple commits. Useful for triggering CI/CD steps or deployment checks.
- New branch (Instant) — Triggers when a new branch is created. Ideal for setting up branch-specific configurations or notifying the team.
Workflow events
Workflow events
- Workflow run completed (Instant) — Triggers when a GitHub Actions workflow run finishes, whether it succeeded, failed, or was cancelled. Use this to send alerts on failure or trigger post-deployment steps.
- Workflow job completed (Instant) — Triggers when an individual job within a workflow run completes. Useful for fine-grained monitoring of CI pipeline steps.
Collaboration events
Collaboration events
- New collaborator (Instant) — Triggers when a collaborator is added to a repository. Useful for onboarding automation or access auditing.
- New mention (Instant) — Triggers when your account is mentioned in an issue, pull request, or comment. Use this to route mentions to the right team or create follow-up tasks.
Project events
Project events
- Project item status changed (Instant) — Triggers when the status of an item in a GitHub Project (v2) changes. Use this to sync project state with external tools or notify stakeholders.
- New card in column (Instant) — Triggers when a card is added to a specific column in a classic GitHub Project board.
Other events
Other events
- New release (Instant) — Triggers when a new release is published. Ideal for triggering release announcement workflows or documentation updates.
- New gist (Instant) — Triggers when a new gist is created in your account. Use this to catalog or share snippets automatically.
- New discussion (Instant) — Triggers when a new discussion is opened in a repository. Useful for monitoring community activity or routing questions to support.
- New discussion comment (Instant) — Triggers when a comment is added to a discussion. Use this to detect follow-up questions or escalate unresolved topics.
Tool steps for GitHub
The GitHub integration provides a comprehensive set of actions that your agents can use to interact with your repositories and development workflows. These actions can be incorporated into your agent’s workflows as tool steps, enabling sophisticated development automation capabilities.Repository management
Create Repository
Get Repository Info
Get Repository Content
Star Repo
Branch & commit operations
Create Branch
Get Commit
List Commits
Create or Update File Contents
Issue management
Create Issue
Create Issue Comment
Update Issue
Get Issue Assignees
Search Issues and Pull Requests
Pull request operations
Create Pull Request
Get Reviewers
Update Project (V2) Item Status
Workflow automation
Create Workflow Dispatch
Enable Workflow
Disable Workflow
Get Workflow Run
List Workflow Runs
Gist management
Create Gist
Update Gist
List Gists for a User
Release management
List Releases
Use the integration’s API tool step (advanced)
In addition to the pre-built actions available in the tool directory, you can build custom tools that perform GitHub-specific activities using the GitHub API Call tool step.How to use the GitHub API Call tool step
Create a new tool
Add the GitHub API Call tool step
- Scroll down to Tool-steps
- Search for “GitHub API Call” in the tool step search bar
- Add the GitHub API Call tool step to your workflow
Configure the API endpoint
- Method: Select the HTTP method (GET, POST, PUT, DELETE, PATCH)
- Endpoint: Enter the API endpoint path (e.g.,
/repos/{owner}/{repo}/collaborators/{username}) - Body: Add any required request body data
Add the required header
Example: Managing repository collaborators
Here’s a practical example of using the GitHub API Call tool step to add a collaborator to a repository: API Endpoint:PUT /repos/{owner}/{repo}/collaborators/{username}
Configuration:
- Uses the PUT method to add or update a collaborator
- Specifies the repository owner, name, and collaborator username
- Includes the required
acceptheader - Sets the permission level to “push” (can also be “pull”, “triage”, “maintain”, or “admin”)
Common GitHub API endpoints
Here are some commonly used GitHub API endpoints you can use with the API Call tool step:Repository collaborators
Repository collaborators
- Check permissions:
GET /repos/{owner}/{repo}/collaborators/{username}/permission - Add collaborator:
PUT /repos/{owner}/{repo}/collaborators/{username} - Remove collaborator:
DELETE /repos/{owner}/{repo}/collaborators/{username}
Repository contents
Repository contents
- Get contents:
GET /repos/{owner}/{repo}/contents/{path} - Create/update file:
PUT /repos/{owner}/{repo}/contents/{path} - Delete file:
DELETE /repos/{owner}/{repo}/contents/{path}
Issues
Issues
- List issues:
GET /repos/{owner}/{repo}/issues - Get issue:
GET /repos/{owner}/{repo}/issues/{issue_number} - Create issue:
POST /repos/{owner}/{repo}/issues - Update issue:
PATCH /repos/{owner}/{repo}/issues/{issue_number}
Pull requests
Pull requests
- List PRs:
GET /repos/{owner}/{repo}/pulls - Get PR:
GET /repos/{owner}/{repo}/pulls/{pull_number} - Create PR:
POST /repos/{owner}/{repo}/pulls - Update PR:
PATCH /repos/{owner}/{repo}/pulls/{pull_number} - Merge PR:
PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge
Branches
Branches
- List branches:
GET /repos/{owner}/{repo}/branches - Get branch:
GET /repos/{owner}/{repo}/branches/{branch} - Create branch:
POST /repos/{owner}/{repo}/git/refs
Example use cases
Here are some ways you can use the GitHub integration with your agents:Auto-triage new issues with AI classification
Auto-triage new issues with AI classification
Automated pull request review
Automated pull request review
Workflow failure notifications
Workflow failure notifications
Automated code review assistant
Automated code review assistant
Release notes generator
Release notes generator
Repository maintenance agent
Repository maintenance agent
Onboarding automation
Onboarding automation
Documentation sync agent
Documentation sync agent
Security compliance monitor
Security compliance monitor
Workflow orchestrator
Workflow orchestrator
Frequently asked questions (FAQs)
What permissions does the GitHub integration require?
What permissions does the GitHub integration require?
Why am I getting 'Please enter a value for response_body field' error?
Why am I getting 'Please enter a value for response_body field' error?
accept: application/vnd.github+json header is missing from your GitHub API Call tool step. Make sure to add this header in the Headers section of your API call configuration.Solution: Add the following header to your API call:Can I restrict my agent to only access certain repositories?
Can I restrict my agent to only access certain repositories?
How do I authenticate with GitHub for API calls?
How do I authenticate with GitHub for API calls?
What's the difference between the pre-built GitHub tool steps and the API Call tool step?
What's the difference between the pre-built GitHub tool steps and the API Call tool step?
Can I use GitHub webhooks to trigger my agents?
Can I use GitHub webhooks to trigger my agents?
Are there rate limits for GitHub API calls?
Are there rate limits for GitHub API calls?
/rate_limit endpoint.Can I work with GitHub Enterprise?
Can I work with GitHub Enterprise?

