项目作者: LekoArts

项目描述 :
Gatsby Source Plugin for CircleCI
高级语言: TypeScript
项目地址: git://github.com/LekoArts/gatsby-source-circleci.git
创建时间: 2019-03-02T14:11:25Z
项目社区:https://github.com/LekoArts/gatsby-source-circleci

开源协议:

下载


gatsby-source-circleci

Source plugin for CircleCI’s API.

Please Note: This plugin was initially created to deliver data for my dashboard and hence only queries the user and projects. If you need more functionality, I’d be happy to review your PR and merge it into this plugin!

Install

  1. npm install --save gatsby-source-circleci

How to use

Prerequisites

Go to Account dashboard and create a new API token.

Save the API key in an environment file like:

  1. CIRCLECI_KEY=your-api-token-here

gatsby-config

Add the plugin and define the API key.

  1. module.exports = {
  2. plugins: [
  3. {
  4. resolve: 'gatsby-source-circleci',
  5. options: {
  6. apiKey: process.env.CIRCLECI_KEY,
  7. }
  8. }
  9. ]
  10. }