Skip to content

GitHub Integration

GitHub integration enables powerful features like repository cloning, pull request creation, and issue-triggered automations.

Cheffed uses two GitHub integration methods:

TypePurposeRequired For
OAuthUser authentication, personal reposBasic repo access
GitHub AppOrganization repos, webhooksAutomations, org access

OAuth connects your GitHub account to Cheffed.

  1. Go to Settings in the sidebar
  2. Find the GitHub section
  3. Click Connect GitHub
  4. Authorize Cheffed in the GitHub popup
  5. Return to Cheffed - your account is now connected

Cheffed requests these OAuth scopes:

ScopePurpose
repoRead/write access to repositories
read:userRead your GitHub profile
user:emailAccess your email address

With OAuth connected, you can:

  • Clone personal repositories into sessions
  • Create branches and commits
  • Push changes to your repos
  • Create pull requests

The GitHub App provides webhook integration for automations and access to organization repositories.

  1. Go to Settings in the sidebar
  2. Find GitHub App section
  3. Click Install GitHub App
  4. Select your organization or personal account
  5. Choose which repositories to grant access
  6. Complete the installation

The Cheffed GitHub App requests:

PermissionAccessPurpose
Repository contentsRead & WriteClone, read files, push commits
IssuesRead & WriteRead issues, post comments
Pull requestsRead & WriteCreate PRs, read PR data
WebhooksWriteReceive events for automations

With the GitHub App installed:

  • Access organization repositories
  • Receive webhooks for automations
  • Post comments on issues and PRs
  • Create pull requests from sessions

During sessions, you can select from:

  1. Personal repositories (via OAuth)
  2. Organization repositories (via GitHub App)

Only repositories you have access to will appear.

When you connect a repository to a session:

  1. Repository is cloned into the session container
  2. Full git history is available
  3. Agent can read, modify, and commit files
  4. Default branch is checked out

Agents can:

  • Create new branches
  • Switch between branches
  • Commit changes
  • Push to remote (with your permissions)

Agents can create pull requests from session work:

Configure your agent to create PRs automatically:

After making changes, create a pull request with:
- Clear title describing the change
- Description explaining what was done
- Reference to related issues

Created PRs include:

  • Title - Descriptive summary
  • Body - Explanation of changes
  • Base branch - Target branch (usually main)
  • Head branch - Branch with changes
  • Reviewers - Optional reviewer assignment

Agents can access issue data:

  • Issue title and body
  • Labels and assignees
  • Comments and reactions
  • Related PRs

Agents can comment on issues:

  • Analysis findings
  • Status updates
  • Questions for clarification
  • Resolution summaries

GitHub events can trigger automations:

Automate on issue events:

  • New issue created
  • Issue labeled
  • Issue edited

Automate on PR events:

  • PR opened
  • New commits pushed
  • PR merged

See Event Triggers for configuration details.

ProblemSolution
Can’t connectClear browser cache, try again
Missing reposCheck repo visibility and permissions
Token expiredReconnect GitHub in Settings
ProblemSolution
App not installedComplete installation in GitHub
Missing org reposInstall app on the organization
Webhooks not firingCheck app installation permissions

If you see “Permission denied” errors:

  1. Verify OAuth is connected
  2. Check GitHub App is installed on the repo
  3. Confirm you have write access to the repository
  4. Try reconnecting OAuth
  • OAuth tokens are encrypted at rest
  • Tokens are only used for authorized actions
  • Tokens can be revoked at any time

To disconnect GitHub:

  1. Go to Settings
  2. Click Disconnect next to GitHub
  3. Optionally revoke access in GitHub settings

All GitHub actions are logged:

  • Repository clones
  • Commits and pushes
  • PR creation
  • Comments posted