{"id":20031874,"url":"https://github.com/wtnabe/gas-github-graphql-request","last_synced_at":"2026-05-24T16:38:12.512Z","repository":{"id":66523975,"uuid":"570110824","full_name":"wtnabe/gas-github-graphql-request","owner":"wtnabe","description":"GitHubGraphQLRequest Library for Google Apps Script","archived":false,"fork":false,"pushed_at":"2022-12-13T23:29:06.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-02T05:27:53.011Z","etag":null,"topics":["gas-library","google-apps-script","spreadsheet"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wtnabe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-24T11:11:58.000Z","updated_at":"2023-05-28T11:25:27.000Z","dependencies_parsed_at":"2023-03-10T21:15:43.723Z","dependency_job_id":null,"html_url":"https://github.com/wtnabe/gas-github-graphql-request","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/wtnabe/gas-github-graphql-request","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtnabe%2Fgas-github-graphql-request","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtnabe%2Fgas-github-graphql-request/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtnabe%2Fgas-github-graphql-request/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtnabe%2Fgas-github-graphql-request/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wtnabe","download_url":"https://codeload.github.com/wtnabe/gas-github-graphql-request/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtnabe%2Fgas-github-graphql-request/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33442525,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-24T13:13:05.286Z","status":"ssl_error","status_checked_at":"2026-05-24T13:13:03.728Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gas-library","google-apps-script","spreadsheet"],"created_at":"2024-11-13T09:35:03.083Z","updated_at":"2026-05-24T16:38:12.480Z","avatar_url":"https://github.com/wtnabe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHubGraphQLRequest for Google Apps Script\n\nGitHubGraphQLRequest Library for Google Apps Script Project ( **Sheets Container-bound** script )\n\n## Prerequisite\n\nSheets Container-bound script Project.\n\n## How to Use\n\n### 0. Prepare Sheet\n\nThis library is for Spreadsheet Container-bound Script as it adds menus to Spreadsheet.\n\n### 1. Add Library code\n\nChoose one of them please.\n\n 1. add Project ID for your project as Library `14hP6p8PPzAy_yclpF-kXDSIpylKEDx-iJvMJtd1DSJJzJVV8miYzv_fS`\n 2. Copy and Paste this code\n\nI would recommend #2 for speed of execution, but #1 is also a good option for administrative costs.\n\n### 2. Write setup code\n\nopen Script Editor\n\n```javascript\nfunction onOpen () {\n  GitHubGraphQLRequest.registerGhgraph()\n}\n```\n\n### 3. Prepare Your Token\n\nSet your GitHub Access Token into UserProperty with menu `[ GitHub Token ]`\n\n### 4. Write Your Google Apps Script Code\n\nexample\n\n```javascript\n/**\n * @returns {object}\n * @customfunction\n */\nfunction request () {\n  try {\n    const body = JSON.parse(\n      GitHubGraphQLRequest.request(query)\n        .getContentText()\n    )\n    return transform(body...nodes)\n  } catch (e) {\n    console.error(e)\n    return [['Something', 'wrong']]\n  }\n}\n```\n\n`transform()` is a function that transforms a nested JavaScript Object into an Array of Arrays ( e.g. [ [], [], ...] ) for Spreadsheet.\n\n### 5. call function from Spreadsheet\n\n```javascript\n=request()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwtnabe%2Fgas-github-graphql-request","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwtnabe%2Fgas-github-graphql-request","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwtnabe%2Fgas-github-graphql-request/lists"}