{"id":13570869,"url":"https://github.com/PMudra/gatsby-source-local-git","last_synced_at":"2025-04-04T07:32:19.791Z","repository":{"id":36017999,"uuid":"220829969","full_name":"PMudra/gatsby-source-local-git","owner":"PMudra","description":"Gatsby source plugin which sources data from your local git repository","archived":false,"fork":false,"pushed_at":"2023-03-07T00:01:46.000Z","size":12988,"stargazers_count":8,"open_issues_count":43,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-23T21:36:44.897Z","etag":null,"topics":["gatsby","git","graphql","plugin"],"latest_commit_sha":null,"homepage":"https://using-gatsby-source-local-git.netlify.app/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PMudra.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2019-11-10T18:12:50.000Z","updated_at":"2022-08-30T19:31:01.000Z","dependencies_parsed_at":"2024-01-14T03:48:45.220Z","dependency_job_id":"c151c2c0-0e92-4d71-b343-c738614d78bb","html_url":"https://github.com/PMudra/gatsby-source-local-git","commit_stats":{"total_commits":477,"total_committers":4,"mean_commits":119.25,"dds":"0.26415094339622647","last_synced_commit":"8c627ab3aa1457db521d6539fbc8c4c86d826e2e"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PMudra%2Fgatsby-source-local-git","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PMudra%2Fgatsby-source-local-git/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PMudra%2Fgatsby-source-local-git/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PMudra%2Fgatsby-source-local-git/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PMudra","download_url":"https://codeload.github.com/PMudra/gatsby-source-local-git/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247139063,"owners_count":20890165,"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":["gatsby","git","graphql","plugin"],"created_at":"2024-08-01T14:00:55.925Z","updated_at":"2025-04-04T07:32:14.775Z","avatar_url":"https://github.com/PMudra.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# gatsby-source-local-git\n\n[![npm](https://img.shields.io/npm/v/gatsby-source-local-git?style=for-the-badge\u0026logo=npm)](https://www.npmjs.com/package/gatsby-source-local-git)\n[![MIT](https://img.shields.io/github/license/pmudra/gatsby-source-local-git?style=for-the-badge)](https://github.com/PMudra/gatsby-source-local-git/blob/master/LICENSE)\n[![build](https://img.shields.io/github/workflow/status/PMudra/gatsby-source-local-git/Node%20CI?logo=github\u0026style=for-the-badge)](https://github.com/PMudra/gatsby-source-local-git/actions)\n\nA Gatsby source plugin for sourcing data into your Gatsby application from your local git repository.\nThe plugin enables gatsby sites to include meta data about their own git repository at build time.\n\nYou can find a running example here: https://using-gatsby-source-local-git.netlify.app/\n\nMissing a feature? Please create an issue (or even a pull request).\n\n## Install\n\n```shell\nnpm install --save gatsby-source-local-git\n```\n\n## How to use\n\n```javascript\n// In your gatsby-config.js\nmodule.exports = {\n  plugins: [`gatsby-source-local-git`],\n}\n```\n\nSources of the [example](https://using-gatsby-source-local-git.netlify.app/) are available at [examples/using-gatsby-source-local-git/](examples/using-gatsby-source-local-git/)\n\n## How to query\n\nThe plugin creates `Commit`, `Tag`, `Branch` and `Author` nodes.\n\n:warning: Please be aware that CI platforms might use an optimized strategy to fetch your git repository. Make sure to fetch all history for branches and tags depending on your needs.\n\n### Latest commit hash\n\n```graphql\n{\n  gitCommit(latest: { eq: true }) {\n    hash\n  }\n}\n```\n\n### Latest tag name\n\n```graphql\n{\n  gitTag(latest: { eq: true }) {\n    name\n  }\n}\n```\n\nOnly tag names including a dot will be considered (like `v1.2.3` or `1.2` but not `newest-feature`).\n\n### Current Branches\n\n```graphql\n{\n  gitBranch(current: { eq: true }) {\n    name\n  }\n}\n```\n\n### Authors\n\n```graphql\n{\n  allGitAuthor(sort: { fields: name }) {\n    nodes {\n      name\n      email\n    }\n    totalCount\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPMudra%2Fgatsby-source-local-git","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPMudra%2Fgatsby-source-local-git","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPMudra%2Fgatsby-source-local-git/lists"}