How to download a file or the whole repository as a .zip file in SDK?
還沒有人認領這個 Issue。
評估
研究方向
從 issue 中所示的 Git 用戶端 get_item 呼叫開始,將其下載行為與兩個 Azure DevOps REST URL 進行比較。檢查 SDK 如何公開傳回的 item 或 response stream,然後驗證檔案和 repository 下載產生的是可使用的內容,而不只是 item 物件。
由索引模型根據 Issue 內容生成。
描述
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)
- 主要語言
- Python
- 星號
- 684
- 分支
- 218
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
我們還沒有檢查這個專案的環境設定檔。先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
microsoft/azure-devops-python-api 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 55/100
-
難度 5/5 一週以上 新手友好度 25/100
-
難度 1/5 1 小時以內 新手友好度 55/100
-
難度 4/5 3-5 天 新手友好度 35/100
-
難度 3/5 1-2 天 新手友好度 45/100
查看 microsoft/azure-devops-python-api 的全部 Issue
相似的 Issue
-
ACK_WAITING HELP_WANTED UPDATE_CS
難度 2/5 1-3 小時 新手友好度 78/100
OWASP/CheatSheetSeries#2458 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 90/100
BasedHardware/omi#19711 ·
維護者通常 1 天內回覆
-
Qwen3_5MoeModel no longer returns router_logits, breaking aux loss with output_router_logits=True未關閉
難度 2/5 1-3 小時 新手友好度 78/100
huggingface/transformers#49172 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 82/100
vllm-project/vllm-metal#885 ·
維護者通常 1 天內回覆