I trigger a jenkins build from master when a PR is merged to my master branch. And i have few post actions to be done after my build for which i need the source branch of the latest merged PR to master. Could you help me with the steps on how to get this data.
Welcome to the community.
This information can be obtained by using the REST API endpoint below, querying the source branch, and sorting it based on the updated date.
/repositories/{workspace}/{repo_slug}/pullrequests
API Reference: List pull requests
Querying and Sorting reference: Filter and sort API objects
Regards,
Mark C
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.