查找带注释的标签的ObjectId [英] Finding the ObjectId for Annotated Tags

查看:46
本文介绍了查找带注释的标签的ObjectId的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试获取提交的objectID(SHa1d).有没有办法检索值?

解决方案

您可以通过

但是,如果您想从提交的响应中获取带注释的标签的信息,恐怕目前无法实现.提交的响应当前不包含标签信息.

这是

I"m trying to get the objectID(SHa1d) of a commit. Is there a way to retrieve the value?

解决方案

You can get the objectId through Refs - List rest api.

https://dev.azure.com/{organization}/_apis/git/repositories/{repositoryId}/refs?filter=tags/&api-version=5.1-preview.1

However, if you want to get the information of annotatedtags from the commit's response, I am afraid this is currently not possible. The commit's response currently does not contain tags information.

Here is a uservoice for the same issue has been submitted on Developer Community forum. You can vote and add your comments for this feedback. Our PM and Product Group are reviewing these suggestion regularly and considering take it as plan.

In addition, you can retrieve tags based on commit id from Repos-> Tags in web UI.

这篇关于查找带注释的标签的ObjectId的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆