circleci-api-helper

1.0.8 • Public • Published

circleci-api-helper

Simplify and help people use the CircleCI API (v2) using node.js

npm version CircleCI tested with jest License: MIT

Add to your node.js project

yarn add circleci-api-helper

Files in CI or local that the helper uses for requests to the CircelCI API (v2)

/utils/circleToken.js (Required)
/utils/projectSlug.js (Required)
/utils/workflowName.js (Required)
/utils/workflowID.js

Examples of these values

circleToken: FAKEGUID3adas23d69e532432d3x1f534852fs52
projectSlug: gh/johnhiggs/circleci-api-helper
workflowName: default-flow

Trigger workflow (auto generates latest workflow ID based off of required values (requires circleToken, projectSlug, & workflowName)

yarn runWorkflow

Simply rerun an existing workflow (set a value to /utils/workflowID.js)

yarn runSpecificWorkflow

Readme

Keywords

none

Package Sidebar

Install

npm i circleci-api-helper

Weekly Downloads

0

Version

1.0.8

License

MIT

Unpacked Size

153 kB

Total Files

14

Last publish

Collaborators

  • johnhiggs