Pipelines API not returning all pipelines for tag

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

12.7.5-ee pipeline API for scope tag returns only one pipeline when two exist

Project has two pipelines for tag

#164792 - running

#164793 - skipped

When executing

curl -s --header "PRIVATE-TOKEN: $token" "https://gitlab.mydomain.com/api/v4/projects/1/pipelines?scope=tags&ref=myTag"  | jq
[
  {
    "id": 164793,
    "sha": "d15c060d3b5c574b586db455e5139d6e7690bc20",
    "ref": "myTag",
    "status": "skipped",
    "created_at": "2020-04-07T15:54:06.473Z",
    "updated_at": "2020-04-07T15:54:06.473Z",
    "web_url": "https://gitlab.mydomain.com/org/project/pipelines/164793"
  }
]

Steps to reproduce

Commit something with "[ci skip]" and create a tag off of that commit. And then trigger tag pipeline manually through the api. run the curl from previous step.

  • Expected: to see both pipelines returned in the api call ?scope=tag&ref=myTag

  • Actual: only the skipped pipeline is returned via API (both are shown in the UI – one skipped and one running

Edited by 🤖 GitLab Bot 🤖