简体   繁体   English

检查分支被锁定的次数以及锁定的可能原因 Azure DevOps Rest API

[英]Check the number of times a branch has been locked and possible causes of lock Azure DevOps Rest API

Is there a way to check the number of times a branch has been locked in a given month in Azure DevOps?有没有办法在 Azure DevOps 中检查给定月份某个分支被锁定的次数? I know there is an Api that tells if a branch is locked or not.我知道有一个 Api 可以告诉分支是否被锁定。 I am hoping there is a way to get the number of times branch has been locked and possible causes of the lock?我希望有一种方法可以获取分支被锁定的次数以及锁定的可能原因?

Unfortunately, there is no such REST API to get the number of times branch has been locked and possible causes of the lock.不幸的是,没有这样的 REST API 来获取分支被锁定的次数和锁定的可能原因。

The most possible way is to use the Auditing logs , but per my test, it will also not include the logs of the lock branch operation.最可能的方法是使用Auditing logs ,但根据我的测试,它也不包括锁分支操作的日志。

If you want to help improve the Azure DevOps with this feature, you could post your idea here- https://developercommunity.visualstudio.com/report?entry=suggestion&space=21&preview2=true如果您想通过此功能帮助改进 Azure DevOps,您可以在此处发布您的想法 - https://developercommunity.visualstudio.com/report?entry=suggestion&space=21&preview2=true

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM