microsoft / microsoft/azure-devops-python-api
Using GitClient
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 684
- Forks
- 218
- Avg merge
- 8d 10h
- Merged PRs (30d)
- 1
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!
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.
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.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100