Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Using GitClient

Open
#400 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
api

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/azure-devops-python-api

All issues in microsoft/azure-devops-python-api

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.