microsoft / microsoft/azure-devops-python-api
Using GitClient
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 684
- 派生
- 218
- 平均合并
- 8 天 10 小时
- 30 天内合并 PR
- 1
描述
Hello, I'm trying to create a pull request status, but I'm getting the message:
AttributeError: 'GitClient' object has no attribute 'create_pull_request_status'
This is my condensed code:
from azure.devops.connection import Connection
from msrest.authentication import BasicAuthentication
import argparse
def main():
parser = _init_parser()
args = parser.parse_args()
credentials = BasicAuthentication('', args.token)
connection = Connection(base_url=args.organization_url, creds=credentials)
client = connection.clients.get_git_client()
response = client.create_pull_request_status(status, args.project_id, args.pull_request_id)
if __name__ == "__main__":
main()
What's odd to me is that the function should clearly exist: https://github.com/microsoft/azure-devops-python-api/blob/f5c89029b781799fc247f85059b1bcc8b53c2024/azure-devops/azure/devops/v6_0/git/git_client_base.py#L2249
I'm using
azure-devops==6.0.0b4
msrest==0.6.21
oauthlib==3.1.1.
Any help would be appreciated!
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先将已安装的 azure-devops==6.0.0b4 GitClient 与 azure-devops/.../v6_0/git/git_client_base.py 第 2249 行进行比较,然后检查 Connection 如何公开该客户端。使用精简脚本重现 AttributeError,并确定所报告的方法是否存在于已安装的软件包中;当版本/API 差异得到解释并确定了可执行的修复方案时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- api
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100