mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-06 07:16:09 +00:00
Add ProjectCard property to Issue Events model (#2102)
This commit is contained in:
@@ -20,7 +20,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The issue number</param>
|
||||
IObservable<EventInfo> GetAllForIssue(string owner, string name, int number);
|
||||
IObservable<IssueEvent> GetAllForIssue(string owner, string name, int number);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all events for the issue.
|
||||
@@ -30,7 +30,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The issue number</param>
|
||||
IObservable<EventInfo> GetAllForIssue(long repositoryId, int number);
|
||||
IObservable<IssueEvent> GetAllForIssue(long repositoryId, int number);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all events for the issue.
|
||||
@@ -42,7 +42,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The issue number</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<EventInfo> GetAllForIssue(string owner, string name, int number, ApiOptions options);
|
||||
IObservable<IssueEvent> GetAllForIssue(string owner, string name, int number, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all events for the issue.
|
||||
@@ -53,7 +53,7 @@ namespace Octokit.Reactive
|
||||
/// <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>
|
||||
IObservable<EventInfo> GetAllForIssue(long repositoryId, int number, ApiOptions options);
|
||||
IObservable<IssueEvent> GetAllForIssue(long repositoryId, int number, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all events for the repository.
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The issue number</param>
|
||||
public IObservable<EventInfo> GetAllForIssue(string owner, string name, int number)
|
||||
public IObservable<IssueEvent> GetAllForIssue(string owner, string name, int number)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
@@ -48,7 +48,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The issue number</param>
|
||||
public IObservable<EventInfo> GetAllForIssue(long repositoryId, int number)
|
||||
public IObservable<IssueEvent> GetAllForIssue(long repositoryId, int number)
|
||||
{
|
||||
return GetAllForIssue(repositoryId, number, ApiOptions.None);
|
||||
}
|
||||
@@ -63,13 +63,13 @@ namespace Octokit.Reactive
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The issue number</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<EventInfo> GetAllForIssue(string owner, string name, int number, ApiOptions options)
|
||||
public IObservable<IssueEvent> GetAllForIssue(string owner, string name, int number, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
return _connection.GetAndFlattenAllPages<EventInfo>(ApiUrls.IssuesEvents(owner, name, number), options);
|
||||
return _connection.GetAndFlattenAllPages<IssueEvent>(ApiUrls.IssuesEvents(owner, name, number), options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -81,11 +81,11 @@ namespace Octokit.Reactive
|
||||
/// <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 IObservable<EventInfo> GetAllForIssue(long repositoryId, int number, ApiOptions options)
|
||||
public IObservable<IssueEvent> GetAllForIssue(long repositoryId, int number, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
return _connection.GetAndFlattenAllPages<EventInfo>(ApiUrls.IssuesEvents(repositoryId, number), options);
|
||||
return _connection.GetAndFlattenAllPages<IssueEvent>(ApiUrls.IssuesEvents(repositoryId, number), options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user