Skip to main content
GitHub Logo
GitHub

Code repository and version control

✅ Ready📖 Documentation Available

Overview

GitHub is a platform for hosting code, tracking work, and reviewing changes. The connector brings your repositories, issues, pull requests, and source code into PipesHub so you can search across all of them in one place.

GitHub Data Structure

PipesHub mirrors how GitHub organizes your content:
Splitting each repository into three sections lets permissions and search results apply to the right part of a repo rather than all of it at once.

What Gets Synced

Each connector instance syncs one repository, chosen in the Repository filter. To sync more repositories, add another connector instance for each one. For that repository, the connector indexes the following content for AI-powered search:
  • Repository: The selected repository, and the organization that owns it
  • Code Files: Source files and folders on the branch chosen in the Branch filter, or the repository’s default branch when no branch is chosen
  • Issues: Title, description, status, labels, and assignee
  • Pull Requests: Description, commits, changed files with diffs, and review comments
  • Comments: Full comment threads on issues and pull requests with author information
  • Attachments: Files and images attached to issues, pull requests, and comments
  • Users: Organization members and outside collaborators
  • Permissions: Repository access controls are preserved
The connector works with github.com, including GitHub Enterprise Cloud. GitHub Enterprise Server (self-hosted GitHub) is not supported.

Choose a connector

PipesHub has two GitHub connectors, shown in the connector catalog as GitHub Teams and Github. This page covers both; the steps are the same unless a section says otherwise.

Team connector: GitHub Teams

Workspace settings → Connectors

Set up GitHub Teams: first page of the configuration panelSet up GitHub Teams: first page of the configuration panel

Personal connector: Github

Workspace settings → Personal → Your connectors

Set up Github: first page of the configuration panelSet up Github: first page of the configuration panel
GitHub allows only one callback URL per OAuth App, so GitHub Teams and the personal Github connector each need their own OAuth App.

Configuration Guide

Authentication Method

GitHub Teams offers two authentication methods. Pick one from the Authentication method dropdown on the Authenticate tab:The personal Github connector supports the OAuth App method only.
An OAuth App provides secure, token-based access without requiring users to share their passwords.

Prerequisite: Email Visibility

This prerequisite applies to GitHub Teams only. The personal Github connector syncs no GitHub users, so it needs no email setup.
PipesHub matches GitHub users to PipesHub accounts by email address. A user whose email cannot be read receives no permissions and will not see any synced records.
GitHub lets people keep their email address private, so you must make emails readable one of two ways. Pick whichever fits your organization — you only need one.
The email must match the user’s PipesHub account email, and must not be a @users.noreply.github.com address — that is GitHub’s privacy placeholder, not a real deliverable address. A mismatched or placeholder email means the user sees no records.
Nothing breaks for a user whose email cannot be read — they simply receive no permissions. As soon as their email becomes readable, the next sync grants their access automatically.

Generating Client ID and Secret

Step 1: Access GitHub Developer Settings

  1. Navigate to the Developer Console:
    Go to settings/developers and sign in with your GitHub account.
  2. View Your Apps: You’ll see the “OAuth apps” page where you can create and manage OAuth 2.0 apps.
GitHub OAuth Apps

Step 2: Create a New OAuth App

  1. Click the “New OAuth App” button in the top right corner
  2. Fill in the application details:
    • Application Name: Enter a meaningful name (e.g., “PipesHub GitHub Connector”)
    • Homepage URL: Enter PipesHub Homepage URL (e.g., “http://localhost:3000”)
    • Application description: Description about app (Optional)
    • Authorization callback URL:
      • You need to enter the redirect URI provided by PipesHub
      • To get this URL, open PipesHub in another tab, navigate to PipesHub (bottom left corner) → Workspace settings → Connectors, find the GitHub Teams connector, and click “Set up” (for the personal connector, go to Workspace settings → Personal → Your connectors and find Github)
        GitHub OAuth App allows only one callback URL, so GitHub Teams and the personal Github connector each need their own OAuth App.
      • Copy the Redirect/Callback URL shown in the configuration dialog. It ends in connectors/oauth/callback/Github%20Teams for GitHub Teams, or connectors/oauth/callback/Github for the personal Github connector:
    Set up GitHub Teams drawer with the Redirect/Callback URL just copiedSet up GitHub Teams drawer with the Redirect/Callback URL just copied
  3. Click “Register Application” to proceed

Step 3: Get OAuth Credentials

  1. Copy the following credentials:
    • Client ID: Your app’s unique identifier
    • Secret: Your app’s client secret (click “Generate a new client secret”)
OAuth Credentials
Store the Client ID and Client Secret securely. The secret can be regenerated if needed, but you’ll need to update your PipesHub configuration with the new value.

Step 4: Configure Connector in PipesHub

  1. Return to the PipesHub GitHub configuration dialog (if you closed it, navigate to PipesHub (bottom left corner) → Workspace settings → Connectors, find the GitHub Teams connector, and click Set up)
  2. With OAuth, the configuration dialog has three tabs (a personal access token skips Authorize):
    • Authenticate - Enter an instance name and your credentials
    • Authorize - Sign in to GitHub and grant access
    • Configure records - Configure synchronization
  3. Enter an Instance name for this connector instance (required). Because each instance syncs one repository, a name that includes the repository makes instances easy to tell apart
  4. If an Authentication method dropdown is shown, choose OAuth 2.0
  5. Verify the Redirect/Callback URL displayed matches the callback URL you configured in GitHub Developer Settings (Step 2)
  6. Enter your OAuth 2.0 credentials:
    • Application (Client) ID: From previous step
    • Client Secret: From previous step
Enter OAuth Credentials in PipesHubEnter OAuth Credentials in PipesHub
  1. Click “Next” to move forward

Step 5: Authorize the Connection

  1. On the Authorize tab, click Authenticate GitHub Teams to proceed
  2. You’ll be redirected to GitHub’s authorization page
GitHub sign-in redirect
  1. Enter GitHub login credentials and click Sign In
  2. User will be shown the set of permissions needed, click Authorize to grant permissions
GitHub permissions page
GitHub Teams requests these scopes:The personal Github connector requests read:user and repo.
For GitHub Teams, authorize with an account that is an organization owner. A member-level account can only see the repositories it collaborates on, and cannot read the verified-domain emails used to resolve the rest of the organization.The authorizing account also needs at least Write access on every private repository you sync, because GitHub only lists a repository’s collaborators to accounts with write access or above. Without it, a private repository is skipped. Public and internal repositories still sync, with access based on their visibility only.
Organizations with OAuth app access restrictions. GitHub turns these restrictions on by default for new organizations. If yours has them, an organization owner must approve the OAuth App for the organization, either from the authorization page or later in the organization’s settings. Until then, the connector can’t read the organization’s private data.Organizations that use SAML single sign-on. Have an active SSO session for the organization when you click Authorize. If SSO is turned on later, re-authorize the connector.
repo is GitHub’s narrowest scope that covers private repository contents — it is not separable into read-only. PipesHub only ever reads; it never writes to your repositories.
  1. You’ll be redirected back to PipesHub with a success message
  2. The connector status will update to show “Connected — you can continue to Configure records”
GitHub OAuth completed

Using a personal access token

GitHub Teams can authenticate with a personal access token instead of an OAuth App. If you use a token, skip Steps 1–5 and do this instead:
  1. On GitHub, create a classic personal access token (Settings → Developer settings → Personal access tokens) with the repo, read:org, and user:email scopes
  2. Create it from an organization owner account, for the same reasons given in Step 5: the verified-domain emails and Write access to private repositories still apply
  3. If your organization uses SAML single sign-on, authorize the token for that organization
  4. In PipesHub, open Workspace settings → Connectors, find GitHub Teams, and click Set up
  5. Enter an Instance name, and under Authentication method choose API Token
  6. Paste the token into Personal Access Token
  7. Continue with Step 6 below
We recommend a classic token because it uses the same scopes as the OAuth App. Organizations can set policies for personal access tokens, such as requiring an owner to approve a token or blocking classic tokens. Check your organization’s policy before you create one.
If the token expires or is revoked, the connector stops syncing. Create a new token and update it in the connector’s Authenticate tab.

Step 6: Enable and Configure the Connector

  1. After successful authorization, click Continue to configuration → to open the Configure records tab
  2. A configuration dialog will appear with a section:
    • Sync Settings - Configure synchronization strategy and schedule
GitHub Teams Configure records tab with Sync strategy and Sync intervalGitHub Teams Configure records tab with Sync strategy and Sync interval

Sync Settings

Configure your synchronization preferences:
  1. Sync Strategy: Choose between “Scheduled” or “Manual”
  2. Sync Interval: Choose how often to sync (default: 60 minutes)
Scheduled sync runs automatically at the specified intervals, keeping your data up-to-date without manual intervention. Manual sync requires you to trigger synchronization on-demand.

Sync Filters

Sync filters control what the connector fetches from GitHub. Anything excluded here is never retrieved, so narrowing scope also shortens sync time.
GitHub Teams sync filters with the Add filter menu openGitHub Teams sync filters with the Add filter menu open
Github Organizations, Repository, and Branch are live pickers — start typing and PipesHub searches GitHub for matches. You can’t save the configuration until exactly one repository is selected in Repository.If the chosen branch no longer exists, code sync for the repository stops and the existing code records are kept; the connector does not fall back to the default branch. Changing the branch re-walks the whole repository on the next sync.The date filter applies to issues and pull requests only. Code files always reflect the current state of the synced branch.

Indexing Filters

Indexing filters control what gets indexed for search from the content that was fetched.A file counts as a test file when it sits under a folder such as test/, tests/, spec/, __tests__/, __mocks__/, e2e/, testdata/, or fixtures/ (any capitalization), or when its name follows a test convention such as test_*.py, *_test.go, *.test.ts, *.spec.js, *Test.java, *_spec.rb, or conftest.py.
GitHub Teams Exclude Paths filter and indexing filters: Index Issues, Index Pull Requests, Index Code Files and Index Test FilesGitHub Teams Exclude Paths filter and indexing filters: Index Issues, Index Pull Requests, Index Code Files and Index Test Files
Turning Index Code Files off is the usual choice for large monorepos where you only want issue and pull-request context. The files are still synced and stay findable by name and path — only their contents are left unindexed.

Save and Activate

  1. Click “Save configuration” to save your configuration.
  2. A dialog shows “Instance is configured and ready to sync!”. Choose Start syncing now, or I’ll do it later to start the sync from settings later
  3. The connector will verify credentials and begin initial synchronization
  4. Click the arrow on the connector card and check Records status to track sync completion

Supported Features

The GitHub connector syncs the following data from the repository selected in the Repository filter (one repository per connector instance):
  • Organizations & Repositories: The selected repository and the organization that owns it
  • Code repository: Files and folders on the synced branch (the default branch unless you choose another in the Branch filter), with language detection and full-text indexing of file contents
  • Issues: Full issue content including description, status, comments
  • Pull Requests: Full pull request content including description, merge status, commit history, review comments, comments and file changes
  • Comments: All comments on issues and pull requests with author information
  • Attachments: Files attached to issues, pull requests (images, documents, etc.)
  • Users & memberships: Organization members and outside collaborators with their repository roles, used to apply permissions

Troubleshooting

Common Issues

Invalid client credentials error:
  • Verify Client ID and Client Secret are correct
  • Ensure you copied the full values without extra spaces
  • Check that the OAuth app is active in GitHub Developer Settings
  • Regenerate the secret if necessary and update PipesHub
Callback URL mismatch error:
  • Ensure the Redirect URI in PipesHub exactly matches the callback URL in GitHub
  • Check for trailing slashes or protocol differences (http vs https)
  • Update both configurations to use the same URL
Authorization failed:
  • Verify you’re signing in with a valid GitHub account that has access to the required repositories
No data syncing:
  • Verify the connector status shows “Active”
  • Check that a repository is selected in the Repository sync filter and that the authorizing account (or the token’s owner) can read it
  • For GitHub Teams, a private repository is skipped if the authorizing account has less than Write access to it
  • Review sync logs for specific error messages
Token expired or sync stopped:
  • The OAuth authorization or personal access token was revoked, or the token expired. Re-authorize the connector, or create a new token and update it in the connector
  • The organization requires OAuth app approval and the app hasn’t been approved, or the approval was withdrawn. Ask an organization owner to approve it
  • The organization turned on SAML single sign-on. Re-authorize with an active SSO session, or authorize the personal access token for SSO
  • Check if the OAuth app is still active in GitHub Developer Settings
No code files synced:
  • Confirm Index Code Files is enabled under Indexing Filters
  • Only one branch is synced: the one chosen in the Branch filter, or the default branch when none is chosen. If the chosen branch was deleted, code sync stops until you pick another
  • Check that the files aren’t covered by the Exclude Paths filter or the built-in exclusions. Lock files, minified files, and source maps get no record at all (see What is excluded from code sync)
  • Test files are synced but not indexed unless Index Test Files is on
  • Files above 5 MB appear as records but their contents are not indexed
  • .ndjson / .jsonl files appear as records marked File Type Not Supported; this is expected (see How each file is indexed)
A user sees no records even though they have GitHub access:
  • Their email could not be read. Either verify your organization’s domain in GitHub, or ask them to set a public profile email — see Prerequisite: Email Visibility above
  • A @users.noreply.github.com address does not count as a usable email
  • Their GitHub email must match their PipesHub account email
Organization repositories are missing from the Repository picker:
  • Authorize with an organization owner account. A member-level account only sees repositories it collaborates on
  • If your organization enforces OAuth app approval, an owner must approve the app for the org (see Step 5)
  • Check that the Github Organizations sync filter isn’t narrowing the picker to other organizations
Sync stops partway on a large repository:
  • GitHub’s authenticated API budget is 5,000 requests/hour. When it is exhausted the sync stops with its checkpoint withheld and resumes on the next scheduled run — no data is lost
  • To reduce per-run cost, set the Sync issues and pull requests updated since filter, or leave out folders with Exclude Paths
The repository picker returns few or no results:
  • GitHub’s search API allows 30 requests/minute and will not page past the first 1,000 results. Type a more specific query rather than scrolling
If you modify OAuth application settings in GitHub Developer Settings (Client ID, Secret, callback URL), you must update the configuration in PipesHub and re-authorize the connection.

Connector Workflow

The GitHub connector follows a structured synchronization process to ensure all data is accurately synced with proper permissions.

Sync Overview

Every sync run executes the same ordered cycle:Outside collaborators are discovered separately from organization members. GitHub excludes them from the organization member list even though they hold real repository permissions, so enumerating only members would leave them permanently unresolvable.

Full Sync vs Incremental Sync

The connector automatically determines whether to perform a full or incremental sync:Full Sync occurs when:
  • First-time synchronization (no sync checkpoint exists)
  • The previous incremental attempt failed or produced a delta that cannot be trusted
  • Manual full sync is triggered
Incremental Sync occurs when:
  • A valid sync checkpoint exists
  • Uses the saved sync checkpoint to fetch or filter for records updated since the last sync time

Repository Synchronization

  1. Repository fetch: Retrieves the repository selected in the Repository filter
  2. Container creation: The repository becomes a record group with three children — Issues, Pull requests, and Code repository. Owning organizations are created above them
  3. Permission assignment: Collaborator roles and repository visibility are translated into permissions (see Permission handling below)
Containers are keyed on the repository’s numeric GitHub ID, not owner/repo. Renaming a repository or transferring it to another owner therefore does not orphan its records or reset its sync checkpoint.

Code Repository Synchronization

Code sync tracks the branch chosen in the Branch filter, or the repository’s default branch when none is chosen, and is checkpointed on the branch’s current commit SHA. If the synced branch changes, the next sync walks the whole tree.Full sync (first run, or when the delta cannot be trusted):
  1. Walks the entire repository tree in a single recursive call
  2. Creates a folder record for each directory and a code file record for each file, with the file’s language detected from its path
  3. Prunes records for files that no longer exist in the tree
For very large repositories, GitHub truncates the recursive tree response. The connector detects this and falls back to walking directories one at a time, so coverage stays complete.Incremental sync (a checkpoint SHA exists):
  1. Compares the checkpointed commit against the current branch head
  2. Classifies each changed path as added, modified, deleted, or renamed — a delete-and-add pair for the same content is reconciled back into a rename, so the record keeps its identity and history rather than being recreated
  3. Applies deletions, renames, and upserts, then removes folders left empty
Every file on the synced branch gets a record, except the files listed in What is excluded from code sync below. Files above the 5 MB indexing ceiling still appear and remain name-searchable; only their contents go unindexed, with the reason recorded.

What is excluded from code sync

The connector skips content that adds noise without adding meaning, and never reads credential files. Excluded files get no record at all, and records left over from earlier syncs are removed:A path the root .gitattributes explicitly marks as not generated and not vendored (for example -linguist-generated) is kept even if the built-in rules would skip it. Credential files and Exclude Paths matches are always left out.Lock files, minified bundles, and source maps are left out because they are written by tools, not people, and their contents would crowd real results out of search. Because of these exclusions, the file count in PipesHub will be lower than the file count in the repository — that is expected.

How each file is indexed

A repository holds more than source code, so PipesHub reads each file with the reader that fits it:A file that isn’t indexed keeps its record and stays findable by name and path. Files above 5 MB carry a reason giving the file’s size. The others show File Type Not Supported, with a reason that says why:
  • .ndjson and .jsonl: “PipesHub can’t read .ndjson files yet. Convert the file to PDF, DOCX or TXT to make it searchable.” (with that file’s own extension)
  • Binary data: “This file holds binary data rather than text, so PipesHub can’t read it. If it is meant to be text, commit it as plain text (UTF-8) and the next sync will index it.”
  • Minified or generator-marked files: “This is a generated file (a lock file, minified bundle, source map, test snapshot or a file its generator marked DO NOT EDIT), so PipesHub skips it to keep search results useful. Nothing needs fixing.”
  • Git LFS pointers: “This file is stored with Git LFS, so the repository holds only a pointer to it, not its content. PipesHub skips the pointer. Nothing needs fixing.”
Untrusted deltas are never applied. A force-push, a branch reset, or a comparison that hits GitHub’s 300-file / 250-commit reporting caps produces a delta that cannot be relied on — the connector re-baselines with a full sync instead. Records are removed only after a complete, untruncated tree walk, and a walk that returns no files at all removes nothing.

Issue and Pull Requests Synchronization

GitHub considers all Pull requests as issues.
For each repository, the connector fetches issues and pull requests from the GitHub API. Each record is normalized into a hierarchical BlockGroup layout inside a BlocksContainer: the description, conversation, and (for pull requests) code-review context are kept in separate block groups so search and retrieval can target the right slice of content.

Body, comments, and attachments

For each issue and pull request, the connector:
  • Description: Stores the body as the first BlockGroup (index 0). Markdown is preserved and inline images are embedded in the indexed representation.
  • Comments: Stores each top-level comment as its own BlockGroup in thread order.
  • Attachments and images: Applies the same extraction and placement rules for issues and pull requests—files and images are mapped to the description or the specific comment they belong to.
Pull requests use the same body, comment, and attachment handling as issues. The section below lists additional content indexed only for pull requests.

Additionally for pull requests

  • Commits: Commit SHAs (and related commit context) are synced as dedicated blocks so answers can be tied to the commits on the PR.
  • Changed files: For files touched by the PR, the connector indexes file content together with the diff (patch) for that change.
  • Review comments on the diff: Per-file review comments on the PR changes—including line-associated feedback where GitHub provides it—are indexed separately from regular issue/PR conversation comments.
  • Reviews: PR-level review submissions (for example approve, request changes, or comment-only review) are indexed as distinct material from inline review-comment threads.

Sync pipeline (summary)

  1. Fetch all issues and pull requests for the repository (respecting full vs incremental sync rules above).
  2. Batch records for processing.
  3. Build BlockGroups for description and comments; map attachments and images to the description or the correct comment.
  4. For pull requests only, add blocks for commits, changed files with diffs, review comments on changes, and review submissions.
Comments are stored as BlockGroups within the parent issue or pull request BlocksContainer (not as separate top-level records). That keeps threads organized and ensures comments are removed when the parent record is deleted.

Permission handling

This section applies to GitHub Teams. The personal Github connector syncs no collaborators and adds no visibility-based access: everything it syncs is visible only to the user who set it up.Each repository’s collaborator list is read from GitHub and translated into permissions. That list already includes team members, outside collaborators, default-organization-permission members, and owners, so no separate team grant is needed.Every role grants access to all three containers — GitHub’s pull role already conveys read access to code alongside issues and pull requests.Repository visibility adds further access, matching what GitHub itself exposes:A GitHub user is matched to a PipesHub account by email address — see Prerequisite: Email Visibility in the Configuration Guide.

Checkpoint Management

Checkpoints are stored per repository, and each content type carries its own:
  • Issues / pull requests — the latest update timestamp seen, so the next run only asks GitHub for items changed since then
  • Code repository — the synced branch’s commit SHA at the end of the last successful walk, used as the base of the next comparison
A checkpoint is only written after its stage succeeds. If a sync fails partway, the affected stage is simply repeated on the next run. All writes are idempotent, so retrying never produces duplicates.

FAQ

Common causes:
  1. Email mismatch - The email used during connector authentication doesn’t match your PipesHub account email. This causes permission issues preventing you from accessing synced data.
    • Fix: Reconfigure the connector and authenticate using the same email as your PipesHub account.
  2. Data not yet indexed - The connector is still syncing or hasn’t completed the initial indexing process.
    • Fix: Go to Settings > Connectors, check the sync status, and wait for indexing to complete.
The initial sync duration depends on how much content your GitHub repositories hold. A record is a single item — an issue, a pull request, a code file, or an attachment.As a rule of thumb, the connector syncs about 100,000 records per hour.
The most common causes are missing scopes or selecting the wrong GitHub account. Re-run authentication, ensure the PipesHub email and GitHub account email matches.
Each connector instance syncs exactly one repository, chosen in the required Repository filter on the Configure records tab. To sync more repositories, add another connector instance for each one.On GitHub Teams, the Github Organizations filter only narrows the Repository picker to the organizations you choose; it doesn’t sync a whole organization. Both fields are live pickers that search GitHub as you type.
Yes. Files and folders on one branch are synced as searchable records, with the language detected from the file path: the branch chosen in the Branch filter, or the repository’s default branch when none is chosen. Files listed in What is excluded from code sync get no record. Subsequent syncs only fetch what changed between commits, and renames are preserved rather than being recreated as new files.Other branches are not synced. Pull request diffs still capture the changes proposed from other branches, so review discussion remains searchable.Turning off the Index Code Files indexing filter stops file contents from being indexed — a common choice for large monorepos where only issue and pull-request context is wanted. The files are still synced and stay findable by name and path. To stop fetching some folders altogether, use the Exclude Paths sync filter instead.

Ready to Get Started?

Connect your GitHub account to PipesHub in just a few minutes. Follow the step-by-step guide above to enable repository issues and pull-requests search across all your GitHub content.