Using GitClient
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Start by comparing the installed azure-devops==6.0.0b4 GitClient with azure-devops/.../v6_0/git/git_client_base.py at line 2249, then check how Connection exposes that client. Reproduce the AttributeError with the condensed script and determine whether the reported method is present in the installed package; done means the version/API discrepancy is explained and an actionable fix is identified.
Written by the indexing model from the issue text.
Description
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!
- Dominant language
- Python
- Stars
- 684
- Forks
- 218
- Avg merge
- 8d 10h
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/azure-devops-python-api
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 1/5 Under an hour Newbie friendliness 55/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
All issues in microsoft/azure-devops-python-api
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
learningequality/ricecooker#747 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
run-llama/llama_index#23199 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
KhronosGroup/glTF-Blender-IO#2769 ·