gatsby-source-github-feed

1.0.0 • Public • Published

Gatsby Source Github Feed

npm version

Source plugin for pulling data into Gatsby from RSS feed.

Install

npm install --save gatsby-source-github-feed

or

yarn add gatsby-source-github-feed

How to use

// In your gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: `gatsby-source-github-feed`,
      options: {
        profile: `gregorskii`,
        name: `GithubProfile`,
      }
    }
  ]
}

How to query

Query is Feed${name}.

When name of options is GithubProfile, query named as FeedGithubProfile.

query allFeedGithubProfile {
    allFeedGithubProfile {
      edges {
        node {
          id
          type
          actor {
            display_login
            avatar_url
          }
          repo {
            name
            url
          }
          payload {
            action
            issue {
              title
              body
            }
          }
        }
      }
    }

TODO:

Authentication option

Package Sidebar

Install

npm i gatsby-source-github-feed

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

94.6 kB

Total Files

5

Last publish

Collaborators

  • gregorskii