[英]Github get labels of PULL request from api
我使用Github API來獲取打開請求。 現在,我還想將標簽添加到我的視圖中。 我怎樣才能得到它們?
到目前為止,我使用的URL就是GET數據:
url =' https ://api.github.com/repos/'+ name_repository +'/ pulls?access_token ='+令牌;
要獲取拉取請求的標簽,您需要獲取關聯的問題(拉取請求基本上是附帶代碼的問題)。 因此,如果您在存儲庫foo/bar
具有拉取請求324
,則請獲取此問題以獲取該拉取請求的標簽:
https://api.github.com/repos/foo/bar/issues/324
參見https://developer.github.com/v3/pulls/#labels-assignees-and-milestones
如果您要獲取拉取請求列表,則同樣如此-您需要獲取問題列表並使用標簽。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.