stashy icon indicating copy to clipboard operation
stashy copied to clipboard

Checking All the Merged Pull Requests.

Open shivamgupta01 opened this issue 5 years ago • 3 comments

Hello All,

I wanted to know if I can see all the merged Pull request relates to a repository. Can someone tell me if there exists a function for that? or can we take it as a feature requests.

shivamgupta01 avatar Oct 28 '19 15:10 shivamgupta01

I'd also like this.

CaptainMorgs avatar Dec 12 '19 11:12 CaptainMorgs

looks like not hard to implement

/rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/pull-requests?state=MERGED

avoidik avatar Feb 01 '20 20:02 avoidik

I could do it like this: prs = stashy.projects[project].repos[repo].pull_requests.all(state='MERGED')

it will return a generator, so you can convert it to list: list(prs)

petr0ff avatar Jul 12 '20 12:07 petr0ff