![](/img/trans.png)
[英]How can I invoke methods which are not specified on the IDL interface ? [Corba, JAVA]
[英]how can i upload a single file to specified branch of specified project by java code , as there is no suitable api interface
有人知道將整個文件上傳到 gitlab UI 門戶上特定項目的特定分支的功能的實現嗎?
我想上傳單個文件到指定項目的指定分支,但是沒有合適的api接口。 我檢查了 gitlab api 文檔,有"POST /projects/:id/uploads"
有助於將文件上傳到項目但不在項目分支下,還有"/projects/:id/repository/files/:filePath"
在項目的指定分支下創建一個新文件,但它只支持文件的內容,而不是整個文件。 所以,這兩個接口不能解決我的問題。
有人面臨這個問題嗎? 任何幫助將不勝感激!
你有提交 API: https : //docs.gitlab.com/ee/api/commits.html#create-a-commit-with-multiple-files-and-actions
這似乎是你所需要的。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.