GitHub → Google Sheets™
GitHub repository, issue, pull request, commit, and release data.
API Import for Google Sheets™ lets you connect GitHub with the most popular apps, so you can automate your work and have more time for what matters most — no code required.
GitHub AppGitHub is the largest code hosting platform, used by tens of millions of developers to manage repositories, track issues, review pull requests, and coordinate releases. Public repository data is available without authentication — useful for tracking open-source projects, contributor activity, or release history. For private repositories, connect via the API Import GitHub App or a fine-grained personal access token. Once connected, you can pull issues, PRs, commits, and release data into Google Sheets™ for engineering dashboards, sprint tracking, or cross-team reporting.
- Open API Import for Sheets from the Google Sheets™ Extensions menu.
- Select GitHub from the API selector.
- Under Authentication, click Connect GitHub App.
- Authorize GitHub in the popup. If GitHub asks you to install the app, choose the account and repositories the connector should read.
- Return to the sidebar. Wait for the GitHub credential to appear, or click Refresh Connection.
- Select the connected GitHub credential from the dropdown and run your prompt.
Set up a self-managed GitHub App
Use this only if you manage a private API Import Apps Script™ deployment. The production add-on uses the official API Import GitHub App.
- Open GitHub Settings, then Developer settings, then GitHub Apps.
- Create a GitHub App named API Import for Sheets.
- Set the Callback URL to the Apps Script deployment you are testing.
GitHub Apps allow one active user authorization callback URL for this setup. Use one GitHub App for staging:
https://script.google.com/macros/d/133aXIYKY_eNzCnt-2t_buoqXENQA2jSMRqhKxjly2OGqaZ-FvvVBgDKy/usercallback
Use a separate GitHub App for production:
https://script.google.com/macros/d/1MM5flAOQ3nGmBsxbaH1ceWyt8aVlsu9U4avHWFNaXbXUaI2xXYiAIluE/usercallback
- Enable Request user authorization (OAuth) during installation.
- Leave webhooks disabled for API Import v1.
- Grant read-only repository permissions for Metadata, Contents, Issues, and Pull requests.
- Copy the GitHub App Client ID and generate a Client secret.
- Add them to Apps Script Script Properties as
AI_API_CONNECTOR_GITHUB_CLIENT_IDandAI_API_CONNECTOR_GITHUB_CLIENT_SECRET.
Use a fine-grained token instead
Personal access tokens are an advanced fallback when your GitHub App installation cannot reach the repositories you need.
- Open GitHub's Personal access tokens page and click Generate new token, then choose Fine-grained token.
- Give the token a clear name, such as API Import for Sheets, and choose an expiration date.
- Choose the resource owner and repositories you want to query.
- For reading issues, pull requests, commits, branches, and repository metadata, use read-only repository permissions. GitHub requires Metadata: Read-only.
- Copy the token immediately.
- In the API Import sidebar, select GitHub, click Use a token instead, paste the token, and click Save Credential.
Ready to connect GitHub to Google Sheets™?
Install the free add-on and start pulling data in minutes.
Install Free on Google Sheets™