public static IssueTimeline ( long repositoryId, int number ) : |
||
repositoryId | long | The Id of the repository |
number | int | The issue number |
Результат |
/// <summary> /// Gets all the various events that have occurred around an issue or pull request. /// </summary> /// <remarks> /// https://developer.github.com/v3/issues/timeline/#list-events-for-an-issue /// </remarks> /// <param name="owner">The owner of the repository</param> /// <param name="repo">The name of the repository</param> /// <param name="number">The issue number</param> /// <param name="options">Options for changing the API repsonse</param> public Task <IReadOnlyList <TimelineEventInfo> > GetAllForIssue(string owner, string repo, int number, ApiOptions options) { Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(repo, "repo"); Ensure.ArgumentNotNull(options, "options"); return(ApiConnection.GetAll <TimelineEventInfo>(ApiUrls.IssueTimeline(owner, repo, number), null, AcceptHeaders.IssueTimelineApiPreview, options)); }
/// <summary> /// Gets all the various events that have occurred around an issue or pull request. /// </summary> /// <remarks> /// https://developer.github.com/v3/issues/timeline/#list-events-for-an-issue /// </remarks> /// <param name="repositoryId">The Id of the repository</param> /// <param name="number">The issue number</param> /// <param name="options">Options for changing the API response</param> public Task <IReadOnlyList <TimelineEventInfo> > GetAllForIssue(long repositoryId, int number, ApiOptions options) { Ensure.ArgumentNotNull(options, nameof(options)); return(ApiConnection.GetAll <TimelineEventInfo>(ApiUrls.IssueTimeline(repositoryId, number), null, AcceptHeaders.Concat(AcceptHeaders.IssueTimelineApiPreview, AcceptHeaders.IssueEventsApiPreview), options)); }