Skip to main content

GitHub

Bee Flow connects to GitHub via OAuth or a personal access token.

Setup (OAuth)

  1. Settings → Developer settings → OAuth Apps → New OAuth App at https://github.com/settings/developers.
  2. Authorisation callback URL: https://your-host/auth/github/callback.
  3. Set environment:
    OAUTH_GITHUB_CLIENT_ID=...
    OAUTH_GITHUB_CLIENT_SECRET=...
  4. Restart server.

OAuth scopes requested by default: repo, read:user, read:org. For private-repo write operations, repo is the minimum.

Setup (PAT — alternative)

For users in orgs where OAuth apps are restricted, the user can paste a fine-grained personal access token in Settings → Account → Integrations → GitHub → Token. The token is AES-encrypted at rest.

Tools

ToolPurpose
github_list_reposList repos the user has access to.
github_search_codeCode search across visible repos.
github_get_fileRead a file by owner/repo/path@ref.
github_list_issuesList issues.
github_get_issueRead one issue + comments.
github_create_issueOpen an issue.
github_comment_issueComment.
github_list_pullsList PRs.
github_get_pullRead a PR + reviews.
github_create_pullOpen a PR (requires repo scope).
github_list_commitsCommit history with optional path filter.
github_get_commitOne commit, diff included.

Use cases

  • "Find all open issues mentioning regression in Bee-Flow/beeflow."
  • "Summarise the last 5 PRs merged to main."
  • "Open an issue titled 'Docs: clarify license refresh' with a description from this conversation."
  • (Automation) On a Talk message containing bug:, open a GitHub issue.

Rate limits

GitHub's standard 5000 requests/hour applies to the whole org's traffic through the OAuth app. For high-volume automations, use a GitHub App instead of OAuth — the limits are per-installation.

Privacy

Code snippets pulled by github_get_file and search results flow through the Privacy Shield. Custom regex categories (e.g. project codenames, secrets that lint-tools missed) are particularly useful here.

Common errors

ErrorCauseFix
403 Resource not accessible by integrationToken / OAuth scope missing repoReconnect with repo scope.
404 Not Found on private repoUser isn't a collaboratorOrg owner adds them.
422 Validation Failed on issue createRequired field missingProvide title (mandatory).