Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Is there a way to know when a PR became ready to merge?

Clayton Taylor May 23, 2018

I'm pulling repo history from the Stash REST API and I'm trying to find a useful timestamp related to when a pull request becomes ready to merge (passes all of it's merge checks). It seems like there's not anything keeping track of state related to merge checks. "GET /rest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/merge" will get you the state right now, but I imagine that's querying multiple things to get you a singular response.

Is there a way to do this? 

1 answer

1 accepted

0 votes
Answer accepted
Kristy
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 23, 2018

No, there's no way to get 'notified' when a PR is ready to merge, but there is a recent suggestion (https://jira.atlassian.com/browse/BSERV-10664) for it.

Currently, the only way to find out is by using the GET endpoint you mentioned.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events