Using GitClient
还没有人认领这个 Issue。
评估
调研方向
首先将已安装的 azure-devops==6.0.0b4 GitClient 与 azure-devops/.../v6_0/git/git_client_base.py 第 2249 行进行比较,然后检查 Connection 如何公开该客户端。使用精简脚本重现 AttributeError,并确定所报告的方法是否存在于已安装的软件包中;当版本/API 差异得到解释并确定了可执行的修复方案时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
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!
- 主要语言
- Python
- 星标
- 684
- 派生
- 218
- 平均合并
- 8 天 10 小时
- 30 天内合并 PR
- 1
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/azure-devops-python-api 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 55/100
-
难度 5/5 一周以上 新手友好度 25/100
-
难度 1/5 1 小时以内 新手友好度 55/100
-
难度 4/5 3-5 天 新手友好度 35/100
-
难度 3/5 1-2 天 新手友好度 45/100
查看 microsoft/azure-devops-python-api 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 90/100
learningequality/ricecooker#747 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 76/100
run-llama/llama_index#23199 ·
-
难度 2/5 1-3 小时 新手友好度 84/100
KhronosGroup/glTF-Blender-IO#2769 ·