circleci-api-helper
v1.0.8
Published
Simplify and help people use the CircleCI API (v2)
Downloads
15
Readme
circleci-api-helper
Simplify and help people use the CircleCI API (v2) using node.js
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