Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Merged PR report

Jim Sylvana
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 7, 2018

Our auditor requires a list of PRs for a period of time.  BitBucket hates the auditor and won't give that to her.  Why does BitBucket hate being in compliance?  We like compliance.  It's a good thing.  

1 answer

0 votes
Julius Davies [bit-booster.com]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 7, 2018

 

Are you on Bitbucket cloud or Bitbucket server (on-prem)?

 

What branch(es) were the PR's merged into?

Jim Sylvana
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 8, 2018

Cloud.

The point is that it's an audit report.  They don't want to look at a PR merged to a branch.  They want a report of all PRs merged, who merged them, who approved them and where they went in a date range.  

For the time being command line git gave me something to keep them busy but it looks like there's no reporting in bitbucket

Julius Davies [bit-booster.com]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 8, 2018

 

I'd use git CLI (command line) to grab all commits on a given branch within the date range, and then cross-reference them against the pertinent PR's using Bitbucket Cloud's REST API.

I haven't done this, so I'm not 100% confident it would work.  But the "/pullrequests/activity" API endpoint looks promising.

Example:

https://api.bitbucket.org/2.0/repositories/atlassian/stash-auto-unapprove-plugin/pullrequests/activity

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events