NEW RELEASE:

Centralized data layer for multiple content sources or frameworks. Dive deep into Valhalla

ContactSign Up for Free
Community Plugin
View plugin on GitHub

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).

How to use

In your gatsby-config.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
    }
  }
}
© 2022 Gatsby, Inc.