← All integrations
GitHub → Google Sheets
GitHub repository, issue, pull request, and user data.
Bearer tokenExample prompts
“Get the latest 50 open issues from octocat/hello-world”
“List open pull requests from octocat/hello-world”
“Get recent commits from octocat/hello-world”
How to get credentials
For GitHub, create a fine-grained personal access token. Fine-grained tokens can be limited to specific repositories, have an expiration date, and use only the permissions your request needs.
- 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 that owns the repositories you want to query.
- Under Repository access, choose Only select repositories when you only need specific private repositories. For public-only data, Public repositories is enough.
- Under Permissions, keep access minimal. For reading issues, pull requests, commits, branches, and repository metadata, use Contents: Read-only; Metadata: Read-only is required by GitHub.
- Click Generate token and copy the token immediately.
- Open API Import for Sheets from the Google Sheets Extensions menu.
- Select GitHub from the API selector.
- Under Credentials, click Add another credential.
- Paste the token and click Save Credential.
- Select the saved credential from the dropdown and run your prompt.
Ready to connect GitHub to Google Sheets?
Install the free add-on and start pulling data in minutes.
Install Free on Google Sheets