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.
Hi @swetha ramakrishnan,
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
It looks like you're new here. Sign in or register to get started.