The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Rest api to get Minimum approvals pull request

sheshachandra.tumkur-prasanna
December 3, 2024

Hi, 

I'm writing an automation to get the minimum approvals for a PR before merging it. I tried to search for rest api but couldn't find. 

Can someone tell me if there is an rest api to get the minimum approvals required for a PR  per repo? 

Thanks in advance. 

SheshaChandra

 

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
sheshachandra.tumkur-prasanna
December 3, 2024

Found it.. The rest api is below incase if it helps anyone. 
/rest/api/1.0/projects/"+projectKey+"/repos/"+repoName+"/settings/pull-requests"

TAGS
AUG Leaders

Atlassian Community Events