microsoft / microsoft/azure-devops-python-api
How can I create a pull request that auto includes associated work item for the commits?
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 684
- 派生
- 218
- 平均合并
- 8 天 10 小时
- 30 天内合并 PR
- 1
描述
I'm trying to automate post-release processing. I'm running this code:
pull_request = {
"title": title,
"description": description,
"sourceRefName": "refs/heads/" + source_branch,
"targetRefName": "refs/heads/" + target_branch,
}
response = self._git_client.create_pull_request(pull_request, repository_id=repo_id)
It creates the pull request, but doesn't link any work items (like if I create it in the GUI). When I query the specific commits I can't seem to get the associated work items either, but the GUI is aware of them. Is there an option I need to specify to get this to automatically work, and if not, how can I find the associated work items to build the list myself?
Thanks,
-Derian Reuss
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
先从 GitClient.create_pull_request 和 issue 中描述的 commit-query path 入手,然后将它们与 Azure DevOps GUI 关联 work item 的方式进行比较。确定 Python API 是否提供选项或检索方法;完成的标准是记录受支持的处理方式,或明确指出 API 缺失的行为。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- azure, python
- 领域
- api, devops
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100