microsoft / microsoft/azure-devops-python-api
How to download a file or the whole repository as a .zip file in SDK?
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 684
- フォーク
- 218
- 平均マージ
- 8日 10時間
- マージ済み PR(30日)
- 1
説明
I can successfully download a file or folder if sending the request through a web browser.
-
Download the repostiroy as a .zip file
https://dev.azure.com/{organization}/{project}/_apis/git/repositories/{repositoryId}/items?path=/&$format=zip&download=true -
Download a file
https://dev.azure.com/{organization}/{project}/_apis/git/repositories/{repositoryId}/items?path=/folder1/folder2/file3.txt&download=true
But using the SDK, nothing happened though get_item returned the right object.
item = git_client.get_item(repo.id, path="/folder1/folder2/file3.txt", download=True)
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Issue に示されている Git クライアントの get_item 呼び出しから始め、そのダウンロード動作を 2 つの Azure DevOps REST URL と比較します。SDK が返された item または response stream をどのように公開しているかを確認し、続いてファイルとリポジトリのダウンロードが item オブジェクトだけでなく、利用可能なコンテンツを生成することを検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- azure, python
- 領域
- api
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100