Is it possible to filter pull requests in github by who merged it?
Something like:
is:merged is:pr mergedBy:username
but that doesn't work
EDIT: This was what i came up with (my goal was to create a top list of most active codereviewers in our project):
var result = {};
$.get("/api/v3/repos/atg/atgse/pulls?state=closed&per_page=100", function(pulls){
pulls.forEach(function(listPullItem){
$.get(listPullItem.url, function(pull) {
if (pull && pull.merged_by) {
result[pull.merged_by.login] = result[pull.merged_by.login] || 0;
result[pull.merged_by.login] ++;
}
});
});
});
Since it doesn't seem to be available directly through the GitHub search filters, you would need to list the pull request with the GitHub API, and select only the ones with the merged_by.login
you want.
You have an example in this coffee script which is able to parse the JSON answer and iterate through the pull request entries.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With