1.3.0 • Published 4 years ago

gatsby-source-github-repo v1.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

gatsby-source-github-repo

npm.io npm.io

Gatsby source plugin for pulling data directly from a GitHub repository page.

It was created to retrieve information that cannot currently be accessed via the GitHub API, like the total contributor count.

Install

npm install --save gatsby-source-github-repo 

How to use

In your gatsby-config.js:

plugins: [
  {
    resolve: 'gatsby-source-github-repo',
    options: {
      repoUrl: 'https://github.com/gatsby/gatsby',
    },
  },
];

You can then query the data via graphql: localhost:8000/___graphql

{
  gitHubRepoData {
    url
    description
    website
    topics
    commitCount
    releaseCount
    branchCount
    contributorCount
    licence
    languageStats {
      lang
      percentage
    }
  }
}
1.3.0

4 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago