【发布时间】:2019-10-03 06:43:22
【问题描述】:
我想使用 Microsoft TFS Python 库在 python 中提取变更集和受变更集影响的类的名称。 https://devopshq.github.io/tfs/index.html
我已使用 python 连接到 TFS,并且能够检索所有必需的工作项。我想提取与工作项关联的变更集。
我已经使用以下代码进行连接。
from tfs import TFSAPI
user="xxxxxxxxxxxxx"
password="xxxxxxxxxxxxxx"
from requests_ntlm import HttpNtlmAuth
client = TFSAPI("https://xyzjds.com", project="abc", user=user,password=password, auth_type=HttpNtlmAuth)
query = client.run_query('xxxxxxxxxxxxxxx')
workitems = query.workitems
现在我的所有工作项都不知道如何访问工作项的变更集。
【问题讨论】:
-
请分享您尝试过的代码以及没有成功的地方。
-
@ShaykiAbramczyk 我已经添加了代码
标签: python python-3.x python-2.7 dictionary tfs