Skip to content

Expose the target commit ID through the tag API

What does this MR do?

Exposes a tags target commit ID through the tag API.

Are there points in the code the reviewer needs to double check?

This is my first contribution to GitLab - as such I'd double check everything! That being said, the change is only very small.

Why was this MR needed?

When using annotated tags, there is currently no way to identify the object ID of the annotated tag object itself, only the dereferenced target object that it points to. This MR adds a "target" property to the tag schema and exposes the object ID of the tag object through that. In the case of lightweight tags this will be the same as the "commit" ID, but in the case of annotated tags, this will be the object ID of the tag object itself.

Screenshots (if relevant)

API

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Edited by Robert Speicher

Merge request reports