microsoft / microsoft/azure-devops-python-api
How to download a file or the whole repository as a .zip file in SDK?
還沒有人認領這個 Issue。
- 主要語言
- Python
- 星號
- 684
- 分支
- 218
- 平均合併
- 8 天 10 小時
- 30 天內合併 PR
- 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 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從 issue 中所示的 Git 用戶端 get_item 呼叫開始,將其下載行為與兩個 Azure DevOps REST URL 進行比較。檢查 SDK 如何公開傳回的 item 或 response stream,然後驗證檔案和 repository 下載產生的是可使用的內容,而不只是 item 物件。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- azure, python
- 領域
- api
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100