Skip to content

Instantly share code, notes, and snippets.

@ValdasK
Last active December 1, 2016 13:31
Show Gist options
  • Save ValdasK/479bc421a4b5c5e5f56aef5c08d9944e to your computer and use it in GitHub Desktop.
Save ValdasK/479bc421a4b5c5e5f56aef5c08d9944e to your computer and use it in GitHub Desktop.
Generate changelog from merges
$.getJSON('https://bitbucket.org/!api/2.0/repositories/ddibuildnew/ibuildnew/pullrequests?fields=%2Bvalues.participants%2C%2Bvalues.reviewers%2C%2Bvalues.comment_count%2C%2Bvalues.task_count%2C-size&pagelen=40&q=state%3D%22MERGED%22')
.done(function(res) {
var titles = [];
for (var i=0; i<res.values.length; i++) {
titles.push(res.values[i].title);
}
console.log("\n" + titles.join('\n'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment