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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.