Vcs_tag is null in CircleCI REST API

api

#1

When calling the REST API on https://circleci.com/api/v1.1/project/github/0xced/XCDYouTubeKit/54 I would expect the vcs_tag key to contain the tag 2.5.4, but it is null. The vcs_revision is correct , i.e. 97c8fc167493e38bb3adce918bf992776ea7d404. If you look at commit 97c8fc1 on GitHub, you can see that the tag 2.5.4 is associated.

Am I misunderstanding the vcs_tag key or is there a bug in the REST API?


#2

Thanks for reporting this. We currently only populate vcs_tag on builds that are triggered by pushing a tag.

Here’s a test project build where a tag was pushed to GitHub: https://circleci.com/gh/keybits/testing-test/174

and here’s the API endpoint for that build with vcs_tag populated: https://circleci.com/api/v1.1/project/github/keybits/testing-test/174


#3