API call to get the pipeline(s) for a specific branch
Description
We are creating a build board for our projects and would like to have various web page views that display only the master
branch or develop
branch for each project since, for us, those two branches are the most important. The current pipeline API doesn't allow a user to get branch specific builds to, for example, ask for all builds of the master
branch and display the status of the most recent one.
Proposal
I propose an API call that may look something like,
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v4/projects/1/pipelines/master?per_page=1"
to get the most recent pipeline information from the master branch. I'm no expert with REST API's, but hopefully this is coherent enough that the experts could translate it into something that would fit nicely with the current API.