1
目前我對github api的調用返回了所有我的回購問題。Github api按照標籤使用octokit.net獲取問題
var repoIssueRequest = new RepositoryIssueRequest
{
State = itemState,// Is ItemState.Open or ItemState.Closed
Labels = new[] { label1, label2}// Trying to specify the labels I want to filter by, but there is no set, so this won't work
};
var gitRepoIssues = (_gitHubclient.Issue.GetForRepository(string owner, string repo name, repoIssueRequest)).Result.ToList();
我不想只指定是否打開或關閉問題,但也要標籤。規範(View Here)指定標籤作爲參數之一,但在octokit.net我無法指定標籤列表,因爲它只有getter訪問器
RepositoryIssueRequest實現IssueRequest,並且IssueRequest包含public Collection Labels {get ; }
目前我在獲取所有問題後按標籤進行過濾,但如果返回幾百個問題然後過濾此問題集合,則必須返回所有數據的分配。我如何指定標籤,以便縮短回收問題所需的時間?