{"id":17087823,"url":"https://github.com/mosch/gatsby-source-github","last_synced_at":"2025-07-25T14:12:53.711Z","repository":{"id":42879077,"uuid":"109372105","full_name":"mosch/gatsby-source-github","owner":"mosch","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-27T03:34:16.000Z","size":30,"stargazers_count":46,"open_issues_count":10,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T07:06:53.349Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mosch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-11-03T08:38:34.000Z","updated_at":"2022-01-14T21:39:53.000Z","dependencies_parsed_at":"2023-01-22T19:00:14.116Z","dependency_job_id":"e4ecc81d-025b-4cb8-b903-a3752058f9b4","html_url":"https://github.com/mosch/gatsby-source-github","commit_stats":{"total_commits":16,"total_committers":6,"mean_commits":"2.6666666666666665","dds":0.375,"last_synced_commit":"539666e1b751b9228c7d78a9a704bcc2e5c3d707"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mosch%2Fgatsby-source-github","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mosch%2Fgatsby-source-github/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mosch%2Fgatsby-source-github/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mosch%2Fgatsby-source-github/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mosch","download_url":"https://codeload.github.com/mosch/gatsby-source-github/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247618273,"owners_count":20967755,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-14T13:35:03.366Z","updated_at":"2025-04-07T08:28:09.241Z","avatar_url":"https://github.com/mosch.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gatsby-source-github\n\nSource plugin for pulling data into Gatsby from Github repositories.\nWorks with gatsby-transform-remark if you like to pull markdown files from your repository. \n\n## Supports\n\n* Pulling trees / files from Github repositories\n* Pulling release information from Github repositories\n\n## How to use\n\n### NPM package\n\nThis package is available on npm as \"@mosch/gatsby-source-github\". \n\n`yarn add @mosch/gatsby-source-github`\n\n### Gatsby Configuration\n\n```javascript\n// In your gatsby-config.js\nmodule.exports = {\n  plugins: [\n    {\n      resolve: `@mosch/gatsby-source-github`,\n      options: {           \n        repository: \"YOUR_REPOSITORY\",\n        tree: true,\n        releases: true,\n        user: \"YOUR_USER\",\n        secrets: {\n          token: \"YOUR_API_TOKEN\",\n        }\n      }\n    }\n  ],\n}\n```\n\n### Plugin options\n\n* **tree**: Pulls in the Github tree (all files) as GithubFiles *(default false)*\n* **releases**: Pulls in the Github releases as GithubReleases *(default false)*\n\n### How to query Files using GraphQL\n\nA a sample query for fetching all File nodes. \n\n```graphql\nquery GithubFileQuery {\n  allGithubFile {\n    edges {\n      node {\n        repository\n        user\n        path\n      }\n    }\n  }\n}\n```\n\n\n### How to query Releases using GraphQL\n\nA a sample query for fetching all Release nodes. \n\n```graphql\nquery GithubReleasesQuery {\n  allGithubReleases {\n    edges {\n      node {\n        user\n        repository\n        version\n        description\n      }\n    }\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmosch%2Fgatsby-source-github","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmosch%2Fgatsby-source-github","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmosch%2Fgatsby-source-github/lists"}