microsoft / microsoft/azure-devops-python-api
list_pipelines() always throws AzureDevOpsAuthenticationError - azure-devops v7.1.0b4
オープン
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 684
- フォーク
- 218
- 平均マージ
- 8日 10時間
- マージ済み PR(30日)
- 1
説明
Hi,
I can't get the list of Azure Pipelines because the function list_pipelines() always throws an AzureDevOpsAuthenticationError.
Steps to reproduce the error:
- Create an Azure DevOps PAT with Full access.
- Install the version 7.1.0b4:
pip install azure-devops==7.1.0b4 - Replace the parameter values with you PAT and Azure DevOps parameters and run this code:
from azure.devops.connection import Connection
from msrest.authentication import BasicAuthentication
personal_access_token = "PAT"
organization = "contoso"
project = "project-one"
credentials = BasicAuthentication('', personal_access_token)
connection = Connection(base_url=f'https://dev.azure.com/{organization}', creds=credentials)
pipelines_client = connection.clients.get_pipelines_client()
pipelines_list = pipelines_client.list_pipelines(project)
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、提供された Python スニペットを azure-devops==7.1.0b4 と有効な Azure DevOps PAT を使って実行し、失敗を再現します。pipelines クライアントと認証処理を通じて list_pipelines() の呼び出しを追跡します。呼び出しが AzureDevOpsAuthenticationError を発生させずにパイプラインを一覧表示できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- azure, python
- 領域
- api, devops
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100