1.0.0-alpha.3 • Published 8 years ago
konstructor-api-client v1.0.0-alpha.3
Konstructor API Client
:warning: this is a work-in-progress, don't use it yet :warning:
Make Konstructor calls from the command-line and Node.js.
npm install -g konstructor-api-client
then
konstructor cr \
--gateway test \
--type releaselog \
--owner-email me@example.com \
--summary "Just testing" \
--description "Testing description" \
--service "origami-buildservice ServiceModule"
or
const KonstructorApiClient = require('konstructor-api-client');
const apiClient = new KonstructorApiClient('test');
apiClient.createAndCloseChangeRequest('releaselog', {
ownerEmailAddress: 'me@example.com',
summaryOfChange: 'Just testing',
changeDescription: 'Testing description',
serviceIds: 'origami-buildservice ServiceModule'
}, {
closedByEmailAddress: 'me@example.com'
});