Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checking All the Merged Pull Requests. #146

Open
shivamgupta01 opened this issue Oct 28, 2019 · 3 comments
Open

Checking All the Merged Pull Requests. #146

shivamgupta01 opened this issue Oct 28, 2019 · 3 comments

Comments

@shivamgupta01
Copy link

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.

@CaptainMorgs
Copy link

I'd also like this.

@avoidik
Copy link

avoidik commented Feb 1, 2020

looks like not hard to implement

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

@petr0ff
Copy link

petr0ff commented Jul 12, 2020

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants