See what's launched

The next gen Gatsby is here Performance, developer velocity, and scaling to meet Enterprise needs - See what’s launched

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