GitHub
BUILDING Source · built and tested, not yet verified against production accounts. Contact us before relying on it.
Overview
Section titled “Overview”PortPilot replicates five resources from each repository you list, using the GitHub REST API.
Issues, pull requests and commits sync incrementally, with a separate bookmark per
repository. Every row carries a repository column (owner/repo), so one table holds all your
repositories.
Features
Section titled “Features”| Feature | Supported | Notes |
|---|---|---|
| Incremental sync | Partly | Issues, pull requests and commits; releases and stargazers are re-read. |
| Captures deletes | No | Records deleted in the source stay in the destination. |
| Custom fields | No | |
| Table selection | Yes | Choose which tables to sync. |
| New columns added automatically | Yes | Columns that appear in the source are added to the destination table. |
| Re-sync | Yes | A full refresh re-reads every selected table. |
Before you connect
Section titled “Before you connect”Create a token that can read the repositories:
- Fine-grained personal access token (recommended): select the repositories (or the organization), and grant read-only Contents, Issues, Pull requests and Metadata permissions. Organization owners may need to approve it.
- Classic token: scope
repofor private repositories, orpublic_repofor public ones only.
Tokens expire; note the expiry date and update the connector before it lapses.
Connect
Section titled “Connect”In the app, go to Connectors → New connector → GitHub and click Test connection after filling in:
| Field | Required | Default | Description |
|---|---|---|---|
access_token |
Yes | — | Personal access token. Stored write-only in the data plane’s secret store. |
repositories |
Yes | — | Repositories in owner/repo form, e.g. ["octocat/Hello-World"]. |
start_date |
No | all history | YYYY-MM-DD. Lower bound for a repository’s first sync of issues, pull requests and commits. |
Schema
Section titled “Schema”issues
One row per issue (pull requests excluded).
| Column | Type | Description |
|---|---|---|
idPK | integer | GitHub's numeric ID. |
repository | string | Repository the row came from, owner/repo. |
number | integer | Issue number in the repository. |
title | string | Title. |
state | string | open or closed. |
user | object | Author as a GitHub user object (login, id, …). |
labels | array | Labels. |
assignees | array | Assigned users. |
body | string | Issue text (Markdown). |
comments | integer | Number of comments. |
created_at | string (datetime) | When it was created. |
updated_atcursor | string (datetime) | When it last changed. |
closed_at | string (datetime) | When it was closed. |
Main columns only. Other fields the source returns also land as columns.
pull_requests
One row per pull request.
| Column | Type | Description |
|---|---|---|
idPK | integer | GitHub's numeric ID. |
repository | string | Repository the row came from, owner/repo. |
number | integer | Pull request number. |
title | string | Title. |
state | string | open or closed. |
user | object | Author as a GitHub user object (login, id, …). |
draft | boolean | Whether it's a draft. |
head | object | Source branch and commit. |
base | object | Target branch and commit. |
created_at | string (datetime) | When it was created. |
updated_atcursor | string (datetime) | When it last changed. |
closed_at | string (datetime) | When it was closed. |
merged_at | string (datetime) | When it was merged. |
Main columns only. Other fields the source returns also land as columns.
commits
One row per commit on the default branch.
| Column | Type | Description |
|---|---|---|
repositoryPK | string | Repository the row came from, owner/repo. |
shaPK | string | Commit SHA. |
commit | object | Message, author and committer details. |
author | object | GitHub user who authored it, if linked. |
committer | object | GitHub user who committed it, if linked. |
committed_datecursor | string (datetime) | Committer date (the sync cursor). |
html_url | string | Link to the commit on GitHub. |
Main columns only. Other fields the source returns also land as columns.
releases
One row per release.
| Column | Type | Description |
|---|---|---|
idPK | integer | GitHub's numeric ID. |
repository | string | Repository the row came from, owner/repo. |
tag_name | string | Git tag. |
name | string | Release title. |
draft | boolean | Whether it's a draft. |
prerelease | boolean | Whether it's a pre-release. |
author | object | GitHub user who created it. |
created_at | string (datetime) | When it was created. |
published_at | string (datetime) | When it was published. |
Main columns only. Other fields the source returns also land as columns.
stargazers
One row per user who starred the repository.
| Column | Type | Description |
|---|---|---|
repositoryPK | string | Repository the row came from, owner/repo. |
user_idPK | integer | Numeric ID of the user. |
user | object | The GitHub user object. |
starred_at | string (datetime) | When they starred it. |
Main columns only. Other fields the source returns also land as columns.
- Every table has a
repositorycolumn (owner/repo); join on it together with the keys. - Nested objects (
user,labels,commit) arrive as JSON. Timestamps are ISO 8601 strings. issuesexcludes pull requests (GitHub’s issues API returns both). Issues and pull requests in every state are included.
Sync behavior
Section titled “Sync behavior”- First sync of a repository: everything (from
start_date, if set for issues, pull requests and commits). - Later syncs: issues and commits updated or committed since the repository’s previous bookmark; pull requests are read newest-updated first until the bookmark is reached. Rows are upserted. Releases and stargazers are re-read in full.
- Adding a repository to the list later gives it its own full first sync.
Common gotchas
Section titled “Common gotchas”- Rate limit: 5,000 requests an hour per token. Each page is 100 records, so very large
repositories take several syncs’ worth of quota on the first run. When GitHub rate-limits,
PortPilot waits until the reset; if that’s too long, the run fails as
rate_limitedand retries on the next schedule. Use a token dedicated to PortPilot. - Deletes aren’t replicated. Deleted issues and releases stay in the destination.
- Commits on the default branch only. The commits table follows the repository’s default branch.
- Expired or revoked token fails every stream with a 401. Update the token in the connector.
- Organization SSO. For organizations using SAML SSO, a classic token must be authorized for the organization, or requests return 403.