Skip to main content
Connect GitHub to let Invariant work with your code, issues, and pull requests.

Features

  • List and search repositories
  • View and create issues
  • Review pull requests and analyze diffs
  • Read commit history and branch activity
  • Create and manage labels
  • Comment on issues and PRs
  • Generate release notes from merged PRs
  • Monitor repository activity

Setup

1

Go to Integrations

Open Integrations from the sidebar
2

Find GitHub

Locate GitHub in the list and click Connect
3

Authorize

Sign in to GitHub and authorize Invariant
4

Select repositories

Choose which repositories to grant access to

Supported Actions

ActionDescription
list_reposList your repositories
get_issuesFetch issues from a repository
create_issueCreate a new issue
get_pull_requestsList pull requests
get_pr_diffGet the diff for a pull request
create_pr_commentAdd a comment to a PR
get_commitsView commit history
search_codeSearch code across repositories

Examples

List open pull requests

Show my open pull requests

Review a PR

Review PR #42 in my-repo and identify potential issues

Daily commit summary

Every morning at 9am, summarize commits from yesterday across my repos

Generate release notes

Generate release notes from PRs merged since v1.2.0
Group by: features, fixes, improvements

Bug triage

Find issues labeled "bug" opened in the last 7 days
Categorize by severity and suggest priorities

Troubleshooting

Repository not appearing
  • Verify you granted access during OAuth
  • Go to GitHub Settings > Applications > Invariant and update repository access
“Permission denied” errors
  • Re-connect GitHub and ensure the repository is selected
  • Check that you have write access to the repository
Outdated data
  • Invariant fetches data in real-time; refresh the chat to retry

Best Practices

  • Use specific repository names: “my-org/my-repo” not just “my-repo”
  • Include PR numbers when reviewing: “Review PR #42” not “Review my latest PR”
  • For scheduled tasks, specify time ranges: “commits from yesterday” not “recent commits”