Github Connector for Google Data Studio
This is not an official Google product
This Data Studio Community Connector lets you query data about repositories in GitHub.
This code is based on googledatastudio/community-connectors
To use this Community Connector in Data Studio there is a one-time setup to
deploy your own personal instance of the connector using Apps Script. The
GitHub connector also requires additional setup in GitHub to configure OAuth.
Follow the deployment guide to deploy the Community
Connector.
Make a note of the Script ID for the connector, you’ll need it for the next
step.
YOUR_SCRIPT_ID
, Visit Apps Script, then click onThe GitHub connector requires an OAuth 2.0 client. Follow the steps below to
complete the connector setup.
Complete the form…
| Text Field | Response |
| ———————————————|—————————————————————————————————|
| Application Name | GitHub Community Connector |
| Homepage URL | https://github.com/googledatastudio/community-connectors/tree/master/github |
| Application Description | This application… |
| Authorization callback URL | https://script.google.com/macros/d/{YOUR_SCRIPT_ID}/usercallback |
Note: While you can choose your own values for “Application Name”,
“Homepage URL”, and “Application Description”, you must follow the pattern
for the “Authorization callback URL” in the table above. ReplaceYOUR_SCRIPT_ID
with the value you noted in step #1.
Click Register application
.
Add the following key-value pairs as script properties:
| Key | Value |
|———————————-|———————————|
| OAUTH_CLIENT_ID
| {YOUR CLIENT ID} |
| OAUTH_CLIENT_SECRET
| {YOUR CLIENT SECRET} |
Once you’ve set up and deployed the connector, follow the
Use a Community Connector guide to use the connector in Data Studio.
Note: After using the connector in Data Studio, as long as you do not
revoke access, it will remain listed in the connector list for easy access
when creating a new data source.
When authorizing the community connector, if you are presented with an
“unverified” warning screen see This app isn’t verified for details on how to
proceed.
OAUTH2
, in this case, GitHub’s