Skip to content

GitHub

BUILDING Source · built and tested, not yet verified against production accounts. Contact us before relying on it.

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.

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

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 repo for private repositories, or public_repo for public ones only.

Tokens expire; note the expiry date and update the connector before it lapses.

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.

issues

One row per issue (pull requests excluded).

Primary key
id
Replication
Incremental, on updated_at
ColumnTypeDescription
idPKintegerGitHub's numeric ID.
repositorystringRepository the row came from, owner/repo.
numberintegerIssue number in the repository.
titlestringTitle.
statestringopen or closed.
userobjectAuthor as a GitHub user object (login, id, …).
labelsarrayLabels.
assigneesarrayAssigned users.
bodystringIssue text (Markdown).
commentsintegerNumber of comments.
created_atstring (datetime)When it was created.
updated_atcursorstring (datetime)When it last changed.
closed_atstring (datetime)When it was closed.

Main columns only. Other fields the source returns also land as columns.

pull_requests

One row per pull request.

Primary key
id
Replication
Incremental, on updated_at
ColumnTypeDescription
idPKintegerGitHub's numeric ID.
repositorystringRepository the row came from, owner/repo.
numberintegerPull request number.
titlestringTitle.
statestringopen or closed.
userobjectAuthor as a GitHub user object (login, id, …).
draftbooleanWhether it's a draft.
headobjectSource branch and commit.
baseobjectTarget branch and commit.
created_atstring (datetime)When it was created.
updated_atcursorstring (datetime)When it last changed.
closed_atstring (datetime)When it was closed.
merged_atstring (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.

Primary key
repository, sha
Replication
Incremental, on committed_date
ColumnTypeDescription
repositoryPKstringRepository the row came from, owner/repo.
shaPKstringCommit SHA.
commitobjectMessage, author and committer details.
authorobjectGitHub user who authored it, if linked.
committerobjectGitHub user who committed it, if linked.
committed_datecursorstring (datetime)Committer date (the sync cursor).
html_urlstringLink to the commit on GitHub.

Main columns only. Other fields the source returns also land as columns.

releases

One row per release.

Primary key
id
Replication
Full table every sync
ColumnTypeDescription
idPKintegerGitHub's numeric ID.
repositorystringRepository the row came from, owner/repo.
tag_namestringGit tag.
namestringRelease title.
draftbooleanWhether it's a draft.
prereleasebooleanWhether it's a pre-release.
authorobjectGitHub user who created it.
created_atstring (datetime)When it was created.
published_atstring (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.

Primary key
repository, user_id
Replication
Full table every sync
ColumnTypeDescription
repositoryPKstringRepository the row came from, owner/repo.
user_idPKintegerNumeric ID of the user.
userobjectThe GitHub user object.
starred_atstring (datetime)When they starred it.

Main columns only. Other fields the source returns also land as columns.

  • Every table has a repository column (owner/repo); join on it together with the keys.
  • Nested objects (user, labels, commit) arrive as JSON. Timestamps are ISO 8601 strings.
  • issues excludes pull requests (GitHub’s issues API returns both). Issues and pull requests in every state are included.
  • 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.
  • 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_limited and 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.