GitHub Integration
'Connect GitHub to Supervity, authorize access, and use GitHub repositories, issues, pull requests, commits, branches, releases, Projects v2, and real-time triggers in operators and workflows.'
This guide explains how to connect GitHub to Supervity, what data is available after connection, how operators can use GitHub data and actions within workflows, and how to remove the integration when needed.
Overview
The Supervity GitHub integration allows your workspace to securely connect GitHub as a governed engineering and DevOps platform.
Once connected, operators and workflows can inspect repositories, manage issues and pull requests, explore commit trees and branches, update repository files, draft and publish releases, read and update GitHub Projects (v2) boards, and react instantaneously to code and collaboration events through real-time webhooks.
With the GitHub integration, Supervity can:
- Query public and private repositories across personal accounts and organizations
- Create, retrieve, update, and manage GitHub issues and comments
- List, inspect, open, update, and merge pull requests
- View git commits, branch lists, create feature branches, and delete branches
- Read file contents, commit updates (with base64 encoding), and delete files
- Create, edit, and publish GitHub releases and asset tags
- Query and update GitHub Projects (v2) items, status, and custom fields via GraphQL
- React to repository activity via real-time webhooks (push, pull request, issue opened, comment created)
- Prevent infinite automation loops through built-in webhook echo suppression
All GitHub access is governed through Supervity's security, permissions, and audit controls.
Why Use the GitHub Integration?
GitHub is the world's leading platform for software development and developer collaboration. Connecting GitHub to Supervity unlocks autonomous engineering workflows:
- Automated Pull Request Reviews: Trigger an AI operator when a pull request is opened to summarize changes, check guidelines, and comment on code.
- Incident & Bug Intake: Automatically convert customer error reports into well-documented GitHub issues with reproduction details and labels.
- Automated Release Preparation: Draft release notes and publish GitHub releases when milestone issues or PRs are completed.
- Project Board Synchronization: Keep GitHub Projects (v2) status and priority fields synchronized with product management tools like Jira or Linear.
- Code Generation & File Updates: Programmatically commit generated documentation, changelogs, or configuration files directly into branches.
- Branch Lifecycle Automation: Create feature branches automatically when work starts and clean up stale branches when pull requests merge.
Prerequisites
Before connecting GitHub, ensure you have:
- An active Supervity workspace
- A GitHub account with access to the target repositories
- Permission to authorize OAuth applications for your user and organization
- For organization-owned repositories: approval from an organization owner if third-party application access restrictions are enabled
- If your organization enforces SAML Single Sign-On (SSO): authorized SSO access for the Supervity OAuth application
Adding the GitHub Integration
Follow these steps to connect GitHub to Supervity. If you encounter any issues during setup, refer to the Troubleshooting section of this guide.
Step 1: Open Integrations
- Log in to Supervity.
- From the left navigation bar, click the Integrations icon.
This opens the Integrations page, displaying all available connectors.
Step 2: Select GitHub
- Locate GitHub in the available integrations list.
- Click Connect.
Step 3: Authorize Access
You will be redirected to GitHub's OAuth authorization portal.
- Review the requested permissions:
repo: Access to private and public repositoriesadmin:repo_hook: Manage webhooks for real-time triggersread:org: Read organization memberships for org repository discoveryproject: Access and update GitHub Projects (v2) boards
- If your account belongs to organizations with restricted access, click Grant or Request next to the relevant organizations.
- Click Authorize to connect your account.
- Supervity implements GitHub's standard OAuth 2.0 authorization protocol.
- Your GitHub password and personal access tokens are never shared with or stored by Supervity.
Step 4: Complete Connection
After authorization, you will be redirected back to Supervity automatically.
The GitHub integration will appear as Connected on the Integrations page. Your workspace can now interact with GitHub repositories according to the permissions granted.
Having trouble? See the Troubleshooting section for solutions to common connection issues.
How GitHub Works in Supervity
After connection, GitHub functions as a governed engineering tool.
Operators can invoke GitHub actions dynamically when asked to review code, file bugs, or update files, while workflows can automate continuous delivery and issue triage.
Common workflow patterns include:
- Listening for
github.issues.openedto analyze new bug reports and apply triaging labels - Responding to
github.pull_requestto run automated compliance checks - Generating changelog entries and committing them directly via
create_or_update_file - Updating the
PriorityorStatusfield of an item in GitHub Projects (v2) - Releasing a new semantic version with auto-generated release notes
Using GitHub in Operators
Connected GitHub capabilities become available to operators automatically. Operators evaluate user requests, determine whether GitHub repositories or project boards are needed, and execute operations safely.
What Operators Can Do with GitHub
- Repositories & Branches: Inspect repositories, list and checkout branches, and delete merged branches.
- Issues & Discussions: Search issues, file detailed bug reports, and add comments to ongoing threads.
- Pull Requests: Inspect diffs, create PRs from working branches, update PR bodies, and merge approved PRs.
- File Management: Retrieve raw file contents, create files, or modify existing files with git commit messages.
- Releases: Create and update GitHub releases with release notes.
- Projects v2: Inspect project board items and update custom fields (Status, Priority, Iteration).
Typical Operator Use Cases
| Use Case | Example Workflow |
|---|---|
| Automated PR Review | Summarize incoming PR diffs and post review comments |
| Bug Report Triage | Label newly opened issues based on content analysis |
| Release Note Generation | Compile merged PRs into a published GitHub Release |
| Project Board Tracking | Move issues to "Done" in GitHub Projects v2 upon PR merge |
| Config File Maintenance | Update configuration files directly in repository branches |
| Branch Management | Automatically delete feature branches after PR merge |
Features & Prerequisites
For each GitHub capability available in Supervity, the following describes the use case and the prerequisites required before use.
List Repositories
Use Case: List repositories accessible to the user (includes private
repositories when repo scope is granted).
Prerequisites:
- GitHub account connected to Supervity
- Read repository permissions enabled (
reposcope)
Get Repository
Use Case: Retrieve comprehensive repository details, default branch, clone URLs, and settings.
Prerequisites:
- GitHub account connected to Supervity
ownerandreponame (e.g.,octocat/Hello-World)
Create Repository
Use Case: Create a new repository in a personal account or organization.
Prerequisites:
- GitHub account connected to Supervity
- Repository name and visibility settings (
publicorprivate)
Update Repository
Use Case: Modify repository settings (description, default branch, issue features).
Prerequisites:
- GitHub account connected to Supervity
owner,reponame
Delete Repository
Use Case: Permanently delete a repository from GitHub.
Prerequisites:
- GitHub account connected to Supervity
owner,reponame- Repository admin rights and delete repository permission (
delete_reposcope)
List Issues
Use Case: Query issues for a repository, filtering by state (open,
closed), labels, or milestone.
Prerequisites:
- GitHub account connected to Supervity
ownerandreponame
Get Issue
Use Case: Retrieve details of a specific issue by issue number.
Prerequisites:
- GitHub account connected to Supervity
owner,reponame, andissue_number
Create Issue
Use Case: Create a new issue with title, body, labels, and assignees. Includes automated loop prevention.
Prerequisites:
- GitHub account connected to Supervity
owner,repo, title, and optional body/labels
Update Issue
Use Case: Modify an issue's title, body, state (open or closed), labels,
or assignees.
Prerequisites:
- GitHub account connected to Supervity
owner,repo, andissue_number
List Pull Requests
Use Case: List pull requests with filters for state (open, closed,
all), base branch, or sort order.
Prerequisites:
- GitHub account connected to Supervity
ownerandreponame
Get Pull Request
Use Case: Retrieve details for a pull request, including head/base branches, mergeable state, and changed files.
Prerequisites:
- GitHub account connected to Supervity
owner,repo, andpull_number
Create Pull Request
Use Case: Open a new pull request from a source branch into a target base branch.
Prerequisites:
- GitHub account connected to Supervity
owner,repo,head(source branch),base(target branch), and title
Update Pull Request
Use Case: Update PR title, description, or target base branch.
Prerequisites:
- GitHub account connected to Supervity
owner,repo, andpull_number
Merge Pull Request
Use Case: Merge a pull request using merge, squash, or rebase.
Prerequisites:
- GitHub account connected to Supervity
owner,repo, andpull_number- Write and merge permissions on the repository
List Commits
Use Case: Query commit history on a repository branch or path.
Prerequisites:
- GitHub account connected to Supervity
ownerandreponame
Get Commit
Use Case: Retrieve details, diff stats, and commit message for a specific commit SHA.
Prerequisites:
- GitHub account connected to Supervity
owner,repo, andcommit_sha
List Branches
Use Case: List all branches in a repository.
Prerequisites:
- GitHub account connected to Supervity
ownerandreponame
Get Branch
Use Case: Retrieve metadata, protection rules, and head commit for a branch.
Prerequisites:
- GitHub account connected to Supervity
owner,repo, andbranchname
Create Branch
Use Case: Create a new branch pointing to an existing commit SHA or branch.
Prerequisites:
- GitHub account connected to Supervity
owner,repo,branchname, andsha
Delete Branch
Use Case: Delete a feature branch after merge (cannot delete default branch).
Prerequisites:
- GitHub account connected to Supervity
owner,repo, andbranchname
List Issue Comments
Use Case: Retrieve comments on an issue or pull request.
Prerequisites:
- GitHub account connected to Supervity
owner,repo, andissue_number
Create Issue Comment
Use Case: Post a comment on an issue or PR with markdown formatting. Suppresses webhook echo loops.
Prerequisites:
- GitHub account connected to Supervity
owner,repo,issue_number, andbody
Update Issue Comment
Use Case: Modify an existing comment.
Prerequisites:
- GitHub account connected to Supervity
owner,repo,comment_id, andbody
Delete Issue Comment
Use Case: Delete an issue comment.
Prerequisites:
- GitHub account connected to Supervity
owner,repo, andcomment_id
Get File Content
Use Case: Retrieve the content of a file in a repository at a specific branch or path.
Prerequisites:
- GitHub account connected to Supervity
owner,repo, andpath
Create or Update File
Use Case: Create or replace a file in a repository branch. Content must be base64 encoded. Includes commit loop suppression.
Prerequisites:
- GitHub account connected to Supervity
owner,repo,path,message,content(base64), and existingshawhen updating
Delete File
Use Case: Remove a file from a repository branch with a commit message.
Prerequisites:
- GitHub account connected to Supervity
owner,repo,path,message, andsha
List Releases
Use Case: List published releases and tags for a repository.
Prerequisites:
- GitHub account connected to Supervity
ownerandreponame
Get Release
Use Case: Retrieve release details, release notes, and assets.
Prerequisites:
- GitHub account connected to Supervity
owner,repo, andrelease_id
Create Release
Use Case: Publish a new release with tag name, title, body, and draft status.
Prerequisites:
- GitHub account connected to Supervity
owner,repo, andtag_name
Update Release
Use Case: Update release notes or published status.
Prerequisites:
- GitHub account connected to Supervity
owner,repo, andrelease_id
Delete Release
Use Case: Delete a release from a repository.
Prerequisites:
- GitHub account connected to Supervity
owner,repo, andrelease_id
List Project Items
Use Case: Retrieve items on a GitHub Project (v2) board, including custom
fields like Priority and Status.
Prerequisites:
- GitHub account connected to Supervity
- Project Node ID must be provided
- Projects permission enabled (
projectscope)
Add Project Item
Use Case: Add an existing issue or pull request into a GitHub Project (v2) board.
Prerequisites:
- GitHub account connected to Supervity
- Project Node ID and Issue/PR Node ID (GraphQL ID, not number)
- Projects permission enabled (
projectscope)
Update Project Item Field
Use Case: Update custom fields (single-select values like Status/Priority, text, dates, numbers) on a project item.
Prerequisites:
- GitHub account connected to Supervity
- Project Node ID, Item Node ID, Field Node ID, and Option ID
- Projects permission enabled (
projectscope)
Get Authenticated User
Use Case: Retrieve profile data for the connected GitHub account.
Prerequisites:
- GitHub account connected to Supervity
- User profile permissions enabled (
userscope)
Get User
Use Case: Retrieve public profile details for any GitHub user by login.
Prerequisites:
- GitHub account connected to Supervity
- Target GitHub username
Real-Time Webhook Triggers
Supervity provides real-time event triggers for GitHub repositories:
| Trigger Name | Catalog Key | Description |
|---|---|---|
| Code pushed | github.push | Fires when commits are pushed to any branch in the repository. |
| Pull request activity | github.pull_request | Triggers when a PR is opened, closed, reopened, or synchronized. |
| Issue opened | github.issues.opened | Fires immediately when a new issue is opened in the repository. |
| Issue comment created | github.issue_comment.created | Triggers when a new comment is posted on an issue or pull request. |
Automated Echo Suppression
When Supervity operators create issues, post comments, push commits, or open
pull requests, the system marks the resulting IDs internally
(mark_sent_by_workflow). Inbound webhook notifications matching these IDs are
dropped automatically to prevent recursive automation loops.
Permissions Requested
Supervity only requests the permissions required for enabled GitHub capabilities.
Depending on the features used in your workspace, permissions may include:
| Permission Type | Purpose |
|---|---|
| User Profile | Associate GitHub data with authorized user accounts and verify identity |
| Repository Access | Inspect repositories, commits, branches, and read file contents |
| Issue & Pull Request Management | Create, update, and manage issues, pull requests, and discussion comments |
| Code & File Management | Commit updates, add files, and manage repository assets |
| Webhook Administration | Register and manage repository webhooks for real-time workflow triggers |
| Organization Membership | Discover organization repositories and team structures |
| Projects & Boards | Read and update GitHub Projects (v2) items, status, and custom fields |
Supervity follows least-privilege principles and only accesses data necessary to provide requested functionality.
Authentication & Security
GitHub integration adheres to strict enterprise security practices:
- OAuth 2.0: Direct authentication via official GitHub OAuth apps.
- Token Security: Tokens are encrypted at rest using AES-256-GCM.
- TLS 1.3: All communication with GitHub REST and GraphQL APIs uses TLS 1.3.
- SAML SSO Support: Fully compatible with enterprise organizations enforcing SAML single sign-on.
- Audit Logs: Every commit, merge, issue creation, and webhook event is logged with full operator context in Supervity.
Troubleshooting
Private Repositories Not Showing
- Cause: The OAuth token was authorized without the
reposcope or organization access was restricted. - Resolution: Disconnect and reconnect GitHub in Supervity, ensuring that
the
reposcope is approved and that access is granted for the relevant organization.
Organization SAML SSO Prompt
- Cause: The organization requires authorized SSO for third-party apps.
- Resolution: In GitHub, visit Settings > Applications > Authorized OAuth Apps, find Supervity, and click Grant or Enable SSO next to your organization.
INSUFFICIENT_SCOPES on GitHub Projects (v2)
- Cause: Existing tokens connected prior to Projects v2 support may lack the
projectscope. - Resolution: Disconnect GitHub from the Supervity Integrations page and
reconnect to grant the
projectscope.
Frequently Asked Questions
Q: Can Supervity access repositories across multiple GitHub organizations?
Yes, as long as your connected GitHub user account has membership and
permissions in those organizations and organization owners have approved the
OAuth app.
Q: Can Supervity commit binary files to repositories?
Yes. When using create_or_update_file, the content parameter accepts standard
base64-encoded strings, allowing binary files, images, or compiled artifacts to
be committed.
Q: Does Supervity work with GitHub Enterprise Server?
The standard connector integrates with GitHub Cloud (github.com). Contact
support for dedicated GitHub Enterprise Server configurations.
Support
If you need assistance with the GitHub integration, visit the Support page.
Support Hours
- Monday to Friday, 9:00 AM – 6:00 PM IST
- Requests submitted outside business hours will be addressed on the next business day
First Response SLA
- All support requests receive an initial response within 24 business hours
Contact Information
| Contact Type | Details |
|---|---|
| Support | Support & Contact |
| Sales Inquiries | [email protected] |
| Contact Form | https://www.supervity.ai/contact-us |
| Website | https://www.supervity.ai |
| Privacy Policy | https://supervity.ai/privacy-policy |
| Terms of Service | https://www.supervity.ai/terms-of-service |
| Acceptable Use Policy | https://supervity.ai/acceptable-use-policy |
When Contacting Support, Please Provide
- Workspace name
- GitHub account username/email used for authorization
- Repository name (owner/repo)
- Relevant workflow or operator information
- Error messages or screenshots when available
This helps the support team investigate and resolve issues more quickly.