
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
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


Personal connector: Github
Workspace settings → Personal → Your connectors


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
Setup
Setup
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.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.- Verify your domain (recommended)
- Set a public profile email
Verifying your domain lets PipesHub read every member’s company email address, even when their
profile email is private. An organization owner does this once:
- Open your organization on GitHub and go to Settings.
- In the sidebar, select Verified and approved domains.
- Click Add a domain and enter your company domain (for example
acme.com). - GitHub shows a TXT record. Add it to your domain’s DNS through your DNS provider.
- Come back to GitHub and click Verify.
Generating Client ID and Secret
Step 1: Access GitHub Developer Settings
-
Navigate to the Developer Console:
Go to settings/developers and sign in with your GitHub account. - View Your Apps: You’ll see the “OAuth apps” page where you can create and manage OAuth 2.0 apps.

Step 2: Create a New OAuth App
- Click the “New OAuth App” button in the top right corner
-
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%20Teamsfor GitHub Teams, orconnectors/oauth/callback/Githubfor the personal Github connector:


- Click “Register Application” to proceed
Step 3: Get OAuth Credentials
- Copy the following credentials:
- Client ID: Your app’s unique identifier
- Secret: Your app’s client secret (click “Generate a new client secret”)

Step 4: Configure Connector in PipesHub
- 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)
-
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
- 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
- If an Authentication method dropdown is shown, choose OAuth 2.0
- Verify the Redirect/Callback URL displayed matches the callback URL you configured in GitHub Developer Settings (Step 2)
-
Enter your OAuth 2.0 credentials:
- Application (Client) ID: From previous step
- Client Secret: From previous step


- Click “Next” to move forward
Step 5: Authorize the Connection
- On the Authorize tab, click Authenticate GitHub Teams to proceed
- You’ll be redirected to GitHub’s authorization page

- Enter GitHub login credentials and click Sign In
- User will be shown the set of permissions needed, click Authorize to grant permissions

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.- You’ll be redirected back to PipesHub with a success message
- The connector status will update to show “Connected — you can continue to Configure records”

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:- On GitHub, create a classic personal access token (Settings → Developer settings →
Personal access tokens) with the
repo,read:org, anduser:emailscopes - 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
- If your organization uses SAML single sign-on, authorize the token for that organization
- In PipesHub, open Workspace settings → Connectors, find GitHub Teams, and click Set up
- Enter an Instance name, and under Authentication method choose API Token
- Paste the token into Personal Access Token
- 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.
Step 6: Enable and Configure the Connector
- After successful authorization, click Continue to configuration → to open the Configure records tab
- A configuration dialog will appear with a section:
- Sync Settings - Configure synchronization strategy and schedule


Sync Settings
Configure your synchronization preferences:- Sync Strategy: Choose between “Scheduled” or “Manual”
- 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.

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.

Save and Activate
- Click “Save configuration” to save your configuration.
- 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
- The connector will verify credentials and begin initial synchronization
- 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
Useful Links
- GitHub Developer Settings: settings/developers
- OAuth App Documentation: oauth-apps/building-oauth-apps/creating-an-oauth-app
- GitHub REST API Documentation: github/rest
Troubleshooting
Troubleshooting
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
- 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
- Verify you’re signing in with a valid GitHub account that has access to the required repositories
- 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
- 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
- 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/.jsonlfiles appear as records marked File Type Not Supported; this is expected (see How each file is indexed)
- 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.comaddress does not count as a usable email - Their GitHub email must match their PipesHub account email
- 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
- 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
- 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
Connector Workflow
Synchronization Process
Synchronization Process
The GitHub connector follows a structured synchronization process to ensure all data is accurately synced with proper permissions.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.
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
- A valid sync checkpoint exists
- Uses the saved sync checkpoint to fetch or filter for records updated since the last sync time
Repository Synchronization
- Repository fetch: Retrieves the repository selected in the Repository filter
- Container creation: The repository becomes a record group with three children — Issues, Pull requests, and Code repository. Owning organizations are created above them
- Permission assignment: Collaborator roles and repository visibility are translated into permissions (see Permission handling below)
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):- Walks the entire repository tree in a single recursive call
- Creates a folder record for each directory and a code file record for each file, with the file’s language detected from its path
- Prunes records for files that no longer exist in the tree
- Compares the checkpointed commit against the current branch head
- 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
- Applies deletions, renames, and upserts, then removes folders left empty
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:
.ndjsonand.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.”
Issue and Pull Requests Synchronization
GitHub considers all Pull requests as issues.
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)
- Fetch all issues and pull requests for the repository (respecting full vs incremental sync rules above).
- Batch records for processing.
- Build BlockGroups for description and comments; map attachments and images to the description or the correct comment.
- 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
FAQ
Queries not returning results. What could be wrong?
Queries not returning results. What could be wrong?
Common causes:
-
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.
-
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.
How long does the initial sync take?
How long does the initial sync take?
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.
Why do I see no issues after authenticating?
Why do I see no issues after authenticating?
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.
Can I sync several repositories, or a whole organization?
Can I sync several repositories, or a whole organization?
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.
Is source code synced, and from which branch?
Is source code synced, and from which branch?
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.