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?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.