GitHub
Import GitHub members, issues, pull requests, discussions and commits through an app that your organization owns.
Connection options
Datum connects through a GitHub app that belongs to your organization. Datum creates the app from its supplied manifest without requiring manual credential transfer. A classic personal access token also works.
GitHub AppSTART HERE
- Your organization owns the app
- The app provides live updates through webhooks
- Datum refreshes temporary tokens automatically
- Needs a public HTTPS address for Datum
Personal access token
- Works on any install, including a laptop
- Nothing to install in the organization
- The token belongs to its creator
- Datum does not configure a webhook
Connect the GitHub App
GitHub requires a public HTTPS address to complete app creation. Sign in to Datum as a workspace owner. Sign in to GitHub with permission to create apps for the organization.
Open Sources
Open Sources → Connect a source → GitHub. Enter the organization’s login in GitHub organisation, for example
ocmgr-dev. Leave Advanced settings closed: Personal access token and the five app fields,app_idthroughpem, stay empty.The app flow supplies these values.
Create the app
Press Connect. Select Continue to GitHub in the Create your GitHub App tab. Create the app in GitHub.
GitHub names the app Datum for followed by your organization. It requests read access to members, metadata, issues, pull requests, discussions and contents. Datum encrypts the app ID, credentials, webhook secret and private key in your workspace’s vault.
Install it in the organization
Install the app in the same organization. GitHub opens the installation step immediately after app creation.
Verify
Press Verify when Datum displays Authorization received. Verify to check access.
A successful result reads GitHub App installed in your organization. The details show
authset toapp. A running worker starts the first sync automatically.Press Run now on the source’s page to start immediately.
Use a personal access token instead
A classic token works without a public Datum address. It belongs to the person who creates it. Datum uses it only for reads.
Create a classic token
Create a classic personal access token with
read:org,read:user,user:emailandpublic_repo. Addrepoto include private repositories. The link preselects the four default scopes.Open Sources
Open Sources → Connect a source → GitHub. Enter the organization’s login in GitHub organisation. Open Advanced settings. Enter the token in Personal access token. Leave the five app fields empty.
Verify
Press Verify. The result identifies the token owner and counts the organization’s public repositories. Token connections do not require Connect.
Run ocmgr connection create --kind github --config '{"org":"<org>"}' --secret token=<token> --json to store the token from a terminal.
Datum creates no webhook for token connections. Daily reconciliation or manual syncs supply changes.
Data Datum imports
| Members | Organization members, and everyone who stars, forks, opens, comments or commits: login, name, avatar, profile links and public email |
| Activity | Stars, forks, issues, pull requests, issue and review comments, discussions and their comments, and commits, with links back to GitHub |
| Repositories | Every repository in the organization, including archived ones. Datum excludes forked repositories |
| Not collected | Issue, comment and commit text. Datum keeps titles and links |
GitHub confirms public profile email addresses. These verified addresses can link accounts automatically. Commit author addresses have no ownership check. They link only when they match a verified address elsewhere. About three in ten people display a public email address.
GitHub logins also support matching. A Discourse member who signs in through GitHub can link to their GitHub account without an email address.
Live updates and the daily re-read
Datum configures the app webhook automatically. It receives new stars, forks, issues, pull requests, comments, discussions, pushes and membership changes. Daily reconciliation rereads the organization to collect missed changes. Set enabled to false on the connection to stop daily reconciliation.
From your terminal or agent
ocmgr connection create --kind github --config '{"org":"<org>"}' --json
ocmgr connection connect <connectionId> --json # open human_url while signed in
ocmgr connection verify <connectionId> --json # ok:true, details.auth:"app"
ocmgr ingest <connectionId> --json{ "name": "create_connection", "arguments": { "kind": "github", "config": { "org": "<org>" } } }
{ "name": "connect_connection", "arguments": { "id": "<connectionId>" } }
{ "name": "verify_connection", "arguments": { "id": "<connectionId>" } }Your agent can create the connection and return the authorization link. Open that link in a signed-in browser to continue.
Troubleshooting
“GitHub App setup requires a public HTTPS URL”
GitHub cannot complete setup through an unreachable address. Set a public HTTPS address in Configuration. Alternatively, connect through a personal access token.
“Install the GitHub App in …, then verify again”
The app exists but lacks an installation in the specified organization. Open the app’s GitHub page. Install it in that organization. Press Verify again.
“GitHub App installation needs permissions”
Someone reduced the app’s permissions after creation. The message lists missing permissions. Grant those permissions in GitHub. Press Verify again.
Webhook delivery shows quiet
Verification details show webhookDelivery as recent, quiet, failing or unknown. quiet means no deliveries arrived in the last day, which is normal for an inactive organization. failing means deliveries reached Datum but failed or encountered rejection. Daily reconciliation continues in either case.
Check the address in the app’s webhook settings if deliveries fail.
FAQ
Can I limit it to some repositories?
Yes. Set repos through the terminal to a list of repository names. Datum reads only those repositories. GitHub’s installation screen also lets you limit the app’s repository access.
Does Datum write anything to GitHub?
No. The app requests only read permissions.
I already connected with a token. Do I have to switch?
No. Token connections continue to work. An app provides live updates and removes dependence on one person’s account.