L7R7 / gitlab-ci-build-statuses

Get the statuses of the CI pipelines in a group in Gitlab CI and display them on an HTML page
Apache License 2.0
10 stars 1 forks source link

Fetch the build statuses for the project's default branch instead of master #2

Closed L7R7 closed 4 years ago

L7R7 commented 4 years ago

Right now, the build statuses that are shown represent the status of the latest pipeline of the master branch. This should be more flexible. The simplest way to do that is probably to take the project's default branch (which is included in the API response for a single project) for determining the pipeline status