https://github.com/maciejwalkowiak/gatsby-source-github-repository-contributors
GatsbyJS Source plugin for pulling Github repository contributors using Github's REST API
https://github.com/maciejwalkowiak/gatsby-source-github-repository-contributors
Last synced: 7 months ago
JSON representation
GatsbyJS Source plugin for pulling Github repository contributors using Github's REST API
- Host: GitHub
- URL: https://github.com/maciejwalkowiak/gatsby-source-github-repository-contributors
- Owner: maciejwalkowiak
- License: 0bsd
- Created: 2020-11-29T22:32:34.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2020-11-29T22:43:25.000Z (almost 5 years ago)
- Last Synced: 2025-01-07T22:53:44.052Z (9 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gatsby-source-github-repository-contributors
Source plugin for pulling Github repository contributors using Github's REST API.
## Motivation
Github's GraphQL API does not provide an option to fetch top repository contributors ([more details](https://stackoverflow.com/questions/55055471/how-to-query-the-top-contributors-to-a-github-repository-using-graphql)).
## How to use
In your `gatsby-config.js`:
```js
plugins: [
{
resolve: `gatsby-source-github-repository-contributors`,
options: {
org: 'spring-cloud',
repository: 'spring-cloud-aws'
}
}
]
```## How to query
```
query MyQuery {
allContributors {
nodes {
id
avatar_url
html_url
contributions
}
}
}
```