I am looking for a way to find which commit is a Merge Commit in a list of commits of a particular PR
repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/commits
I'm afraid the API endpoint doesn't have a field that separates the merged commit from the others.
Right now, I've gone ahead and created a feature request to add a field that will distinguish that here. - https://jira.atlassian.com/browse/BCLOUD-21185
You can upvote and watch it so that you'll be notified of updates from our product team. Please do note that we don't have an exact ETA for the feature request as all new features will be implemented according to our policy here.
May I ask if all your merged commit's messages have the format below?
"message" : "Merged in some_branch (pull request #123) ......"
If yes, maybe you can parse the "message" field with the format above?
Regards,
Mark C
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.