Creates release notes in Markdown format from a Bamboo build.
npm install --save bamboo-release-notes
var bambooReleaseNotes = require('bamboo-release-notes');
bambooReleaseNotes({
bambooServer: 'http://user:pass@bamboo.mydomain.com:8085',
buildPlan: 'PLAN-KEY',
buildNumber: '123'
}).then(function (result) {
console.log(result); // Prints the Markdown document
});
Note: This module assumes that fetch
and Promise
are available in the global namespace. I suggest to import the es6-promise and isomorphic-fetch modules, so it works both on the server as well as in the browser.
MIT