microsoft / microsoft/azure-devops-python-api

Using GitClient

オープン
#400 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
Python
スター
684
フォーク
218
平均マージ
8日 10時間
マージ済み PR(30日)
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!

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. 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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。