mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-06 07:16:09 +00:00
Compare commits
37 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f9fb116eab | ||
|
|
6eefc5921b | ||
|
|
82ce1d5031 | ||
|
|
bd51f93930 | ||
|
|
28ae4ef853 | ||
|
|
8b0945c1b5 | ||
|
|
d315b32033 | ||
|
|
160a72381e | ||
|
|
21559ef985 | ||
|
|
c5ce608639 | ||
|
|
799d464e04 | ||
|
|
35f1784781 | ||
|
|
148162a34b | ||
|
|
8199c03793 | ||
|
|
6bb0408582 | ||
|
|
6565a07974 | ||
|
|
16cea259dd | ||
|
|
c2aee1ac54 | ||
|
|
b208057af6 | ||
|
|
bdc16944ae | ||
|
|
1053a2045d | ||
|
|
9a3177e385 | ||
|
|
7d54cb0d85 | ||
|
|
6c43183837 | ||
|
|
f5ee959c5c | ||
|
|
f8b9f7c280 | ||
|
|
f937f56b0a | ||
|
|
5d15e86e44 | ||
|
|
92792acbb7 | ||
|
|
615dee9c30 | ||
|
|
a31734014d | ||
|
|
110b4e3706 | ||
|
|
285609551f | ||
|
|
5f4d939dd8 | ||
|
|
a22e7a6e9c | ||
|
|
cd1835326b | ||
|
|
4ca8f1cd2c |
2
.github/workflows/add_to_octokit_project.yml
vendored
2
.github/workflows/add_to_octokit_project.yml
vendored
@@ -12,7 +12,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
continue-on-error: true
|
||||
steps:
|
||||
- uses: actions/add-to-project@v0.5.0
|
||||
- uses: actions/add-to-project@v1.0.1
|
||||
with:
|
||||
project-url: https://github.com/orgs/octokit/projects/10
|
||||
github-token: ${{ secrets.OCTOKITBOT_PROJECT_ACTION_TOKEN }}
|
||||
|
||||
4
.github/workflows/immediate-response.yml
vendored
4
.github/workflows/immediate-response.yml
vendored
@@ -19,11 +19,11 @@ jobs:
|
||||
run: echo "NUMBER=${{ github.event.issue.number || github.event.pull_request.number }}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Respond to issue or PR
|
||||
uses: peter-evans/create-or-update-comment@v3
|
||||
uses: peter-evans/create-or-update-comment@v4
|
||||
with:
|
||||
issue-number: ${{ steps.extract.outputs.NUMBER }}
|
||||
body: >
|
||||
👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday!
|
||||
We have a [process in place](https://github.com/octokit/.github/blob/main/community/prioritization_response.md#overview) for prioritizing and responding to your input.
|
||||
Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labled with `Status: Up for grabs`.
|
||||
Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with `Status: Up for grabs`.
|
||||
You & others like you are the reason all of this works! So thank you & happy coding! 🚀
|
||||
|
||||
5
.gitignore
vendored
5
.gitignore
vendored
@@ -105,4 +105,7 @@ tools/*
|
||||
coverage-results/*
|
||||
|
||||
# Rider
|
||||
**/.idea/*
|
||||
**/.idea/*
|
||||
|
||||
# macOS
|
||||
.DS_Store
|
||||
8
.vscode/settings.json
vendored
8
.vscode/settings.json
vendored
@@ -11,5 +11,11 @@
|
||||
"files.insertFinalNewline": true,
|
||||
"editor.detectIndentation": false,
|
||||
"editor.tabSize": 2,
|
||||
"editor.insertSpaces": true
|
||||
"editor.insertSpaces": true,
|
||||
"[csharp]": {
|
||||
"editor.tabSize": 4
|
||||
},
|
||||
"explorer.fileNesting.patterns": {
|
||||
"*.cs": "I${capture}.cs",
|
||||
},
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -26,8 +26,8 @@ namespace Octokit.Generators
|
||||
class AsyncPaginationExtensionsGenerator
|
||||
{
|
||||
|
||||
private const string HEADER = (
|
||||
@"using System;
|
||||
private const string HEADER = (
|
||||
@"using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Octokit.AsyncPaginationExtension
|
||||
@@ -44,8 +44,8 @@ namespace Octokit.AsyncPaginationExtension
|
||||
private const int DEFAULT_PAGE_SIZE = 30;
|
||||
");
|
||||
|
||||
private const string FOOTER = (
|
||||
@"
|
||||
private const string FOOTER = (
|
||||
@"
|
||||
}
|
||||
}");
|
||||
|
||||
@@ -63,15 +63,17 @@ namespace Octokit.AsyncPaginationExtension
|
||||
var enumOptions = new EnumerationOptions { RecurseSubdirectories = true };
|
||||
var paginatedCallRegex = new Regex(@".*Task<IReadOnlyList<(?<returnType>\w+)>>\s*(?<name>\w+)(?<template><.*>)?\((?<arg>.*?)(, )?ApiOptions \w*\);");
|
||||
|
||||
foreach (var file in Directory.EnumerateFiles(root, "I*.cs", enumOptions)) {
|
||||
var type = Path.GetFileNameWithoutExtension(file);
|
||||
foreach (var file in Directory.EnumerateFiles(root, "I*.cs", enumOptions))
|
||||
{
|
||||
var type = Path.GetFileNameWithoutExtension(file);
|
||||
|
||||
foreach (var line in File.ReadAllLines(file)) {
|
||||
var match = paginatedCallRegex.Match(line);
|
||||
foreach (var line in File.ReadAllLines(file))
|
||||
{
|
||||
var match = paginatedCallRegex.Match(line);
|
||||
|
||||
if (!match.Success) { continue; }
|
||||
sb.Append(BuildBodyFromTemplate(match, type));
|
||||
}
|
||||
if (!match.Success) { continue; }
|
||||
sb.Append(BuildBodyFromTemplate(match, type));
|
||||
}
|
||||
}
|
||||
|
||||
sb.Append(FOOTER);
|
||||
@@ -101,12 +103,14 @@ namespace Octokit.AsyncPaginationExtension
|
||||
: $"options => t.{name}{templateStr}({string.Join(' ', splitArgs.Where((_, i) => i % 2 == 1))}, options)";
|
||||
|
||||
var docArgs = string.Join(", ", splitArgs.Where((_, i) => i % 2 == 0)).Replace('<', '{').Replace('>', '}');
|
||||
if (docArgs.Length != 0) {
|
||||
docArgs += ", ";
|
||||
if (docArgs.Length != 0)
|
||||
{
|
||||
docArgs += ", ";
|
||||
}
|
||||
|
||||
if (arg.Length != 0) {
|
||||
arg += ", ";
|
||||
if (arg.Length != 0)
|
||||
{
|
||||
arg += ", ";
|
||||
}
|
||||
|
||||
return ($@"
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="teamId">The teamId to update LDAP mapping</param>
|
||||
/// <param name="newLdapMapping">The <see cref="NewLdapMapping"/></param>
|
||||
/// <returns>The <see cref="Team"/> object.</returns>
|
||||
IObservable<Team> UpdateTeamMapping(int teamId, NewLdapMapping newLdapMapping);
|
||||
IObservable<Team> UpdateTeamMapping(long teamId, NewLdapMapping newLdapMapping);
|
||||
|
||||
/// <summary>
|
||||
/// Queue an LDAP Sync job for a team on a GitHub Enterprise appliance (must be Site Admin user).
|
||||
@@ -53,6 +53,6 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="teamId">The teamId to update LDAP mapping</param>
|
||||
/// <returns>The <see cref="LdapSyncResponse"/> of the queue request.</returns>
|
||||
IObservable<LdapSyncResponse> QueueSyncTeamMapping(int teamId);
|
||||
IObservable<LdapSyncResponse> QueueSyncTeamMapping(long teamId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="teamId">The teamId to update LDAP mapping</param>
|
||||
/// <param name="newLdapMapping">The <see cref="NewLdapMapping"/></param>
|
||||
/// <returns>The <see cref="Team"/> object.</returns>
|
||||
public IObservable<Team> UpdateTeamMapping(int teamId, NewLdapMapping newLdapMapping)
|
||||
public IObservable<Team> UpdateTeamMapping(long teamId, NewLdapMapping newLdapMapping)
|
||||
{
|
||||
return _client.UpdateTeamMapping(teamId, newLdapMapping).ToObservable();
|
||||
}
|
||||
@@ -71,7 +71,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="teamId">The teamId to update LDAP mapping</param>
|
||||
/// <returns>The <see cref="LdapSyncResponse"/> of the queue request.</returns>
|
||||
public IObservable<LdapSyncResponse> QueueSyncTeamMapping(int teamId)
|
||||
public IObservable<LdapSyncResponse> QueueSyncTeamMapping(long teamId)
|
||||
{
|
||||
return _client.QueueSyncTeamMapping(teamId).ToObservable();
|
||||
}
|
||||
|
||||
@@ -117,7 +117,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="enterprise">The enterprise name</param>
|
||||
/// <param name="runnerGroupId">The runner group id</param>
|
||||
IObservable<Organization> ListAllRunnerGroupOrganizationsForEnterprise(string enterprise, long runnerGroupId);
|
||||
IObservable<OrganizationsResponse> ListAllRunnerGroupOrganizationsForEnterprise(string enterprise, long runnerGroupId);
|
||||
|
||||
/// <summary>
|
||||
/// List organization access to a self-hosted runner group in an enterprise
|
||||
@@ -128,7 +128,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="enterprise">The enterprise name</param>
|
||||
/// <param name="runnerGroupId">The runner group id</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<Organization> ListAllRunnerGroupOrganizationsForEnterprise(string enterprise, long runnerGroupId, ApiOptions options);
|
||||
IObservable<OrganizationsResponse> ListAllRunnerGroupOrganizationsForEnterprise(string enterprise, long runnerGroupId, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// List repository access to a self-hosted runner group in an organization
|
||||
@@ -138,7 +138,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="org">The organization name</param>
|
||||
/// <param name="runnerGroupId">The runner group id</param>
|
||||
IObservable<Repository> ListAllRunnerGroupRepositoriesForOrganization(string org, long runnerGroupId);
|
||||
IObservable<RepositoriesResponse> ListAllRunnerGroupRepositoriesForOrganization(string org, long runnerGroupId);
|
||||
|
||||
/// <summary>
|
||||
/// List repository access to a self-hosted runner group in an organization
|
||||
@@ -149,7 +149,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="org">The organization name</param>
|
||||
/// <param name="runnerGroupId">The runner group id</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<Repository> ListAllRunnerGroupRepositoriesForOrganization(string org, long runnerGroupId, ApiOptions options);
|
||||
IObservable<RepositoriesResponse> ListAllRunnerGroupRepositoriesForOrganization(string org, long runnerGroupId, ApiOptions options);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace Octokit.Reactive
|
||||
public interface IObservableActionsWorkflowsClient
|
||||
{
|
||||
/// <summary>
|
||||
/// Manually triggers a GitHub Actions workflow run in a repository by Id.
|
||||
/// Manually triggers a GitHub Actions workflow run in a repository by slug.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// https://developer.github.com/v3/actions/workflows/#create-a-workflow-dispatch-event
|
||||
@@ -24,7 +24,7 @@ namespace Octokit.Reactive
|
||||
IObservable<Unit> CreateDispatch(string owner, string name, string workflowFileName, CreateWorkflowDispatch createDispatch);
|
||||
|
||||
/// <summary>
|
||||
/// Manually triggers a GitHub Actions workflow run in a repository by Id.
|
||||
/// Manually triggers a GitHub Actions workflow run in a repository by slug.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// https://developer.github.com/v3/actions/workflows/#create-a-workflow-dispatch-event
|
||||
@@ -35,6 +35,27 @@ namespace Octokit.Reactive
|
||||
/// <param name="createDispatch">The parameters to use to trigger the workflow run.</param>
|
||||
IObservable<Unit> CreateDispatch(string owner, string name, long workflowId, CreateWorkflowDispatch createDispatch);
|
||||
|
||||
/// <summary>
|
||||
/// Manually triggers a GitHub Actions workflow run in a repository by Id.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// https://developer.github.com/v3/actions/workflows/#create-a-workflow-dispatch-event
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository.</param>
|
||||
/// <param name="workflowFileName">The workflow file name.</param>
|
||||
/// <param name="createDispatch">The parameters to use to trigger the workflow run.</param>
|
||||
IObservable<Unit> CreateDispatch(long repositoryId, string workflowFileName, CreateWorkflowDispatch createDispatch);
|
||||
|
||||
/// <summary>
|
||||
/// Manually triggers a GitHub Actions workflow run in a repository by Id.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// https://developer.github.com/v3/actions/workflows/#create-a-workflow-dispatch-event
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository.</param>
|
||||
/// <param name="workflowId">The Id of the workflow.</param>
|
||||
/// <param name="createDispatch">The parameters to use to trigger the workflow run.</param>
|
||||
IObservable<Unit> CreateDispatch(long repositoryId, long workflowId, CreateWorkflowDispatch createDispatch);
|
||||
/// <summary>
|
||||
/// Disables a specific workflow in a repository by Id.
|
||||
/// </summary>
|
||||
|
||||
@@ -51,20 +51,20 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <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>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="assignees">List of names of assignees to add</param>
|
||||
/// <returns></returns>
|
||||
IObservable<Issue> AddAssignees(string owner, string name, int number, AssigneesUpdate assignees);
|
||||
IObservable<Issue> AddAssignees(string owner, string name, int issueNumber, AssigneesUpdate assignees);
|
||||
|
||||
/// <summary>
|
||||
/// Remove assignees from a specified Issue.
|
||||
/// </summary>
|
||||
/// <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>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="assignees">List of assignees to remove </param>
|
||||
/// <returns></returns>
|
||||
IObservable<Issue> RemoveAssignees(string owner, string name, int number, AssigneesUpdate assignees);
|
||||
IObservable<Issue> RemoveAssignees(string owner, string name, int issueNumber, AssigneesUpdate assignees);
|
||||
|
||||
/// <summary>
|
||||
/// Checks to see if a user is an assignee for a repository.
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace Octokit.Reactive
|
||||
/// <returns>An <see cref="Authorization"/></returns>
|
||||
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
|
||||
Justification = "It's fiiiine. It's fine. Trust us.")]
|
||||
IObservable<Authorization> Get(int id);
|
||||
IObservable<Authorization> Get(long id);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new personal token for the authenticated user.
|
||||
@@ -132,7 +132,7 @@ namespace Octokit.Reactive
|
||||
string twoFactorAuthenticationCode);
|
||||
|
||||
/// <summary>
|
||||
/// This method will create a new authorization for the specified OAuth application, only if an authorization
|
||||
/// This method will create a new authorization for the specified OAuth application, only if an authorization
|
||||
/// for that application doesn’t already exist for the user. It returns the user’s token for the application
|
||||
/// if one exists. Otherwise, it creates one.
|
||||
/// </summary>
|
||||
@@ -143,7 +143,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="clientId">Client Id for the OAuth application that is requesting the token</param>
|
||||
/// <param name="clientSecret">The client secret</param>
|
||||
/// <param name="newAuthorization">Defines the scopes and metadata for the token</param>
|
||||
/// <exception cref="AuthorizationException">Thrown when the user does not have permission to make
|
||||
/// <exception cref="AuthorizationException">Thrown when the user does not have permission to make
|
||||
/// this request. Check </exception>
|
||||
/// <exception cref="TwoFactorRequiredException">Thrown when the current account has two-factor
|
||||
/// authentication enabled.</exception>
|
||||
@@ -154,19 +154,19 @@ namespace Octokit.Reactive
|
||||
NewAuthorization newAuthorization);
|
||||
|
||||
/// <summary>
|
||||
/// This method will create a new authorization for the specified OAuth application, only if an authorization
|
||||
/// This method will create a new authorization for the specified OAuth application, only if an authorization
|
||||
/// for that application doesn’t already exist for the user. It returns the user’s token for the application
|
||||
/// if one exists. Otherwise, it creates one.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See <a href="http://developer.github.com/v3/oauth/#get-or-create-an-authorization-for-a-specific-app">API
|
||||
/// See <a href="http://developer.github.com/v3/oauth/#get-or-create-an-authorization-for-a-specific-app">API
|
||||
/// documentation</a> for more details.
|
||||
/// </remarks>
|
||||
/// <param name="clientId">Client Id for the OAuth application that is requesting the token</param>
|
||||
/// <param name="clientSecret">The client secret</param>
|
||||
/// <param name="newAuthorization">Defines the scopes and metadata for the token</param>
|
||||
/// <param name="twoFactorAuthenticationCode">The two-factor authentication code provided by the user</param>
|
||||
/// <exception cref="AuthorizationException">Thrown when the user does not have permission to make
|
||||
/// <exception cref="AuthorizationException">Thrown when the user does not have permission to make
|
||||
/// this request. Check </exception>
|
||||
/// <exception cref="TwoFactorChallengeFailedException">Thrown when the two-factor code is not
|
||||
/// valid.</exception>
|
||||
@@ -219,14 +219,14 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The id of the <see cref="Authorization"/></param>
|
||||
/// <param name="authorizationUpdate">The changes to make to the authorization</param>
|
||||
/// <returns></returns>
|
||||
IObservable<Authorization> Update(int id, AuthorizationUpdate authorizationUpdate);
|
||||
IObservable<Authorization> Update(long id, AuthorizationUpdate authorizationUpdate);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes the specified <see cref="Authorization"/>.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This method requires authentication.
|
||||
/// See the <a href="http://developer.github.com/v3/oauth/#delete-an-authorization">API
|
||||
/// See the <a href="http://developer.github.com/v3/oauth/#delete-an-authorization">API
|
||||
/// documentation</a> for more details.
|
||||
/// </remarks>
|
||||
/// <param name="id">The system-wide Id of the authorization to delete</param>
|
||||
@@ -234,14 +234,14 @@ namespace Octokit.Reactive
|
||||
/// Thrown when the current user does not have permission to make the request.
|
||||
/// </exception>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
IObservable<Unit> Delete(int id);
|
||||
IObservable<Unit> Delete(long id);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes the specified <see cref="Authorization"/>.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This method requires authentication.
|
||||
/// See the <a href="http://developer.github.com/v3/oauth/#delete-an-authorization">API
|
||||
/// See the <a href="http://developer.github.com/v3/oauth/#delete-an-authorization">API
|
||||
/// documentation</a> for more details.
|
||||
/// </remarks>
|
||||
/// <param name="id">The system-wide Id of the authorization to delete</param>
|
||||
@@ -250,6 +250,6 @@ namespace Octokit.Reactive
|
||||
/// Thrown when the current user does not have permission to make the request.
|
||||
/// </exception>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
IObservable<Unit> Delete(int id, string twoFactorAuthenticationCode);
|
||||
IObservable<Unit> Delete(long id, string twoFactorAuthenticationCode);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,20 +17,20 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#create-reaction-for-a-commit-comment</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="reaction">The reaction to create </param>
|
||||
/// <returns></returns>
|
||||
IObservable<Reaction> Create(string owner, string name, int number, NewReaction reaction);
|
||||
IObservable<Reaction> Create(string owner, string name, long commentId, NewReaction reaction);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a reaction for a specified Commit Comment
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#create-reaction-for-a-commit-comment</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="reaction">The reaction to create </param>
|
||||
/// <returns></returns>
|
||||
IObservable<Reaction> Create(long repositoryId, int number, NewReaction reaction);
|
||||
IObservable<Reaction> Create(long repositoryId, long commentId, NewReaction reaction);
|
||||
|
||||
/// <summary>
|
||||
/// List reactions for a specified Commit Comment
|
||||
@@ -38,9 +38,9 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-a-commit-comment</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <returns></returns>
|
||||
IObservable<Reaction> GetAll(string owner, string name, int number);
|
||||
IObservable<Reaction> GetAll(string owner, string name, long commentId);
|
||||
|
||||
/// <summary>
|
||||
/// List reactions for a specified Commit Comment
|
||||
@@ -48,29 +48,29 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-a-commit-comment</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
/// <returns></returns>
|
||||
IObservable<Reaction> GetAll(string owner, string name, int number, ApiOptions options);
|
||||
IObservable<Reaction> GetAll(string owner, string name, long commentId, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// List reactions for a specified Commit Comment
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-a-commit-comment</remarks>
|
||||
/// <param name="repositoryId">The owner of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <returns></returns>
|
||||
IObservable<Reaction> GetAll(long repositoryId, int number);
|
||||
IObservable<Reaction> GetAll(long repositoryId, long commentId);
|
||||
|
||||
/// <summary>
|
||||
/// List reactions for a specified Commit Comment
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-a-commit-comment</remarks>
|
||||
/// <param name="repositoryId">The owner of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
/// <returns></returns>
|
||||
IObservable<Reaction> GetAll(long repositoryId, int number, ApiOptions options);
|
||||
IObservable<Reaction> GetAll(long repositoryId, long commentId, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes a reaction for a specified Commit Comment
|
||||
@@ -81,7 +81,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="reactionId">The reaction id</param>
|
||||
/// <returns></returns>
|
||||
IObservable<Unit> Delete(string owner, string name, int commentId, int reactionId);
|
||||
IObservable<Unit> Delete(string owner, string name, long commentId, long reactionId);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes a reaction for a specified Commit Comment
|
||||
@@ -91,6 +91,6 @@ namespace Octokit.Reactive
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="reactionId">The reaction id</param>
|
||||
/// <returns></returns>
|
||||
IObservable<Unit> Delete(long repositoryId, int commentId, int reactionId);
|
||||
IObservable<Unit> Delete(long repositoryId, long commentId, long reactionId);
|
||||
}
|
||||
}
|
||||
|
||||
22
Octokit.Reactive/Clients/IObservableDependencyGraphClient.cs
Normal file
22
Octokit.Reactive/Clients/IObservableDependencyGraphClient.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
namespace Octokit.Reactive
|
||||
{
|
||||
/// <summary>
|
||||
/// A client for GitHub's Dependency Graph API.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/en/rest/dependency-graph">Git Dependency Graph API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
public interface IObservableDependencyGraphClient
|
||||
{
|
||||
/// <summary>
|
||||
/// Client for getting a dependency comparison between two commits.
|
||||
/// </summary>
|
||||
IObservableDependencyReviewClient DependencyReview { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Client for submitting dependency snapshots.
|
||||
/// </summary>
|
||||
IObservableDependencySubmissionClient DependencySubmission { get; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
|
||||
using System;
|
||||
|
||||
namespace Octokit.Reactive
|
||||
{
|
||||
/// <summary>
|
||||
/// A client for GitHub's Dependency Review API.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/en/rest/dependency-graph/dependency-review">Git Dependency Review API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
public interface IObservableDependencyReviewClient
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets all <see cref="DependencyDiff"/>s for the specified repository.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/en/rest/dependency-graph/dependency-review">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="base">The base revision</param>
|
||||
/// <param name="head">The head revision</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
IObservable<DependencyDiff> GetAll(string owner, string name, string @base, string head);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all <see cref="DependencyDiff"/>s for the specified repository.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/en/rest/dependency-graph/dependency-review">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="base">The base revision</param>
|
||||
/// <param name="head">The head revision</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
IObservable<DependencyDiff> GetAll(long repositoryId, string @base, string head);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
|
||||
namespace Octokit.Reactive
|
||||
{
|
||||
/// <summary>
|
||||
/// A client for GitHub's Dependency Submission API.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/dependency-graph/dependency-submission">Dependency Submission API documentation</a> for more details.
|
||||
/// </remarks>
|
||||
public interface IObservableDependencySubmissionClient
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates a new dependency snapshot.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/dependency-graph/dependency-submission">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="owner">The repository's owner</param>
|
||||
/// <param name="name">The repository's name</param>
|
||||
/// <param name="snapshot">The dependency snapshot to create</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs</exception>
|
||||
/// <returns>A <see cref="DependencySnapshotSubmission"/> instance for the created snapshot</returns>
|
||||
IObservable<DependencySnapshotSubmission> Create(string owner, string name, NewDependencySnapshot snapshot);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new dependency snapshot.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/dependency-graph/dependency-submission">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="snapshot">The dependency snapshot to create</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs</exception>
|
||||
/// <returns>A <see cref="DependencySnapshotSubmission"/> instance for the created snapshot</returns>
|
||||
IObservable<DependencySnapshotSubmission> Create(long repositoryId, NewDependencySnapshot snapshot);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="owner">The owner of the repository.</param>
|
||||
/// <param name="name">The name of the repository.</param>
|
||||
/// <param name="deploymentId">The id of the deployment.</param>
|
||||
IObservable<DeploymentStatus> GetAll(string owner, string name, int deploymentId);
|
||||
IObservable<DeploymentStatus> GetAll(string owner, string name, long deploymentId);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all the statuses for the given deployment. Any user with pull access to a repository can
|
||||
@@ -32,7 +32,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository.</param>
|
||||
/// <param name="deploymentId">The id of the deployment.</param>
|
||||
IObservable<DeploymentStatus> GetAll(long repositoryId, int deploymentId);
|
||||
IObservable<DeploymentStatus> GetAll(long repositoryId, long deploymentId);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all the statuses for the given deployment. Any user with pull access to a repository can
|
||||
@@ -45,7 +45,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="name">The name of the repository.</param>
|
||||
/// <param name="deploymentId">The id of the deployment.</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<DeploymentStatus> GetAll(string owner, string name, int deploymentId, ApiOptions options);
|
||||
IObservable<DeploymentStatus> GetAll(string owner, string name, long deploymentId, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all the statuses for the given deployment. Any user with pull access to a repository can
|
||||
@@ -57,7 +57,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="repositoryId">The Id of the repository.</param>
|
||||
/// <param name="deploymentId">The id of the deployment.</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<DeploymentStatus> GetAll(long repositoryId, int deploymentId, ApiOptions options);
|
||||
IObservable<DeploymentStatus> GetAll(long repositoryId, long deploymentId, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new status for the given deployment. Users with push access can create deployment
|
||||
@@ -70,7 +70,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="name">The name of the repository.</param>
|
||||
/// <param name="deploymentId">The id of the deployment.</param>
|
||||
/// <param name="newDeploymentStatus">The new deployment status to create.</param>
|
||||
IObservable<DeploymentStatus> Create(string owner, string name, int deploymentId, NewDeploymentStatus newDeploymentStatus);
|
||||
IObservable<DeploymentStatus> Create(string owner, string name, long deploymentId, NewDeploymentStatus newDeploymentStatus);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new status for the given deployment. Users with push access can create deployment
|
||||
@@ -82,6 +82,6 @@ namespace Octokit.Reactive
|
||||
/// <param name="repositoryId">The Id of the repository.</param>
|
||||
/// <param name="deploymentId">The id of the deployment.</param>
|
||||
/// <param name="newDeploymentStatus">The new deployment status to create.</param>
|
||||
IObservable<DeploymentStatus> Create(long repositoryId, int deploymentId, NewDeploymentStatus newDeploymentStatus);
|
||||
IObservable<DeploymentStatus> Create(long repositoryId, long deploymentId, NewDeploymentStatus newDeploymentStatus);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace Octokit.Reactive
|
||||
/// <returns>IObservable{GistComment}.</returns>
|
||||
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
|
||||
Justification = "Method makes a network request")]
|
||||
IObservable<GistComment> Get(string gistId, int commentId);
|
||||
IObservable<GistComment> Get(string gistId, long commentId);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all comments for the gist with the specified id.
|
||||
@@ -51,7 +51,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="commentId">The id of the comment</param>
|
||||
/// <param name="comment">The updated body of the comment</param>
|
||||
/// <returns>IObservable{GistComment}.</returns>
|
||||
IObservable<GistComment> Update(string gistId, int commentId, string comment);
|
||||
IObservable<GistComment> Update(string gistId, long commentId, string comment);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes the comment with the specified gist- and comment id.
|
||||
@@ -60,6 +60,6 @@ namespace Octokit.Reactive
|
||||
/// <param name="gistId">The id of the gist</param>
|
||||
/// <param name="commentId">The id of the comment</param>
|
||||
/// <returns>IObservable{Unit}.</returns>
|
||||
IObservable<Unit> Delete(string gistId, int commentId);
|
||||
IObservable<Unit> Delete(string gistId, long commentId);
|
||||
}
|
||||
}
|
||||
@@ -110,5 +110,13 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/apps/#find-user-installation</remarks>
|
||||
/// <param name="user">The name of the user</param>
|
||||
IObservable<Installation> GetUserInstallationForCurrent(string user);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a GitHub app by completing the handshake necessary when implementing the GitHub App Manifest flow.
|
||||
/// https://docs.github.com/apps/sharing-github-apps/registering-a-github-app-from-a-manifest
|
||||
/// </summary>
|
||||
/// <remarks>https://docs.github.com/rest/apps/apps#create-a-github-app-from-a-manifest</remarks>
|
||||
/// <param name="code">Temporary code in a code parameter.</param>
|
||||
IObservable<GitHubAppFromManifest> CreateAppFromManifest(string code);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,18 +17,18 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#create-reaction-for-an-issue-comment</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="reaction">The reaction to create </param>
|
||||
IObservable<Reaction> Create(string owner, string name, int number, NewReaction reaction);
|
||||
IObservable<Reaction> Create(string owner, string name, long commentId, NewReaction reaction);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a reaction for a specified Issue Comment
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#create-reaction-for-an-issue-comment</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="reaction">The reaction to create </param>
|
||||
IObservable<Reaction> Create(long repositoryId, int number, NewReaction reaction);
|
||||
IObservable<Reaction> Create(long repositoryId, long commentId, NewReaction reaction);
|
||||
|
||||
/// <summary>
|
||||
/// List reactions for a specified Issue Comment
|
||||
@@ -36,8 +36,8 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-an-issue-comment</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
IObservable<Reaction> GetAll(string owner, string name, int number);
|
||||
/// <param name="commentId">The comment id</param>
|
||||
IObservable<Reaction> GetAll(string owner, string name, long commentId);
|
||||
|
||||
/// <summary>
|
||||
/// List reactions for a specified Issue Comment
|
||||
@@ -45,26 +45,26 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-an-issue-comment</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<Reaction> GetAll(string owner, string name, int number, ApiOptions options);
|
||||
IObservable<Reaction> GetAll(string owner, string name, long commentId, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// List reactions for a specified Issue Comment
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-an-issue-comment</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
IObservable<Reaction> GetAll(long repositoryId, int number);
|
||||
/// <param name="commentId">The comment id</param>
|
||||
IObservable<Reaction> GetAll(long repositoryId, long commentId);
|
||||
|
||||
/// <summary>
|
||||
/// List reactions for a specified Issue Comment
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-an-issue-comment</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<Reaction> GetAll(long repositoryId, int number, ApiOptions options);
|
||||
IObservable<Reaction> GetAll(long repositoryId, long commentId, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes a reaction for a specified Issue Comment
|
||||
@@ -75,7 +75,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="reactionId">The reaction id</param>
|
||||
/// <returns></returns>
|
||||
IObservable<Unit> Delete(string owner, string name, int commentId, int reactionId);
|
||||
IObservable<Unit> Delete(string owner, string name, long commentId, long reactionId);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes a reaction for a specified Commit Comment
|
||||
@@ -85,6 +85,6 @@ namespace Octokit.Reactive
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="reactionId">The reaction id</param>
|
||||
/// <returns></returns>
|
||||
IObservable<Unit> Delete(long repositoryId, int commentId, int reactionId);
|
||||
IObservable<Unit> Delete(long repositoryId, long commentId, long reactionId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,20 +18,20 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/issues/comments/#get-a-single-comment</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="id">The issue comment id</param>
|
||||
/// <param name="commentId">The issue comment id</param>
|
||||
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
|
||||
Justification = "Method makes a network request")]
|
||||
IObservable<IssueComment> Get(string owner, string name, int id);
|
||||
IObservable<IssueComment> Get(string owner, string name, long commentId);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a single Issue Comment by id.
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/issues/comments/#get-a-single-comment</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="id">The issue comment id</param>
|
||||
/// <param name="commentId">The issue comment id</param>
|
||||
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
|
||||
Justification = "Method makes a network request")]
|
||||
IObservable<IssueComment> Get(long repositoryId, int id);
|
||||
IObservable<IssueComment> Get(long repositoryId, long commentId);
|
||||
|
||||
/// <summary>
|
||||
/// Gets Issue Comments for a repository.
|
||||
@@ -107,16 +107,16 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/issues/comments/#list-comments-on-an-issue</remarks>
|
||||
/// <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<IssueComment> GetAllForIssue(string owner, string name, int number);
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
IObservable<IssueComment> GetAllForIssue(string owner, string name, int issueNumber);
|
||||
|
||||
/// <summary>
|
||||
/// Gets Issue Comments for a specified Issue.
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/issues/comments/#list-comments-on-an-issue</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The issue number</param>
|
||||
IObservable<IssueComment> GetAllForIssue(long repositoryId, int number);
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
IObservable<IssueComment> GetAllForIssue(long repositoryId, int issueNumber);
|
||||
|
||||
/// <summary>
|
||||
/// Gets Issue Comments for a specified Issue.
|
||||
@@ -124,18 +124,18 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/issues/comments/#list-comments-on-an-issue</remarks>
|
||||
/// <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>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<IssueComment> GetAllForIssue(string owner, string name, int number, ApiOptions options);
|
||||
IObservable<IssueComment> GetAllForIssue(string owner, string name, int issueNumber, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Gets Issue Comments for a specified Issue.
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/issues/comments/#list-comments-on-an-issue</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The issue number</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<IssueComment> GetAllForIssue(long repositoryId, int number, ApiOptions options);
|
||||
IObservable<IssueComment> GetAllForIssue(long repositoryId, int issueNumber, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Gets Issue Comments for a specified Issue.
|
||||
@@ -143,18 +143,18 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/issues/comments/#list-comments-on-an-issue</remarks>
|
||||
/// <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>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="request">The sorting <see cref="IssueCommentRequest">parameters</see></param>
|
||||
IObservable<IssueComment> GetAllForIssue(string owner, string name, int number, IssueCommentRequest request);
|
||||
IObservable<IssueComment> GetAllForIssue(string owner, string name, int issueNumber, IssueCommentRequest request);
|
||||
|
||||
/// <summary>
|
||||
/// Gets Issue Comments for a specified Issue.
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/issues/comments/#list-comments-on-an-issue</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The issue number</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="request">The sorting <see cref="IssueCommentRequest">parameters</see></param>
|
||||
IObservable<IssueComment> GetAllForIssue(long repositoryId, int number, IssueCommentRequest request);
|
||||
IObservable<IssueComment> GetAllForIssue(long repositoryId, int issueNumber, IssueCommentRequest request);
|
||||
|
||||
/// <summary>
|
||||
/// Gets Issue Comments for a specified Issue.
|
||||
@@ -162,20 +162,20 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/issues/comments/#list-comments-on-an-issue</remarks>
|
||||
/// <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>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="request">The sorting <see cref="IssueCommentRequest">parameters</see></param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<IssueComment> GetAllForIssue(string owner, string name, int number, IssueCommentRequest request, ApiOptions options);
|
||||
IObservable<IssueComment> GetAllForIssue(string owner, string name, int issueNumber, IssueCommentRequest request, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Gets Issue Comments for a specified Issue.
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/issues/comments/#list-comments-on-an-issue</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The issue number</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="request">The sorting <see cref="IssueCommentRequest">parameters</see></param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<IssueComment> GetAllForIssue(long repositoryId, int number, IssueCommentRequest request, ApiOptions options);
|
||||
IObservable<IssueComment> GetAllForIssue(long repositoryId, int issueNumber, IssueCommentRequest request, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new Issue Comment for a specified Issue.
|
||||
@@ -183,18 +183,18 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/issues/comments/#create-a-comment</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The number of the issue</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="newComment">The text of the new comment</param>
|
||||
IObservable<IssueComment> Create(string owner, string name, int number, string newComment);
|
||||
IObservable<IssueComment> Create(string owner, string name, int issueNumber, string newComment);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new Issue Comment for a specified Issue.
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/issues/comments/#create-a-comment</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The number of the issue</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="newComment">The text of the new comment</param>
|
||||
IObservable<IssueComment> Create(long repositoryId, int number, string newComment);
|
||||
IObservable<IssueComment> Create(long repositoryId, int issueNumber, string newComment);
|
||||
|
||||
/// <summary>
|
||||
/// Updates a specified Issue Comment.
|
||||
@@ -202,18 +202,18 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/issues/comments/#edit-a-comment</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="id">The comment id</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="commentUpdate">The modified comment</param>
|
||||
IObservable<IssueComment> Update(string owner, string name, int id, string commentUpdate);
|
||||
IObservable<IssueComment> Update(string owner, string name, long commentId, string commentUpdate);
|
||||
|
||||
/// <summary>
|
||||
/// Updates a specified Issue Comment.
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/issues/comments/#edit-a-comment</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="id">The comment id</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="commentUpdate">The modified comment</param>
|
||||
IObservable<IssueComment> Update(long repositoryId, int id, string commentUpdate);
|
||||
IObservable<IssueComment> Update(long repositoryId, long commentId, string commentUpdate);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes the specified Issue Comment
|
||||
@@ -221,15 +221,15 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/issues/comments/#delete-a-comment</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="id">The comment id</param>
|
||||
IObservable<Unit> Delete(string owner, string name, int id);
|
||||
/// <param name="commentId">The comment id</param>
|
||||
IObservable<Unit> Delete(string owner, string name, long commentId);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes the specified Issue Comment
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/issues/comments/#delete-a-comment</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="id">The comment id</param>
|
||||
IObservable<Unit> Delete(long repositoryId, int id);
|
||||
/// <param name="commentId">The comment id</param>
|
||||
IObservable<Unit> Delete(long repositoryId, long commentId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,8 +17,8 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-an-issue</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The issue id</param>
|
||||
IObservable<Reaction> GetAll(string owner, string name, int number);
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
IObservable<Reaction> GetAll(string owner, string name, int issueNumber);
|
||||
|
||||
/// <summary>
|
||||
/// List reactions for a specified Issue.
|
||||
@@ -26,26 +26,26 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-an-issue</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The issue id</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<Reaction> GetAll(string owner, string name, int number, ApiOptions options);
|
||||
IObservable<Reaction> GetAll(string owner, string name, int issueNumber, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// List reactions for a specified Issue.
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-an-issue</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The issue id</param>
|
||||
IObservable<Reaction> GetAll(long repositoryId, int number);
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
IObservable<Reaction> GetAll(long repositoryId, int issueNumber);
|
||||
|
||||
/// <summary>
|
||||
/// List reactions for a specified Issue.
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-an-issue</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The issue id</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<Reaction> GetAll(long repositoryId, int number, ApiOptions options);
|
||||
IObservable<Reaction> GetAll(long repositoryId, int issueNumber, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a reaction for a specified Issue.
|
||||
@@ -53,18 +53,18 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#create-reaction-for-an-issue</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The issue id</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="reaction">The reaction to create </param>
|
||||
IObservable<Reaction> Create(string owner, string name, int number, NewReaction reaction);
|
||||
IObservable<Reaction> Create(string owner, string name, int issueNumber, NewReaction reaction);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a reaction for a specified Issue.
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#create-reaction-for-an-issue</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The issue id</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="reaction">The reaction to create </param>
|
||||
IObservable<Reaction> Create(long repositoryId, int number, NewReaction reaction);
|
||||
IObservable<Reaction> Create(long repositoryId, int issueNumber, NewReaction reaction);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes a reaction for a specified Issue
|
||||
@@ -75,7 +75,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="reactionId">The reaction id</param>
|
||||
/// <returns></returns>
|
||||
IObservable<Unit> Delete(string owner, string name, int issueNumber, int reactionId);
|
||||
IObservable<Unit> Delete(string owner, string name, int issueNumber, long reactionId);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes a reaction for a specified Issue
|
||||
@@ -85,6 +85,6 @@ namespace Octokit.Reactive
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="reactionId">The reaction id</param>
|
||||
/// <returns></returns>
|
||||
IObservable<Unit> Delete(long repositoryId, int issueNumber, int reactionId);
|
||||
IObservable<Unit> Delete(long repositoryId, int issueNumber, long reactionId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,8 +18,8 @@ namespace Octokit.Reactive
|
||||
/// </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>
|
||||
IObservable<TimelineEventInfo> GetAllForIssue(string owner, string repo, int number);
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
IObservable<TimelineEventInfo> GetAllForIssue(string owner, string repo, int issueNumber);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all the various events that have occurred around an issue or pull request.
|
||||
@@ -29,9 +29,9 @@ namespace Octokit.Reactive
|
||||
/// </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="issueNumber">The issue number</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<TimelineEventInfo> GetAllForIssue(string owner, string repo, int number, ApiOptions options);
|
||||
IObservable<TimelineEventInfo> GetAllForIssue(string owner, string repo, int issueNumber, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all the various events that have occurred around an issue or pull request.
|
||||
@@ -40,8 +40,8 @@ namespace Octokit.Reactive
|
||||
/// 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>
|
||||
IObservable<TimelineEventInfo> GetAllForIssue(long repositoryId, int number);
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
IObservable<TimelineEventInfo> GetAllForIssue(long repositoryId, int issueNumber);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all the various events that have occurred around an issue or pull request.
|
||||
@@ -50,8 +50,8 @@ namespace Octokit.Reactive
|
||||
/// 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="issueNumber">The issue number</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<TimelineEventInfo> GetAllForIssue(long repositoryId, int number, ApiOptions options);
|
||||
IObservable<TimelineEventInfo> GetAllForIssue(long repositoryId, int issueNumber, ApiOptions options);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,8 +23,8 @@ namespace Octokit.Reactive
|
||||
IObservableMilestonesClient Milestone { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Client for reading various event information associated with issues/pull requests.
|
||||
/// This is useful both for display on issue/pull request information pages and also to
|
||||
/// Client for reading various event information associated with issues/pull requests.
|
||||
/// This is useful both for display on issue/pull request information pages and also to
|
||||
/// determine who should be notified of comments.
|
||||
/// </summary>
|
||||
IObservableIssuesEventsClient Events { get; }
|
||||
@@ -57,10 +57,10 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <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>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
|
||||
Justification = "Method makes a network request")]
|
||||
IObservable<Issue> Get(string owner, string name, int number);
|
||||
IObservable<Issue> Get(string owner, string name, int issueNumber);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a single Issue by number.
|
||||
@@ -69,10 +69,10 @@ namespace Octokit.Reactive
|
||||
/// http://developer.github.com/v3/issues/#get-a-single-issue
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The issue number</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
|
||||
Justification = "Method makes a network request")]
|
||||
IObservable<Issue> Get(long repositoryId, int number);
|
||||
IObservable<Issue> Get(long repositoryId, int issueNumber);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all open issues assigned to the authenticated user across all the authenticated user’s visible
|
||||
@@ -96,7 +96,7 @@ namespace Octokit.Reactive
|
||||
IObservable<Issue> GetAllForCurrent(ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all issues across all the authenticated user’s visible repositories including owned repositories,
|
||||
/// Gets all issues across all the authenticated user’s visible repositories including owned repositories,
|
||||
/// member repositories, and organization repositories.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
@@ -106,7 +106,7 @@ namespace Octokit.Reactive
|
||||
IObservable<Issue> GetAllForCurrent(IssueRequest request);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all issues across all the authenticated user’s visible repositories including owned repositories,
|
||||
/// Gets all issues across all the authenticated user’s visible repositories including owned repositories,
|
||||
/// member repositories, and organization repositories.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
@@ -306,10 +306,10 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/issues/#create-an-issue</remarks>
|
||||
/// <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>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="issueUpdate">An <see cref="IssueUpdate"/> instance describing the changes to make to the issue
|
||||
/// </param>
|
||||
IObservable<Issue> Update(string owner, string name, int number, IssueUpdate issueUpdate);
|
||||
IObservable<Issue> Update(string owner, string name, int issueNumber, IssueUpdate issueUpdate);
|
||||
|
||||
/// <summary>
|
||||
/// Creates an issue for the specified repository. Any user with pull access to a repository can create an
|
||||
@@ -317,9 +317,9 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/issues/#create-an-issue</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The issue number</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="issueUpdate">An <see cref="IssueUpdate"/> instance describing the changes to make to the issue
|
||||
/// </param>
|
||||
IObservable<Issue> Update(long repositoryId, int number, IssueUpdate issueUpdate);
|
||||
IObservable<Issue> Update(long repositoryId, int issueNumber, IssueUpdate issueUpdate);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,8 +19,8 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <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<IssueEvent> GetAllForIssue(string owner, string name, int number);
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
IObservable<IssueEvent> GetAllForIssue(string owner, string name, int issueNumber);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all events for the issue.
|
||||
@@ -29,8 +29,8 @@ namespace Octokit.Reactive
|
||||
/// http://developer.github.com/v3/issues/events/#list-events-for-an-issue
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The issue number</param>
|
||||
IObservable<IssueEvent> GetAllForIssue(long repositoryId, int number);
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
IObservable<IssueEvent> GetAllForIssue(long repositoryId, int issueNumber);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all events for the issue.
|
||||
@@ -40,9 +40,9 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <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>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<IssueEvent> GetAllForIssue(string owner, string name, int number, ApiOptions options);
|
||||
IObservable<IssueEvent> GetAllForIssue(string owner, string name, int issueNumber, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all events for the issue.
|
||||
@@ -51,9 +51,9 @@ namespace Octokit.Reactive
|
||||
/// http://developer.github.com/v3/issues/events/#list-events-for-an-issue
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The issue number</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<IssueEvent> GetAllForIssue(long repositoryId, int number, ApiOptions options);
|
||||
IObservable<IssueEvent> GetAllForIssue(long repositoryId, int issueNumber, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all events for the repository.
|
||||
|
||||
@@ -20,8 +20,8 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The number of the issue</param>
|
||||
IObservable<Label> GetAllForIssue(string owner, string name, int number);
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
IObservable<Label> GetAllForIssue(string owner, string name, int issueNumber);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all labels for the issue.
|
||||
@@ -30,8 +30,8 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="http://developer.github.com/v3/issues/labels/#list-labels-on-an-issue">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The number of the issue</param>
|
||||
IObservable<Label> GetAllForIssue(long repositoryId, int number);
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
IObservable<Label> GetAllForIssue(long repositoryId, int issueNumber);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all labels for the issue.
|
||||
@@ -41,9 +41,9 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The number of the issue</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<Label> GetAllForIssue(string owner, string name, int number, ApiOptions options);
|
||||
IObservable<Label> GetAllForIssue(string owner, string name, int issueNumber, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all labels for the issue.
|
||||
@@ -52,9 +52,9 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="http://developer.github.com/v3/issues/labels/#list-labels-on-an-issue">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The number of the issue</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<Label> GetAllForIssue(long repositoryId, int number, ApiOptions options);
|
||||
IObservable<Label> GetAllForIssue(long repositoryId, int issueNumber, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all labels for the repository.
|
||||
@@ -104,8 +104,8 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The number of the milestone</param>
|
||||
IObservable<Label> GetAllForMilestone(string owner, string name, int number);
|
||||
/// <param name="milestoneNumber">The number of the milestone</param>
|
||||
IObservable<Label> GetAllForMilestone(string owner, string name, int milestoneNumber);
|
||||
|
||||
/// <summary>
|
||||
/// Gets labels for every issue in a milestone
|
||||
@@ -114,8 +114,8 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="http://developer.github.com/v3/issues/labels/#get-labels-for-every-issue-in-a-milestone">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The number of the milestone</param>
|
||||
IObservable<Label> GetAllForMilestone(long repositoryId, int number);
|
||||
/// <param name="milestoneNumber">The number of the milestone</param>
|
||||
IObservable<Label> GetAllForMilestone(long repositoryId, int milestoneNumber);
|
||||
|
||||
/// <summary>
|
||||
/// Gets labels for every issue in a milestone
|
||||
@@ -125,9 +125,9 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The number of the milestone</param>
|
||||
/// <param name="milestoneNumber">The number of the milestone</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<Label> GetAllForMilestone(string owner, string name, int number, ApiOptions options);
|
||||
IObservable<Label> GetAllForMilestone(string owner, string name, int milestoneNumber, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Gets labels for every issue in a milestone
|
||||
@@ -136,9 +136,9 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="http://developer.github.com/v3/issues/labels/#get-labels-for-every-issue-in-a-milestone">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The number of the milestone</param>
|
||||
/// <param name="milestoneNumber">The number of the milestone</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<Label> GetAllForMilestone(long repositoryId, int number, ApiOptions options);
|
||||
IObservable<Label> GetAllForMilestone(long repositoryId, int milestoneNumber, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a single Label by name.
|
||||
@@ -238,9 +238,9 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The number of the issue</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="labels">The names of the labels to add</param>
|
||||
IObservable<Label> AddToIssue(string owner, string name, int number, string[] labels);
|
||||
IObservable<Label> AddToIssue(string owner, string name, int issueNumber, string[] labels);
|
||||
|
||||
/// <summary>
|
||||
/// Adds a label to an issue
|
||||
@@ -249,9 +249,9 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="http://developer.github.com/v3/issues/labels/#add-labels-to-an-issue">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The number of the issue</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="labels">The names of the labels to add</param>
|
||||
IObservable<Label> AddToIssue(long repositoryId, int number, string[] labels);
|
||||
IObservable<Label> AddToIssue(long repositoryId, int issueNumber, string[] labels);
|
||||
|
||||
/// <summary>
|
||||
/// Removes a label from an issue
|
||||
@@ -261,9 +261,9 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The number of the issue</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="labelName">The name of the label to remove</param>
|
||||
IObservable<Label> RemoveFromIssue(string owner, string name, int number, string labelName);
|
||||
IObservable<Label> RemoveFromIssue(string owner, string name, int issueNumber, string labelName);
|
||||
|
||||
/// <summary>
|
||||
/// Removes a label from an issue
|
||||
@@ -272,9 +272,9 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="http://developer.github.com/v3/issues/labels/#remove-a-label-from-an-issue">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The number of the issue</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="labelName">The name of the label to remove</param>
|
||||
IObservable<Label> RemoveFromIssue(long repositoryId, int number, string labelName);
|
||||
IObservable<Label> RemoveFromIssue(long repositoryId, int issueNumber, string labelName);
|
||||
|
||||
/// <summary>
|
||||
/// Replaces all labels on the specified issues with the provided labels
|
||||
@@ -284,9 +284,9 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The number of the issue</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="labels">The names of the labels to set</param>
|
||||
IObservable<Label> ReplaceAllForIssue(string owner, string name, int number, string[] labels);
|
||||
IObservable<Label> ReplaceAllForIssue(string owner, string name, int issueNumber, string[] labels);
|
||||
|
||||
/// <summary>
|
||||
/// Replaces all labels on the specified issues with the provided labels
|
||||
@@ -295,9 +295,9 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="http://developer.github.com/v3/issues/labels/#replace-all-labels-for-an-issue">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The number of the issue</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="labels">The names of the labels to set</param>
|
||||
IObservable<Label> ReplaceAllForIssue(long repositoryId, int number, string[] labels);
|
||||
IObservable<Label> ReplaceAllForIssue(long repositoryId, int issueNumber, string[] labels);
|
||||
|
||||
/// <summary>
|
||||
/// Removes all labels from an issue
|
||||
@@ -307,8 +307,8 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The number of the issue</param>
|
||||
IObservable<Unit> RemoveAllFromIssue(string owner, string name, int number);
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
IObservable<Unit> RemoveAllFromIssue(string owner, string name, int issueNumber);
|
||||
|
||||
/// <summary>
|
||||
/// Removes all labels from an issue
|
||||
@@ -317,7 +317,7 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="http://developer.github.com/v3/issues/labels/#remove-all-labels-from-an-issue">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The number of the issue</param>
|
||||
IObservable<Unit> RemoveAllFromIssue(long repositoryId, int number);
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
IObservable<Unit> RemoveAllFromIssue(long repositoryId, int issueNumber);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,18 +14,18 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/issues/#lock-an-issue</remarks>
|
||||
/// <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>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="lockReason">The reason for locking the issue</param>
|
||||
IObservable<Unit> Lock(string owner, string name, int number, LockReason? lockReason = null);
|
||||
IObservable<Unit> Lock(string owner, string name, int issueNumber, LockReason? lockReason = null);
|
||||
|
||||
/// <summary>
|
||||
/// Locks an issue for the specified repository. Issue owners and users with push access can lock an issue.
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/issues/#lock-an-issue</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The issue number</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="lockReason">The reason for locking the issue</param>
|
||||
IObservable<Unit> Lock(long repositoryId, int number, LockReason? lockReason = null);
|
||||
IObservable<Unit> Lock(long repositoryId, int issueNumber, LockReason? lockReason = null);
|
||||
|
||||
/// <summary>
|
||||
/// Unlocks an issue for the specified repository. Issue owners and users with push access can unlock an issue.
|
||||
@@ -33,15 +33,15 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/issues/#unlock-an-issue</remarks>
|
||||
/// <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<Unit> Unlock(string owner, string name, int number);
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
IObservable<Unit> Unlock(string owner, string name, int issueNumber);
|
||||
|
||||
/// <summary>
|
||||
/// Unlocks an issue for the specified repository. Issue owners and users with push access can unlock an issue.
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/issues/#unlock-an-issue</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The issue number</param>
|
||||
IObservable<Unit> Unlock(long repositoryId, int number);
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
IObservable<Unit> Unlock(long repositoryId, int issueNumber);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,6 +10,11 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
public interface IObservableMetaClient
|
||||
{
|
||||
/// <summary>
|
||||
/// Returns a client to get public keys for validating request signatures.
|
||||
/// </summary>
|
||||
IObservablePublicKeysClient PublicKeys { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves information about GitHub.com, the service or a GitHub Enterprise installation.
|
||||
/// </summary>
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace Octokit.Reactive
|
||||
/// https://developer.github.com/v3/migration/migrations/#start-a-migration
|
||||
/// </remarks>
|
||||
/// <param name="org">The organization for which to start a migration.</param>
|
||||
/// <param name="migration">Specifies parameters for the migration in a
|
||||
/// <param name="migration">Specifies parameters for the migration in a
|
||||
/// <see cref="StartMigrationRequest"/> object.</param>
|
||||
/// <returns>The started migration.</returns>
|
||||
IObservable<Migration> Start(
|
||||
@@ -64,7 +64,7 @@ namespace Octokit.Reactive
|
||||
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")]
|
||||
IObservable<Migration> Get(
|
||||
string org,
|
||||
int id);
|
||||
long id);
|
||||
|
||||
/// <summary>
|
||||
/// Get the migration archive.
|
||||
@@ -77,7 +77,7 @@ namespace Octokit.Reactive
|
||||
/// <returns>The binary contents of the archive as a byte array.</returns>
|
||||
IObservable<byte[]> GetArchive(
|
||||
string org,
|
||||
int id);
|
||||
long id);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes a previous migration archive.
|
||||
@@ -90,7 +90,7 @@ namespace Octokit.Reactive
|
||||
/// <returns></returns>
|
||||
IObservable<Unit> DeleteArchive(
|
||||
string org,
|
||||
int id);
|
||||
long id);
|
||||
|
||||
/// <summary>
|
||||
/// Unlocks a repository that was locked for migration.
|
||||
@@ -104,7 +104,7 @@ namespace Octokit.Reactive
|
||||
/// <returns></returns>
|
||||
IObservable<Unit> UnlockRepository(
|
||||
string org,
|
||||
int id,
|
||||
long id,
|
||||
string repo);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace Octokit.Reactive
|
||||
/// <returns></returns>
|
||||
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
|
||||
Justification = "Method makes a network request")]
|
||||
IObservable<Milestone> Get(string owner, string name, int number);
|
||||
IObservable<Milestone> Get(string owner, string name, int milestoneNumber);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a single Milestone by number.
|
||||
@@ -32,7 +32,7 @@ namespace Octokit.Reactive
|
||||
/// <returns></returns>
|
||||
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
|
||||
Justification = "Method makes a network request")]
|
||||
IObservable<Milestone> Get(long repositoryId, int number);
|
||||
IObservable<Milestone> Get(long repositoryId, int milestoneNumber);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all open milestones for the repository.
|
||||
@@ -154,11 +154,11 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/issues/milestones/#update-a-milestone</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The Milestone number</param>
|
||||
/// <param name="milestoneNumber">The Milestone number</param>
|
||||
/// <param name="milestoneUpdate">An <see cref="MilestoneUpdate"/> instance describing the changes to make to the Milestone
|
||||
/// </param>
|
||||
/// <returns></returns>
|
||||
IObservable<Milestone> Update(string owner, string name, int number, MilestoneUpdate milestoneUpdate);
|
||||
IObservable<Milestone> Update(string owner, string name, int milestoneNumber, MilestoneUpdate milestoneUpdate);
|
||||
|
||||
/// <summary>
|
||||
/// Updates a milestone for the specified repository. Any user with pull access to a repository can create a
|
||||
@@ -166,11 +166,11 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/issues/milestones/#update-a-milestone</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The Milestone number</param>
|
||||
/// <param name="milestoneNumber">The Milestone number</param>
|
||||
/// <param name="milestoneUpdate">An <see cref="MilestoneUpdate"/> instance describing the changes to make to the Milestone
|
||||
/// </param>
|
||||
/// <returns></returns>
|
||||
IObservable<Milestone> Update(long repositoryId, int number, MilestoneUpdate milestoneUpdate);
|
||||
IObservable<Milestone> Update(long repositoryId, int milestoneNumber, MilestoneUpdate milestoneUpdate);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes a milestone for the specified repository. Any user with pull access to a repository can create an
|
||||
@@ -179,9 +179,9 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/issues/milestones/#delete-a-milestone</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The milestone number</param>
|
||||
/// <param name="milestoneNumber">The Milestone number</param>
|
||||
/// <returns></returns>
|
||||
IObservable<Unit> Delete(string owner, string name, int number);
|
||||
IObservable<Unit> Delete(string owner, string name, int milestoneNumber);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes a milestone for the specified repository. Any user with pull access to a repository can create an
|
||||
@@ -189,8 +189,8 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/issues/milestones/#delete-a-milestone</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The milestone number</param>
|
||||
/// <param name="milestoneNumber">The Milestone number</param>
|
||||
/// <returns></returns>
|
||||
IObservable<Unit> Delete(long repositoryId, int number);
|
||||
IObservable<Unit> Delete(long repositoryId, int milestoneNumber);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -160,38 +160,38 @@ namespace Octokit.Reactive
|
||||
/// <summary>
|
||||
/// Retrives a single <see cref="Notification"/> by Id.
|
||||
/// </summary>
|
||||
/// <param name="id">The Id of the notification to retrieve.</param>
|
||||
/// <param name="notificationId">The Id of the notification to retrieve.</param>
|
||||
/// <remarks>http://developer.github.com/v3/activity/notifications/#view-a-single-thread</remarks>
|
||||
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")]
|
||||
IObservable<Notification> Get(int id);
|
||||
IObservable<Notification> Get(int notificationId);
|
||||
|
||||
/// <summary>
|
||||
/// Marks a single notification as read.
|
||||
/// </summary>
|
||||
/// <param name="id">The id of the notification.</param>
|
||||
/// <param name="notificationId">The id of the notification.</param>
|
||||
/// <remarks>http://developer.github.com/v3/activity/notifications/#mark-a-thread-as-read</remarks>
|
||||
IObservable<Unit> MarkAsRead(int id);
|
||||
IObservable<Unit> MarkAsRead(int notificationId);
|
||||
|
||||
/// <summary>
|
||||
/// Retrives a <see cref="ThreadSubscription"/> for the provided thread id.
|
||||
/// </summary>
|
||||
/// <param name="id">The Id of the thread to retrieve subscription status.</param>
|
||||
/// <param name="threadId">The Id of the thread to retrieve subscription status.</param>
|
||||
/// <remarks>http://developer.github.com/v3/activity/notifications/#get-a-thread-subscription</remarks>
|
||||
IObservable<ThreadSubscription> GetThreadSubscription(int id);
|
||||
IObservable<ThreadSubscription> GetThreadSubscription(int threadId);
|
||||
|
||||
/// <summary>
|
||||
/// Sets the authenticated user's subscription settings for a given thread.
|
||||
/// </summary>
|
||||
/// <param name="id">The Id of the thread to update.</param>
|
||||
/// <param name="threadId">The Id of the thread to update.</param>
|
||||
/// <param name="threadSubscription">The subscription parameters to set.</param>
|
||||
/// <remarks>http://developer.github.com/v3/activity/notifications/#set-a-thread-subscription</remarks>
|
||||
IObservable<ThreadSubscription> SetThreadSubscription(int id, NewThreadSubscription threadSubscription);
|
||||
IObservable<ThreadSubscription> SetThreadSubscription(int threadId, NewThreadSubscription threadSubscription);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes the authenticated user's subscription to a given thread.
|
||||
/// </summary>
|
||||
/// <param name="id">The Id of the thread to delete subscription from.</param>
|
||||
/// <param name="threadId">The Id of the thread to delete subscription from.</param>
|
||||
/// <remarks>http://developer.github.com/v3/activity/notifications/#delete-a-thread-subscription</remarks>
|
||||
IObservable<Unit> DeleteThreadSubscription(int id);
|
||||
IObservable<Unit> DeleteThreadSubscription(int threadId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
using System;
|
||||
using System.Reactive;
|
||||
|
||||
namespace Octokit.Reactive
|
||||
{
|
||||
/// <summary>
|
||||
/// A client for GitHub's Organization Custom Properties API.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See <a href="https://docs.github.com/rest/orgs/custom-properties">Custom Properties API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
public interface IObservableOrganizationCustomPropertiesClient
|
||||
{
|
||||
/// <summary>
|
||||
/// Get all custom properties for an organization.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/orgs/custom-properties#get-all-custom-properties-for-an-organization">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org">The name of the organization</param>
|
||||
IObservable<OrganizationCustomProperty> GetAll(string org);
|
||||
|
||||
/// <summary>
|
||||
/// Get a single custom property by name.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/orgs/custom-properties#get-a-custom-property-for-an-organization">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org">The name of the organization</param>
|
||||
/// <param name="propertyName">The name of the custom property</param>
|
||||
IObservable<OrganizationCustomProperty> Get(string org, string propertyName);
|
||||
|
||||
/// <summary>
|
||||
/// Create new or update existing custom properties for an organization.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/orgs/custom-properties#create-or-update-custom-properties-for-an-organization">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org">The name of the organization</param>
|
||||
/// <param name="properties">The custom properties to create or update</param>
|
||||
IObservable<OrganizationCustomProperty> CreateOrUpdate(string org, UpsertOrganizationCustomProperties properties);
|
||||
|
||||
/// <summary>
|
||||
/// Create new or update existing custom property for an organization.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/orgs/custom-properties#create-or-update-a-custom-property-for-an-organization">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org">The name of the organization</param>
|
||||
/// <param name="propertyName">The name of the custom property</param>
|
||||
/// <param name="property">The custom property to create or update</param>
|
||||
IObservable<OrganizationCustomProperty> CreateOrUpdate(string org, string propertyName, UpsertOrganizationCustomProperty property);
|
||||
|
||||
/// <summary>
|
||||
/// Removes a custom property that is defined for an organization.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/orgs/custom-properties#remove-a-custom-property-for-an-organization">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org">The name of the organization</param>
|
||||
/// <param name="propertyName">The name of the custom property</param>
|
||||
IObservable<Unit> Delete(string org, string propertyName);
|
||||
|
||||
/// <summary>
|
||||
/// A client for GitHub's Organization Custom Property Values API.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/orgs/custom-properties">Custom Properties API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
IObservableOrganizationCustomPropertyValuesClient Values { get; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
using System;
|
||||
using System.Reactive;
|
||||
|
||||
namespace Octokit.Reactive
|
||||
{
|
||||
/// <summary>
|
||||
/// A client for GitHub's Organization Custom Property Values API.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See <a href="https://docs.github.com/rest/orgs/custom-properties">Custom Properties API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
public interface IObservableOrganizationCustomPropertyValuesClient
|
||||
{
|
||||
/// <summary>
|
||||
/// Get all custom property values for repositories an organization.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/orgs/custom-properties#list-custom-property-values-for-organization-repositories">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org">The name of the organization</param>
|
||||
IObservable<OrganizationCustomPropertyValues> GetAll(string org);
|
||||
|
||||
/// <summary>
|
||||
/// Get all custom property values for repositories an organization.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/orgs/custom-properties#list-custom-property-values-for-organization-repositories">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org">The name of the organization</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<OrganizationCustomPropertyValues> GetAll(string org, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Get all custom property values for repositories an organization.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/orgs/custom-properties#list-custom-property-values-for-organization-repositories">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org">The name of the organization</param>
|
||||
/// <param name="repositoryQuery">Finds repositories in the organization with a query containing one or more search keywords and qualifiers.</param>
|
||||
IObservable<OrganizationCustomPropertyValues> GetAll(string org, OrganizationCustomPropertyValuesRequest repositoryQuery);
|
||||
|
||||
/// <summary>
|
||||
/// Create new or update existing custom property values for repositories an organization.
|
||||
/// Using a value of null for a custom property will remove or 'unset' the property value from the repository.
|
||||
/// A maximum of 30 repositories can be updated in a single request.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/orgs/custom-properties#create-or-update-custom-property-values-for-organization-repositories">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org">The name of the organization</param>
|
||||
/// <param name="propertyValues">The custom property values to create or update</param>
|
||||
IObservable<Unit> CreateOrUpdate(string org, UpsertOrganizationCustomPropertyValues propertyValues);
|
||||
}
|
||||
}
|
||||
@@ -318,7 +318,7 @@ namespace Octokit.Reactive
|
||||
/// details of the organization invitation</param>
|
||||
/// <returns></returns>
|
||||
IObservable<OrganizationMembershipInvitation> CreateOrganizationInvitation(string org, OrganizationInvitationRequest invitationRequest);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Remove a user's membership with an organization.
|
||||
/// </summary>
|
||||
@@ -389,7 +389,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="org">The login for the organization</param>
|
||||
/// <param name="invitationId">The unique identifier of the invitation</param>
|
||||
/// <returns></returns>
|
||||
IObservable<Unit> CancelOrganizationInvitation(string org, int invitationId);
|
||||
IObservable<Unit> CancelOrganizationInvitation(string org, long invitationId);
|
||||
|
||||
/// <summary>
|
||||
/// Returns all <see cref="OrganizationMembership" />s for the current user.
|
||||
|
||||
@@ -31,6 +31,11 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
IObservableOrganizationActionsClient Actions { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns a client to manage organization custom properties.
|
||||
/// </summary>
|
||||
IObservableOrganizationCustomPropertiesClient CustomProperty { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the specified organization.
|
||||
/// </summary>
|
||||
|
||||
@@ -7,6 +7,27 @@ namespace Octokit.Reactive
|
||||
{
|
||||
IObservablePackageVersionsClient PackageVersions { get; }
|
||||
|
||||
/// <summary>
|
||||
/// List all packages for an organisations, readable by the current user
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/packages#list-packages-for-an-organization">API documentation</a> for more details
|
||||
/// </remarks>
|
||||
/// <param name="org">Required: Organisation Name</param>
|
||||
/// <param name="packageType">Required: The type of package</param>
|
||||
IObservable<Package> GetAllForOrg(string org, PackageType packageType);
|
||||
|
||||
/// <summary>
|
||||
/// List all packages for an organisations, readable by the current user
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/packages#list-packages-for-an-organization">API documentation</a> for more details
|
||||
/// </remarks>
|
||||
/// <param name="org">Required: Organisation Name</param>
|
||||
/// <param name="packageType">Required: The type of package</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<Package> GetAllForOrg(string org, PackageType packageType, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// List all packages for an organisations, readable by the current user
|
||||
/// </summary>
|
||||
@@ -16,7 +37,19 @@ namespace Octokit.Reactive
|
||||
/// <param name="org">Required: Organisation Name</param>
|
||||
/// <param name="packageType">Required: The type of package</param>
|
||||
/// <param name="packageVisibility">Optional: The visibility of the package</param>
|
||||
IObservable<Package> GetAllForOrg(string org, PackageType packageType, PackageVisibility? packageVisibility = null);
|
||||
IObservable<Package> GetAllForOrg(string org, PackageType packageType, PackageVisibility? packageVisibility);
|
||||
|
||||
/// <summary>
|
||||
/// List all packages for an organisations, readable by the current user
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/packages#list-packages-for-an-organization">API documentation</a> for more details
|
||||
/// </remarks>
|
||||
/// <param name="org">Required: Organisation Name</param>
|
||||
/// <param name="packageType">Required: The type of package</param>
|
||||
/// <param name="packageVisibility">Optional: The visibility of the package</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<Package> GetAllForOrg(string org, PackageType packageType, PackageVisibility? packageVisibility, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Get a specific package for an Organization.
|
||||
@@ -51,6 +84,25 @@ namespace Octokit.Reactive
|
||||
/// <param name="packageName">Required: The name of the package</param>
|
||||
IObservable<Unit> RestoreForOrg(string org, PackageType packageType, string packageName);
|
||||
|
||||
/// <summary>
|
||||
/// Lists packages owned by the authenticated user within the user's namespace
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/packages#list-packages-for-the-authenticated-users-namespace">API documentation</a> for more details
|
||||
/// </remarks>
|
||||
/// <param name="packageType">Required: The type of package</param>
|
||||
IObservable<Package> GetAllForActiveUser(PackageType packageType);
|
||||
|
||||
/// <summary>
|
||||
/// Lists packages owned by the authenticated user within the user's namespace
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/packages#list-packages-for-the-authenticated-users-namespace">API documentation</a> for more details
|
||||
/// </remarks>
|
||||
/// <param name="packageType">Required: The type of package</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<Package> GetAllForActiveUser(PackageType packageType, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Lists packages owned by the authenticated user within the user's namespace
|
||||
/// </summary>
|
||||
@@ -59,7 +111,18 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="packageType">Required: The type of package</param>
|
||||
/// <param name="packageVisibility">Optional: The visibility of the package</param>
|
||||
IObservable<Package> GetAllForActiveUser(PackageType packageType, PackageVisibility? packageVisibility = null);
|
||||
IObservable<Package> GetAllForActiveUser(PackageType packageType, PackageVisibility? packageVisibility);
|
||||
|
||||
/// <summary>
|
||||
/// Lists packages owned by the authenticated user within the user's namespace
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/packages#list-packages-for-the-authenticated-users-namespace">API documentation</a> for more details
|
||||
/// </remarks>
|
||||
/// <param name="packageType">Required: The type of package</param>
|
||||
/// <param name="packageVisibility">Optional: The visibility of the package</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<Package> GetAllForActiveUser(PackageType packageType, PackageVisibility? packageVisibility, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a specific package for a package owned by the authenticated user.
|
||||
@@ -91,6 +154,27 @@ namespace Octokit.Reactive
|
||||
/// <param name="packageName">Required: The name of the package</param>
|
||||
IObservable<Unit> RestoreForActiveUser(PackageType packageType, string packageName);
|
||||
|
||||
/// <summary>
|
||||
/// Lists packages owned by the authenticated user within the user's namespace
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/packages#list-packages-for-the-authenticated-users-namespace">API documentation</a> for more details
|
||||
/// </remarks>
|
||||
/// <param name="username">Required: Username</param>
|
||||
/// <param name="packageType">Required: The type of package</param>
|
||||
IObservable<Package> GetAllForUser(string username, PackageType packageType);
|
||||
|
||||
/// <summary>
|
||||
/// Lists packages owned by the authenticated user within the user's namespace
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/packages#list-packages-for-the-authenticated-users-namespace">API documentation</a> for more details
|
||||
/// </remarks>
|
||||
/// <param name="username">Required: Username</param>
|
||||
/// <param name="packageType">Required: The type of package</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<Package> GetAllForUser(string username, PackageType packageType, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Lists packages owned by the authenticated user within the user's namespace
|
||||
/// </summary>
|
||||
@@ -100,7 +184,19 @@ namespace Octokit.Reactive
|
||||
/// <param name="username">Required: Username</param>
|
||||
/// <param name="packageType">Required: The type of package</param>
|
||||
/// <param name="packageVisibility">Optional: The visibility of the package</param>
|
||||
IObservable<Package> GetAllForUser(string username, PackageType packageType, PackageVisibility? packageVisibility = null);
|
||||
IObservable<Package> GetAllForUser(string username, PackageType packageType, PackageVisibility? packageVisibility);
|
||||
|
||||
/// <summary>
|
||||
/// Lists packages owned by the authenticated user within the user's namespace
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/packages#list-packages-for-the-authenticated-users-namespace">API documentation</a> for more details
|
||||
/// </remarks>
|
||||
/// <param name="username">Required: Username</param>
|
||||
/// <param name="packageType">Required: The type of package</param>
|
||||
/// <param name="packageVisibility">Optional: The visibility of the package</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<Package> GetAllForUser(string username, PackageType packageType, PackageVisibility? packageVisibility, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a specific package metadata for a public package owned by a user.
|
||||
|
||||
@@ -59,7 +59,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the card</param>
|
||||
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")]
|
||||
IObservable<ProjectCard> Get(int id);
|
||||
IObservable<ProjectCard> Get(long id);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a card.
|
||||
@@ -79,7 +79,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the card</param>
|
||||
/// <param name="projectCardUpdate">New values to update the card with</param>
|
||||
IObservable<ProjectCard> Update(int id, ProjectCardUpdate projectCardUpdate);
|
||||
IObservable<ProjectCard> Update(long id, ProjectCardUpdate projectCardUpdate);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes a card.
|
||||
@@ -88,7 +88,7 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://developer.github.com/v3/repos/projects/#delete-a-project-card">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the card</param>
|
||||
IObservable<bool> Delete(int id);
|
||||
IObservable<bool> Delete(long id);
|
||||
|
||||
/// <summary>
|
||||
/// Moves a card.
|
||||
@@ -98,6 +98,6 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the card</param>
|
||||
/// <param name="position">The position to move the card</param>
|
||||
IObservable<bool> Move(int id, ProjectCardMove position);
|
||||
IObservable<bool> Move(long id, ProjectCardMove position);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,9 +36,9 @@ namespace Octokit.Reactive
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/projects/columns/#get-a-project-column">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the column</param>
|
||||
/// <param name="columnId">The id of the column</param>
|
||||
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")]
|
||||
IObservable<ProjectColumn> Get(int id);
|
||||
IObservable<ProjectColumn> Get(int columnId);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a column.
|
||||
@@ -56,9 +56,9 @@ namespace Octokit.Reactive
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/projects/columns/#update-a-project-column">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the column</param>
|
||||
/// <param name="columnId">The id of the column</param>
|
||||
/// <param name="projectColumnUpdate">New values to update the column with</param>
|
||||
IObservable<ProjectColumn> Update(int id, ProjectColumnUpdate projectColumnUpdate);
|
||||
IObservable<ProjectColumn> Update(int columnId, ProjectColumnUpdate projectColumnUpdate);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes a column.
|
||||
@@ -66,8 +66,8 @@ namespace Octokit.Reactive
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/projects/columns/#delete-a-project-column">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the column</param>
|
||||
IObservable<bool> Delete(int id);
|
||||
/// <param name="columnId">The id of the column</param>
|
||||
IObservable<bool> Delete(int columnId);
|
||||
|
||||
/// <summary>
|
||||
/// Moves a column.
|
||||
@@ -75,8 +75,8 @@ namespace Octokit.Reactive
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/projects/columns/#move-a-project-column">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the column</param>
|
||||
/// <param name="columnId">The id of the column</param>
|
||||
/// <param name="position">The position to move the column</param>
|
||||
IObservable<bool> Move(int id, ProjectColumnMove position);
|
||||
IObservable<bool> Move(int columnId, ProjectColumnMove position);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -141,9 +141,9 @@ namespace Octokit.Reactive
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/repos/projects/#get-a-project">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="id">The Id of the project</param>
|
||||
/// <param name="projectId">The Id of the project</param>
|
||||
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")]
|
||||
IObservable<Project> Get(int id);
|
||||
IObservable<Project> Get(int projectId);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a project for the specified repository.
|
||||
@@ -171,9 +171,9 @@ namespace Octokit.Reactive
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/repos/projects/#update-a-project">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="id">The Id of the project</param>
|
||||
/// <param name="projectId">The Id of the project</param>
|
||||
/// <param name="projectUpdate">The modified project</param>
|
||||
IObservable<Project> Update(int id, ProjectUpdate projectUpdate);
|
||||
IObservable<Project> Update(int projectId, ProjectUpdate projectUpdate);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes a project.
|
||||
@@ -181,8 +181,8 @@ namespace Octokit.Reactive
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/repos/projects/#delete-a-project">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="id">The Id of the project</param>
|
||||
IObservable<bool> Delete(int id);
|
||||
/// <param name="projectId">The Id of the project</param>
|
||||
IObservable<bool> Delete(int projectId);
|
||||
|
||||
/// <summary>
|
||||
/// A client for GitHub's Project Cards API.
|
||||
|
||||
20
Octokit.Reactive/Clients/IObservablePublicKeysClient.cs
Normal file
20
Octokit.Reactive/Clients/IObservablePublicKeysClient.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
|
||||
namespace Octokit.Reactive
|
||||
{
|
||||
/// <summary>
|
||||
/// A client for GitHub's meta public keys API.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/code-security/secret-scanning/secret-scanning-partner-program#implement-signature-verification-in-your-secret-alert-service">Secret scanning documentation</a> for more details.
|
||||
/// </remarks>
|
||||
public interface IObservablePublicKeysClient
|
||||
{
|
||||
/// <summary>
|
||||
/// Retrieves public keys for validating request signatures.
|
||||
/// </summary>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns>An <see cref="MetaPublicKeys"/> containing public keys for validating request signatures.</returns>
|
||||
IObservable<MetaPublicKeys> Get(PublicKeyType keysType);
|
||||
}
|
||||
}
|
||||
@@ -17,8 +17,8 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-a-pull-request-review-comment</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
IObservable<Reaction> GetAll(string owner, string name, int number);
|
||||
/// <param name="commentId">The comment id</param>
|
||||
IObservable<Reaction> GetAll(string owner, string name, long commentId);
|
||||
|
||||
/// <summary>
|
||||
/// Get all reactions for a specified Pull Request Review Comment.
|
||||
@@ -26,26 +26,26 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-a-pull-request-review-comment</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<Reaction> GetAll(string owner, string name, int number, ApiOptions options);
|
||||
IObservable<Reaction> GetAll(string owner, string name, long commentId, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Get all reactions for a specified Pull Request Review Comment.
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-a-pull-request-review-comment</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
IObservable<Reaction> GetAll(long repositoryId, int number);
|
||||
/// <param name="commentId">The comment id</param>
|
||||
IObservable<Reaction> GetAll(long repositoryId, long commentId);
|
||||
|
||||
/// <summary>
|
||||
/// Get all reactions for a specified Pull Request Review Comment.
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-a-pull-request-review-comment</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<Reaction> GetAll(long repositoryId, int number, ApiOptions options);
|
||||
IObservable<Reaction> GetAll(long repositoryId, long commentId, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a reaction for a specified Pull Request Review Comment.
|
||||
@@ -53,18 +53,18 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#create-reaction-for-a-pull-request-review-comment</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="reaction">The reaction to create</param>
|
||||
IObservable<Reaction> Create(string owner, string name, int number, NewReaction reaction);
|
||||
IObservable<Reaction> Create(string owner, string name, long commentId, NewReaction reaction);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a reaction for a specified Pull Request Review Comment.
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#create-reaction-for-a-pull-request-review-comment</remarks>
|
||||
/// <param name="repositoryId">The owner of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="reaction">The reaction to create</param>
|
||||
IObservable<Reaction> Create(long repositoryId, int number, NewReaction reaction);
|
||||
IObservable<Reaction> Create(long repositoryId, long commentId, NewReaction reaction);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes a reaction for a specified Pull Request comment
|
||||
@@ -75,7 +75,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="reactionId">The reaction id</param>
|
||||
/// <returns></returns>
|
||||
IObservable<Unit> Delete(string owner, string name, int commentId, int reactionId);
|
||||
IObservable<Unit> Delete(string owner, string name, long commentId, long reactionId);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes a reaction for a specified Pull Request comment
|
||||
@@ -85,6 +85,6 @@ namespace Octokit.Reactive
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="reactionId">The reaction id</param>
|
||||
/// <returns></returns>
|
||||
IObservable<Unit> Delete(long repositoryId, int commentId, int reactionId);
|
||||
IObservable<Unit> Delete(long repositoryId, long commentId, long reactionId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,16 +17,16 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/pulls/comments/#list-comments-on-a-pull-request</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
IObservable<PullRequestReviewComment> GetAll(string owner, string name, int number);
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
IObservable<PullRequestReviewComment> GetAll(string owner, string name, int pullRequestNumber);
|
||||
|
||||
/// <summary>
|
||||
/// Gets review comments for a specified pull request.
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/pulls/comments/#list-comments-on-a-pull-request</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
IObservable<PullRequestReviewComment> GetAll(long repositoryId, int number);
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
IObservable<PullRequestReviewComment> GetAll(long repositoryId, int pullRequestNumber);
|
||||
|
||||
/// <summary>
|
||||
/// Gets review comments for a specified pull request.
|
||||
@@ -34,18 +34,18 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/pulls/comments/#list-comments-on-a-pull-request</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<PullRequestReviewComment> GetAll(string owner, string name, int number, ApiOptions options);
|
||||
IObservable<PullRequestReviewComment> GetAll(string owner, string name, int pullRequestNumber, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Gets review comments for a specified pull request.
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/pulls/comments/#list-comments-on-a-pull-request</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<PullRequestReviewComment> GetAll(long repositoryId, int number, ApiOptions options);
|
||||
IObservable<PullRequestReviewComment> GetAll(long repositoryId, int pullRequestNumber, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a list of the pull request review comments in a specified repository.
|
||||
@@ -121,16 +121,16 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/pulls/comments/#get-a-single-comment</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request review comment number</param>
|
||||
IObservable<PullRequestReviewComment> GetComment(string owner, string name, int number);
|
||||
/// <param name="commentId">The pull request review comment id</param>
|
||||
IObservable<PullRequestReviewComment> GetComment(string owner, string name, long commentId);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a single pull request review comment by number.
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/pulls/comments/#get-a-single-comment</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request review comment number</param>
|
||||
IObservable<PullRequestReviewComment> GetComment(long repositoryId, int number);
|
||||
/// <param name="commentId">The pull request review comment id</param>
|
||||
IObservable<PullRequestReviewComment> GetComment(long repositoryId, long commentId);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a comment on a pull request review.
|
||||
@@ -138,18 +138,18 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/pulls/comments/#create-a-comment</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The Pull Request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="comment">The comment</param>
|
||||
IObservable<PullRequestReviewComment> Create(string owner, string name, int number, PullRequestReviewCommentCreate comment);
|
||||
IObservable<PullRequestReviewComment> Create(string owner, string name, int pullRequestNumber, PullRequestReviewCommentCreate comment);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a comment on a pull request review.
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/pulls/comments/#create-a-comment</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The Pull Request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="comment">The comment</param>
|
||||
IObservable<PullRequestReviewComment> Create(long repositoryId, int number, PullRequestReviewCommentCreate comment);
|
||||
IObservable<PullRequestReviewComment> Create(long repositoryId, int pullRequestNumber, PullRequestReviewCommentCreate comment);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a comment on a pull request review as a reply to another comment.
|
||||
@@ -157,18 +157,18 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/pulls/comments/#create-a-comment</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="comment">The comment</param>
|
||||
IObservable<PullRequestReviewComment> CreateReply(string owner, string name, int number, PullRequestReviewCommentReplyCreate comment);
|
||||
IObservable<PullRequestReviewComment> CreateReply(string owner, string name, int pullRequestNumber, PullRequestReviewCommentReplyCreate comment);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a comment on a pull request review as a reply to another comment.
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/pulls/comments/#create-a-comment</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="comment">The comment</param>
|
||||
IObservable<PullRequestReviewComment> CreateReply(long repositoryId, int number, PullRequestReviewCommentReplyCreate comment);
|
||||
IObservable<PullRequestReviewComment> CreateReply(long repositoryId, int pullRequestNumber, PullRequestReviewCommentReplyCreate comment);
|
||||
|
||||
/// <summary>
|
||||
/// Edits a comment on a pull request review.
|
||||
@@ -176,18 +176,18 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/pulls/comments/#edit-a-comment</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request review comment number</param>
|
||||
/// <param name="commentId">The pull request review comment id</param>
|
||||
/// <param name="comment">The edited comment</param>
|
||||
IObservable<PullRequestReviewComment> Edit(string owner, string name, int number, PullRequestReviewCommentEdit comment);
|
||||
IObservable<PullRequestReviewComment> Edit(string owner, string name, long commentId, PullRequestReviewCommentEdit comment);
|
||||
|
||||
/// <summary>
|
||||
/// Edits a comment on a pull request review.
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/pulls/comments/#edit-a-comment</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request review comment number</param>
|
||||
/// <param name="commentId">The pull request review comment id</param>
|
||||
/// <param name="comment">The edited comment</param>
|
||||
IObservable<PullRequestReviewComment> Edit(long repositoryId, int number, PullRequestReviewCommentEdit comment);
|
||||
IObservable<PullRequestReviewComment> Edit(long repositoryId, long commentId, PullRequestReviewCommentEdit comment);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes a comment on a pull request review.
|
||||
@@ -195,15 +195,15 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/pulls/comments/#delete-a-comment</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request review comment number</param>
|
||||
IObservable<Unit> Delete(string owner, string name, int number);
|
||||
/// <param name="commentId">The pull request review comment id</param>
|
||||
IObservable<Unit> Delete(string owner, string name, long commentId);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes a comment on a pull request review.
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/pulls/comments/#delete-a-comment</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request review comment number</param>
|
||||
IObservable<Unit> Delete(long repositoryId, int number);
|
||||
/// <param name="commentId">The pull request review comment id</param>
|
||||
IObservable<Unit> Delete(long repositoryId, long commentId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,16 +17,16 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/pulls/review_requests/#list-review-requests</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
IObservable<RequestedReviews> Get(string owner, string name, int number);
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
IObservable<RequestedReviews> Get(string owner, string name, int pullRequestNumber);
|
||||
|
||||
/// <summary>
|
||||
/// Gets review requests for a specified pull request.
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/pulls/review_requests/#list-review-requests</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
IObservable<RequestedReviews> Get(long repositoryId, int number);
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
IObservable<RequestedReviews> Get(long repositoryId, int pullRequestNumber);
|
||||
|
||||
/// <summary>
|
||||
/// Creates review requests on a pull request for specified users.
|
||||
@@ -34,18 +34,18 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/pulls/review_requests/#create-a-review-request</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The Pull Request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="users">List of logins of user will be requested for review</param>
|
||||
IObservable<PullRequest> Create(string owner, string name, int number, PullRequestReviewRequest users);
|
||||
IObservable<PullRequest> Create(string owner, string name, int pullRequestNumber, PullRequestReviewRequest users);
|
||||
|
||||
/// <summary>
|
||||
/// Creates review requests on a pull request for specified users.
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/pulls/review_requests/#create-a-review-request</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The Pull Request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="users">List of logins of user will be requested for review</param>
|
||||
IObservable<PullRequest> Create(long repositoryId, int number, PullRequestReviewRequest users);
|
||||
IObservable<PullRequest> Create(long repositoryId, int pullRequestNumber, PullRequestReviewRequest users);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes review request for given users on a pull request.
|
||||
@@ -53,17 +53,17 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/pulls/review_requests/#delete-a-review-request</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request review comment number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="users">List of logins of users that will be not longer requested for review</param>
|
||||
IObservable<Unit> Delete(string owner, string name, int number, PullRequestReviewRequest users);
|
||||
IObservable<Unit> Delete(string owner, string name, int pullRequestNumber, PullRequestReviewRequest users);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes review request for given users on a pull request.
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/pulls/review_requests/#delete-a-review-request</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request review comment number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="users">List of logins of users that will be not longer requested for review</param>
|
||||
IObservable<Unit> Delete(long repositoryId, int number, PullRequestReviewRequest users);
|
||||
IObservable<Unit> Delete(long repositoryId, int pullRequestNumber, PullRequestReviewRequest users);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,16 +17,16 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/pulls/reviews/#list-reviews-on-a-pull-request</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
IObservable<PullRequestReview> GetAll(string owner, string name, int number);
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
IObservable<PullRequestReview> GetAll(string owner, string name, int pullRequestNumber);
|
||||
|
||||
/// <summary>
|
||||
/// Gets reviews for a specified pull request.
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/pulls/reviews/#list-reviews-on-a-pull-request</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
IObservable<PullRequestReview> GetAll(long repositoryId, int number);
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
IObservable<PullRequestReview> GetAll(long repositoryId, int pullRequestNumber);
|
||||
|
||||
/// <summary>
|
||||
/// Gets reviews for a specified pull request.
|
||||
@@ -34,18 +34,18 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/pulls/reviews/#list-reviews-on-a-pull-request</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<PullRequestReview> GetAll(string owner, string name, int number, ApiOptions options);
|
||||
IObservable<PullRequestReview> GetAll(string owner, string name, int pullRequestNumber, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Gets reviews for a specified pull request.
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/pulls/reviews/#list-reviews-on-a-pull-request</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<PullRequestReview> GetAll(long repositoryId, int number, ApiOptions options);
|
||||
IObservable<PullRequestReview> GetAll(long repositoryId, int pullRequestNumber, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a single pull request review by ID.
|
||||
@@ -53,18 +53,18 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/pulls/reviews/#get-a-single-review</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="reviewId">The pull request review number</param>
|
||||
IObservable<PullRequestReview> Get(string owner, string name, int number, long reviewId);
|
||||
IObservable<PullRequestReview> Get(string owner, string name, int pullRequestNumber, long reviewId);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a single pull request review by ID.
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/pulls/reviews/#get-a-single-review</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="reviewId">The pull request review number</param>
|
||||
IObservable<PullRequestReview> Get(long repositoryId, int number, long reviewId);
|
||||
IObservable<PullRequestReview> Get(long repositoryId, int pullRequestNumber, long reviewId);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a pull request review.
|
||||
@@ -72,18 +72,18 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/pulls/reviews/#create-a-pull-request-review</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The Pull Request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="review">The review</param>
|
||||
IObservable<PullRequestReview> Create(string owner, string name, int number, PullRequestReviewCreate review);
|
||||
IObservable<PullRequestReview> Create(string owner, string name, int pullRequestNumber, PullRequestReviewCreate review);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a pull request review.
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/pulls/reviews/#create-a-pull-request-review</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The Pull Request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="review">The review</param>
|
||||
IObservable<PullRequestReview> Create(long repositoryId, int number, PullRequestReviewCreate review);
|
||||
IObservable<PullRequestReview> Create(long repositoryId, int pullRequestNumber, PullRequestReviewCreate review);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes a pull request review.
|
||||
@@ -91,18 +91,18 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/pulls/reviews/#delete-a-pending-review</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="reviewId">The pull request review number</param>
|
||||
IObservable<Unit> Delete(string owner, string name, int number, long reviewId);
|
||||
IObservable<Unit> Delete(string owner, string name, int pullRequestNumber, long reviewId);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes a pull request review.
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/pulls/reviews/#delete-a-pending-review</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="reviewId">The pull request review number</param>
|
||||
IObservable<Unit> Delete(long repositoryId, int number, long reviewId);
|
||||
IObservable<Unit> Delete(long repositoryId, int pullRequestNumber, long reviewId);
|
||||
|
||||
/// <summary>
|
||||
/// Submits a pull request review.
|
||||
@@ -110,20 +110,20 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/pulls/reviews/#submit-a-pull-request-review</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="reviewId">The pull request review number</param>
|
||||
/// <param name="submitMessage">The message and event being submitted for the review</param>
|
||||
IObservable<PullRequestReview> Submit(string owner, string name, int number, long reviewId, PullRequestReviewSubmit submitMessage);
|
||||
IObservable<PullRequestReview> Submit(string owner, string name, int pullRequestNumber, long reviewId, PullRequestReviewSubmit submitMessage);
|
||||
|
||||
/// <summary>
|
||||
/// Submits a pull request review.
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/pulls/reviews/#submit-a-pull-request-review</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="reviewId">The pull request review number</param>
|
||||
/// <param name="submitMessage">The message and event being submitted for the review</param>
|
||||
IObservable<PullRequestReview> Submit(long repositoryId, int number, long reviewId, PullRequestReviewSubmit submitMessage);
|
||||
IObservable<PullRequestReview> Submit(long repositoryId, int pullRequestNumber, long reviewId, PullRequestReviewSubmit submitMessage);
|
||||
|
||||
/// <summary>
|
||||
/// Dismisses a pull request review.
|
||||
@@ -131,20 +131,20 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/pulls/reviews/#dismiss-a-pull-request-review</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="reviewId">The pull request review number</param>
|
||||
/// <param name="dismissMessage">The message indicating why the review was dismissed</param>
|
||||
IObservable<PullRequestReview> Dismiss(string owner, string name, int number, long reviewId, PullRequestReviewDismiss dismissMessage);
|
||||
IObservable<PullRequestReview> Dismiss(string owner, string name, int pullRequestNumber, long reviewId, PullRequestReviewDismiss dismissMessage);
|
||||
|
||||
/// <summary>
|
||||
/// Dismisses a pull request review.
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/pulls/reviews/#dismiss-a-pull-request-review</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="reviewId">The pull request review number</param>
|
||||
/// <param name="dismissMessage">The message indicating why the review was dismissed</param>
|
||||
IObservable<PullRequestReview> Dismiss(long repositoryId, int number, long reviewId, PullRequestReviewDismiss dismissMessage);
|
||||
IObservable<PullRequestReview> Dismiss(long repositoryId, int pullRequestNumber, long reviewId, PullRequestReviewDismiss dismissMessage);
|
||||
|
||||
/// <summary>
|
||||
/// Lists comments for a single review
|
||||
@@ -152,18 +152,18 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/pulls/reviews/#get-comments-for-a-single-review</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="reviewId">The pull request review number</param>
|
||||
IObservable<PullRequestReviewComment> GetAllComments(string owner, string name, int number, long reviewId);
|
||||
IObservable<PullRequestReviewComment> GetAllComments(string owner, string name, int pullRequestNumber, long reviewId);
|
||||
|
||||
/// <summary>
|
||||
/// Dismisses a pull request review.
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/pulls/reviews/#get-comments-for-a-single-review</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="reviewId">The pull request review number</param>
|
||||
IObservable<PullRequestReviewComment> GetAllComments(long repositoryId, int number, long reviewId);
|
||||
IObservable<PullRequestReviewComment> GetAllComments(long repositoryId, int pullRequestNumber, long reviewId);
|
||||
|
||||
/// <summary>
|
||||
/// Lists comments for a single review
|
||||
@@ -171,19 +171,19 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/pulls/reviews/#get-comments-for-a-single-review</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="reviewId">The pull request review number</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<PullRequestReviewComment> GetAllComments(string owner, string name, int number, long reviewId, ApiOptions options);
|
||||
IObservable<PullRequestReviewComment> GetAllComments(string owner, string name, int pullRequestNumber, long reviewId, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Dismisses a pull request review.
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/pulls/reviews/#get-comments-for-a-single-review</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="reviewId">The pull request review number</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<PullRequestReviewComment> GetAllComments(long repositoryId, int number, long reviewId, ApiOptions options);
|
||||
IObservable<PullRequestReviewComment> GetAllComments(long repositoryId, int pullRequestNumber, long reviewId, ApiOptions options);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,10 +39,10 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The number of the pull request</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
|
||||
Justification = "Method makes a network request")]
|
||||
IObservable<PullRequest> Get(string owner, string name, int number);
|
||||
IObservable<PullRequest> Get(string owner, string name, int pullRequestNumber);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a single Pull Request by number.
|
||||
@@ -51,10 +51,10 @@ namespace Octokit.Reactive
|
||||
/// http://developer.github.com/v3/pulls/#get-a-single-pull-request
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The number of the pull request</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
|
||||
Justification = "Method makes a network request")]
|
||||
IObservable<PullRequest> Get(long repositoryId, int number);
|
||||
IObservable<PullRequest> Get(long repositoryId, int pullRequestNumber);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all open pull requests for the repository.
|
||||
@@ -163,20 +163,20 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/pulls/#update-a-pull-request</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The PullRequest number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="pullRequestUpdate">An <see cref="PullRequestUpdate"/> instance describing the changes to make to the PullRequest
|
||||
/// </param>
|
||||
IObservable<PullRequest> Update(string owner, string name, int number, PullRequestUpdate pullRequestUpdate);
|
||||
IObservable<PullRequest> Update(string owner, string name, int pullRequestNumber, PullRequestUpdate pullRequestUpdate);
|
||||
|
||||
/// <summary>
|
||||
/// Update a pull request for the specified repository.
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/pulls/#update-a-pull-request</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The PullRequest number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="pullRequestUpdate">An <see cref="PullRequestUpdate"/> instance describing the changes to make to the PullRequest
|
||||
/// </param>
|
||||
IObservable<PullRequest> Update(long repositoryId, int number, PullRequestUpdate pullRequestUpdate);
|
||||
IObservable<PullRequest> Update(long repositoryId, int pullRequestNumber, PullRequestUpdate pullRequestUpdate);
|
||||
|
||||
/// <summary>
|
||||
/// Merge a pull request.
|
||||
@@ -184,18 +184,18 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/pulls/#merge-a-pull-request-merge-buttontrade</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="mergePullRequest">A <see cref="MergePullRequest"/> instance describing a pull request merge</param>
|
||||
IObservable<PullRequestMerge> Merge(string owner, string name, int number, MergePullRequest mergePullRequest);
|
||||
IObservable<PullRequestMerge> Merge(string owner, string name, int pullRequestNumber, MergePullRequest mergePullRequest);
|
||||
|
||||
/// <summary>
|
||||
/// Merge a pull request.
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/pulls/#merge-a-pull-request-merge-buttontrade</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="mergePullRequest">A <see cref="MergePullRequest"/> instance describing a pull request merge</param>
|
||||
IObservable<PullRequestMerge> Merge(long repositoryId, int number, MergePullRequest mergePullRequest);
|
||||
IObservable<PullRequestMerge> Merge(long repositoryId, int pullRequestNumber, MergePullRequest mergePullRequest);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the pull request merge status.
|
||||
@@ -203,16 +203,16 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/pulls/#get-if-a-pull-request-has-been-merged</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
IObservable<bool> Merged(string owner, string name, int number);
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
IObservable<bool> Merged(string owner, string name, int pullRequestNumber);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the pull request merge status.
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/pulls/#get-if-a-pull-request-has-been-merged</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
IObservable<bool> Merged(long repositoryId, int number);
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
IObservable<bool> Merged(long repositoryId, int pullRequestNumber);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the list of commits on a pull request.
|
||||
@@ -220,16 +220,16 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/pulls/#list-commits-on-a-pull-request</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
IObservable<PullRequestCommit> Commits(string owner, string name, int number);
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
IObservable<PullRequestCommit> Commits(string owner, string name, int pullRequestNumber);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the list of commits on a pull request.
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/pulls/#list-commits-on-a-pull-request</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
IObservable<PullRequestCommit> Commits(long repositoryId, int number);
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
IObservable<PullRequestCommit> Commits(long repositoryId, int pullRequestNumber);
|
||||
|
||||
/// <summary>
|
||||
/// Get the list of files on a pull request.
|
||||
@@ -237,9 +237,9 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/pulls/#list-pull-requests-files</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<PullRequestFile> Files(string owner, string name, int number, ApiOptions options);
|
||||
IObservable<PullRequestFile> Files(string owner, string name, int pullRequestNumber, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Get the list of files on a pull request.
|
||||
@@ -247,24 +247,24 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/pulls/#list-pull-requests-files</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
IObservable<PullRequestFile> Files(string owner, string name, int number);
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
IObservable<PullRequestFile> Files(string owner, string name, int pullRequestNumber);
|
||||
|
||||
/// <summary>
|
||||
/// Get the list of files on a pull request.
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/pulls/#list-pull-requests-files</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<PullRequestFile> Files(long repositoryId, int number, ApiOptions options);
|
||||
IObservable<PullRequestFile> Files(long repositoryId, int pullRequestNumber, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Get the list of files on a pull request.
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/pulls/#list-pull-requests-files</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
IObservable<PullRequestFile> Files(long repositoryId, int number);
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
IObservable<PullRequestFile> Files(long repositoryId, int pullRequestNumber);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="name">The repository's name</param>
|
||||
/// <param name="id">The id of the release</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
IObservable<Release> Get(string owner, string name, int id);
|
||||
IObservable<Release> Get(string owner, string name, long id);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a single <see cref="Release"/> for the specified repository.
|
||||
@@ -113,7 +113,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="id">The id of the release</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
IObservable<Release> Get(long repositoryId, int id);
|
||||
IObservable<Release> Get(long repositoryId, long id);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a single <see cref="Release"/> for the specified repository.
|
||||
@@ -181,7 +181,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The id of the release</param>
|
||||
/// <param name="data">A description of the release to edit</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
IObservable<Release> Edit(string owner, string name, int id, ReleaseUpdate data);
|
||||
IObservable<Release> Edit(string owner, string name, long id, ReleaseUpdate data);
|
||||
|
||||
/// <summary>
|
||||
/// Edits an existing <see cref="Release"/> for the specified repository.
|
||||
@@ -193,7 +193,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The id of the release</param>
|
||||
/// <param name="data">A description of the release to edit</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
IObservable<Release> Edit(long repositoryId, int id, ReleaseUpdate data);
|
||||
IObservable<Release> Edit(long repositoryId, long id, ReleaseUpdate data);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes an existing <see cref="Release"/> for the specified repository.
|
||||
@@ -205,7 +205,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="name">The repository's name</param>
|
||||
/// <param name="id">The id of the release to delete</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
IObservable<Unit> Delete(string owner, string name, int id);
|
||||
IObservable<Unit> Delete(string owner, string name, long id);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes an existing <see cref="Release"/> for the specified repository.
|
||||
@@ -216,7 +216,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="id">The id of the release to delete</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
IObservable<Unit> Delete(long repositoryId, int id);
|
||||
IObservable<Unit> Delete(long repositoryId, long id);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all <see cref="ReleaseAsset"/> for the specified release of the specified repository.
|
||||
@@ -228,7 +228,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="name">The repository's name</param>
|
||||
/// <param name="id">The id of the <see cref="Release"/>.</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
IObservable<ReleaseAsset> GetAllAssets(string owner, string name, int id);
|
||||
IObservable<ReleaseAsset> GetAllAssets(string owner, string name, long id);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all <see cref="ReleaseAsset"/> for the specified release of the specified repository.
|
||||
@@ -239,7 +239,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="id">The id of the <see cref="Release"/>.</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
IObservable<ReleaseAsset> GetAllAssets(long repositoryId, int id);
|
||||
IObservable<ReleaseAsset> GetAllAssets(long repositoryId, long id);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all <see cref="ReleaseAsset"/> for the specified release of the specified repository.
|
||||
@@ -252,7 +252,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The id of the <see cref="Release"/>.</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
IObservable<ReleaseAsset> GetAllAssets(string owner, string name, int id, ApiOptions options);
|
||||
IObservable<ReleaseAsset> GetAllAssets(string owner, string name, long id, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all <see cref="ReleaseAsset"/> for the specified release of the specified repository.
|
||||
@@ -264,7 +264,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The id of the <see cref="Release"/>.</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
IObservable<ReleaseAsset> GetAllAssets(long repositoryId, int id, ApiOptions options);
|
||||
IObservable<ReleaseAsset> GetAllAssets(long repositoryId, long id, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Uploads a <see cref="ReleaseAsset"/> for the specified release.
|
||||
@@ -330,8 +330,8 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="owner">The repository's owner</param>
|
||||
/// <param name="name">The repository's name</param>
|
||||
/// <param name="id">The id of the <see cref="ReleaseAsset"/>.</param>
|
||||
IObservable<Unit> DeleteAsset(string owner, string name, int id);
|
||||
/// <param name="assetId">The id of the <see cref="ReleaseAsset"/>.</param>
|
||||
IObservable<Unit> DeleteAsset(string owner, string name, int assetId);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes the specified <see cref="ReleaseAsset"/> from the specified repository
|
||||
@@ -340,7 +340,7 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="http://developer.github.com/v3/repos/releases/#delete-a-release-asset">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="id">The id of the <see cref="ReleaseAsset"/>.</param>
|
||||
IObservable<Unit> DeleteAsset(long repositoryId, int id);
|
||||
/// <param name="assetId">The id of the <see cref="ReleaseAsset"/>.</param>
|
||||
IObservable<Unit> DeleteAsset(long repositoryId, int assetId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -255,6 +255,14 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
IObservableRepositoryCommentsClient Comment { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Client for GitHub's Repository Custom Property Values API.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="http://developer.github.com/v3/repos/custom-properties/">Repository Custom Property API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
IObservableRepositoryCustomPropertiesClient CustomProperty { get; }
|
||||
|
||||
/// <summary>
|
||||
/// A client for GitHub's Repository Hooks API.
|
||||
/// </summary>
|
||||
|
||||
@@ -18,20 +18,20 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/repos/comments/#get-a-single-commit-comment</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
|
||||
Justification = "Method makes a network request")]
|
||||
IObservable<CommitComment> Get(string owner, string name, int number);
|
||||
IObservable<CommitComment> Get(string owner, string name, long commentId);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a single Repository Comment by number.
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/repos/comments/#get-a-single-commit-comment</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
|
||||
Justification = "Method makes a network request")]
|
||||
IObservable<CommitComment> Get(long repositoryId, int number);
|
||||
IObservable<CommitComment> Get(long repositoryId, long commentId);
|
||||
|
||||
/// <summary>
|
||||
/// Gets Commit Comments for a repository.
|
||||
@@ -126,18 +126,18 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/repos/comments/#update-a-commit-comment</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The comment number</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="commentUpdate">The modified comment</param>
|
||||
IObservable<CommitComment> Update(string owner, string name, int number, string commentUpdate);
|
||||
IObservable<CommitComment> Update(string owner, string name, long commentId, string commentUpdate);
|
||||
|
||||
/// <summary>
|
||||
/// Updates a specified Commit Comment.
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/repos/comments/#update-a-commit-comment</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The comment number</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="commentUpdate">The modified comment</param>
|
||||
IObservable<CommitComment> Update(long repositoryId, int number, string commentUpdate);
|
||||
IObservable<CommitComment> Update(long repositoryId, long commentId, string commentUpdate);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes the specified Commit Comment
|
||||
@@ -145,15 +145,15 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/repos/comments/#delete-a-commit-comment</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
IObservable<Unit> Delete(string owner, string name, int number);
|
||||
/// <param name="commentId">The comment id</param>
|
||||
IObservable<Unit> Delete(string owner, string name, long commentId);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes the specified Commit Comment
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/repos/comments/#delete-a-commit-comment</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
IObservable<Unit> Delete(long repositoryId, int number);
|
||||
/// <param name="commentId">The comment id</param>
|
||||
IObservable<Unit> Delete(long repositoryId, long commentId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.Reactive;
|
||||
|
||||
namespace Octokit.Reactive
|
||||
{
|
||||
/// <summary>
|
||||
/// A client for GitHub's Repository Custom Property Values API.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/repos/custom-properties">Custom Properties API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
public interface IObservableRepositoryCustomPropertiesClient
|
||||
{
|
||||
/// <summary>
|
||||
/// Get all custom property values for a repository.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/repos/custom-properties#get-all-custom-property-values-for-a-repository">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="owner">The owner of the repository.</param>
|
||||
/// <param name="repoName">The name of the repository.</param>
|
||||
IObservable<CustomPropertyValue> GetAll(string owner, string repoName);
|
||||
|
||||
/// <summary>
|
||||
/// Create new or update existing custom property values for a repository. Using a value of null for a custom property will remove or 'unset' the property value from the repository.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/repos/custom-properties#create-or-update-custom-property-values-for-a-repository">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="repoName">The name of the repository</param>
|
||||
/// <param name="propertyValues">The custom property values to create or update</param>
|
||||
IObservable<Unit> CreateOrUpdate(string owner, string repoName, UpsertRepositoryCustomPropertyValues propertyValues);
|
||||
}
|
||||
}
|
||||
@@ -20,9 +20,9 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="owner">The owner of the repository.</param>
|
||||
/// <param name="name">The name of the repository.</param>
|
||||
/// <param name="number">The id of the deploy key.</param>
|
||||
/// <param name="deployKeyId">The id of the deploy key.</param>
|
||||
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")]
|
||||
IObservable<DeployKey> Get(string owner, string name, int number);
|
||||
IObservable<DeployKey> Get(string owner, string name, int deployKeyId);
|
||||
|
||||
/// <summary>
|
||||
/// Get a single deploy key by number for a repository.
|
||||
@@ -31,9 +31,9 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://developer.github.com/v3/repos/keys/#get"> API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository.</param>
|
||||
/// <param name="number">The id of the deploy key.</param>
|
||||
/// <param name="deployKeyId">The id of the deploy key.</param>
|
||||
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")]
|
||||
IObservable<DeployKey> Get(long repositoryId, int number);
|
||||
IObservable<DeployKey> Get(long repositoryId, int deployKeyId);
|
||||
|
||||
/// <summary>
|
||||
/// Get all deploy keys for a repository.
|
||||
@@ -104,8 +104,8 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="owner">The owner of the repository.</param>
|
||||
/// <param name="name">The name of the repository.</param>
|
||||
/// <param name="number">The id of the deploy key to delete.</param>
|
||||
IObservable<Unit> Delete(string owner, string name, int number);
|
||||
/// <param name="deployKeyId">The id of the deploy key to delete.</param>
|
||||
IObservable<Unit> Delete(string owner, string name, int deployKeyId);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes a deploy key from a repository.
|
||||
@@ -114,7 +114,7 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://developer.github.com/v3/repos/keys/#delete"> API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository.</param>
|
||||
/// <param name="number">The id of the deploy key to delete.</param>
|
||||
IObservable<Unit> Delete(long repositoryId, int number);
|
||||
/// <param name="deployKeyId">The id of the deploy key to delete.</param>
|
||||
IObservable<Unit> Delete(long repositoryId, int deployKeyId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,18 +11,18 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/repos/invitations/#accept-a-repository-invitation">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="invitationId">The id of the invitation.</param>
|
||||
IObservable<bool> Accept(int invitationId);
|
||||
/// </remarks>
|
||||
/// <param name="invitationId">The id of the invitation.</param>
|
||||
IObservable<bool> Accept(long invitationId);
|
||||
|
||||
/// <summary>
|
||||
/// Decline a repository invitation.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/repos/invitations/#decline-a-repository-invitation">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="invitationId">The id of the invitation.</param>
|
||||
IObservable<bool> Decline(int invitationId);
|
||||
/// </remarks>
|
||||
/// <param name="invitationId">The id of the invitation.</param>
|
||||
IObservable<bool> Decline(long invitationId);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes a repository invitation.
|
||||
@@ -31,15 +31,15 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://developer.github.com/v3/repos/invitations/#delete-a-repository-invitation">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The id of the repository.</param>
|
||||
/// <param name="invitationId">The id of the invitation.</param>
|
||||
IObservable<bool> Delete(long repositoryId, int invitationId);
|
||||
/// <param name="invitationId">The id of the invitation.</param>
|
||||
IObservable<bool> Delete(long repositoryId, long invitationId);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all invitations for the current user.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/repos/invitations/#list-a-users-repository-invitations">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// </remarks>
|
||||
[SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
|
||||
IObservable<RepositoryInvitation> GetAllForCurrent();
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace Octokit.Reactive
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/repos/invitations/#list-a-users-repository-invitations">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
[SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
|
||||
IObservable<RepositoryInvitation> GetAllForCurrent(ApiOptions options);
|
||||
|
||||
@@ -58,8 +58,8 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/repos/invitations/#list-invitations-for-a-repository">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The id of the repository</param>
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The id of the repository</param>
|
||||
IObservable<RepositoryInvitation> GetAllForRepository(long repositoryId);
|
||||
|
||||
/// <summary>
|
||||
@@ -67,9 +67,9 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/repos/invitations/#list-invitations-for-a-repository">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The id of the repository</param>
|
||||
/// /// <param name="options">Options for changing the API response</param>
|
||||
/// /// <param name="options">Options for changing the API response</param>
|
||||
IObservable<RepositoryInvitation> GetAllForRepository(long repositoryId, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
@@ -79,9 +79,9 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://developer.github.com/v3/repos/invitations/#update-a-repository-invitation">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The id of the repository.</param>
|
||||
/// <param name="invitationId">The id of the invitation.</param>
|
||||
/// <param name="invitationId">The id of the invitation.</param>
|
||||
/// <param name="permissions">The permission to set.</param>
|
||||
/// <returns><see cref="RepositoryInvitation"/></returns>
|
||||
IObservable<RepositoryInvitation> Edit(long repositoryId, int invitationId, InvitationUpdate permissions);
|
||||
IObservable<RepositoryInvitation> Edit(long repositoryId, long invitationId, InvitationUpdate permissions);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace Octokit.Reactive
|
||||
/// <returns>The <see cref="Team"/> with the given identifier.</returns>
|
||||
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
|
||||
Justification = "Method makes a network request")]
|
||||
IObservable<Team> Get(int id);
|
||||
IObservable<Team> Get(long id);
|
||||
|
||||
/// <summary>
|
||||
/// Returns all <see cref="Team" />s for the current org.
|
||||
@@ -65,7 +65,7 @@ namespace Octokit.Reactive
|
||||
/// https://developer.github.com/v3/orgs/teams/#list-child-teams
|
||||
/// </remarks>
|
||||
/// <param name="id">The team identifier</param>
|
||||
IObservable<Team> GetAllChildTeams(int id);
|
||||
IObservable<Team> GetAllChildTeams(long id);
|
||||
|
||||
/// <summary>
|
||||
/// Returns all child teams of the given team.
|
||||
@@ -75,26 +75,26 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="id">The team identifier</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<Team> GetAllChildTeams(int id, ApiOptions options);
|
||||
IObservable<Team> GetAllChildTeams(long id, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Returns all members of the given team.
|
||||
/// Returns all members of the given team.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// https://developer.github.com/v3/orgs/teams/#list-team-members
|
||||
/// </remarks>
|
||||
/// <param name="id">The team identifier</param>
|
||||
IObservable<User> GetAllMembers(int id);
|
||||
IObservable<User> GetAllMembers(long id);
|
||||
|
||||
/// <summary>
|
||||
/// Returns all members of the given team.
|
||||
/// Returns all members of the given team.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// https://developer.github.com/v3/orgs/teams/#list-team-members
|
||||
/// </remarks>
|
||||
/// <param name="id">The team identifier</param>
|
||||
/// <param name="options">Options to change API behaviour.</param>
|
||||
IObservable<User> GetAllMembers(int id, ApiOptions options);
|
||||
IObservable<User> GetAllMembers(long id, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Returns all members with the specified role in the given team of the given role.
|
||||
@@ -104,7 +104,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="id">The team identifier</param>
|
||||
/// <param name="request">The request filter</param>
|
||||
IObservable<User> GetAllMembers(int id, TeamMembersRequest request);
|
||||
IObservable<User> GetAllMembers(long id, TeamMembersRequest request);
|
||||
|
||||
/// <summary>
|
||||
/// Returns all members with the specified role in the given team of the given role.
|
||||
@@ -115,7 +115,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The team identifier</param>
|
||||
/// <param name="request">The request filter</param>
|
||||
/// <param name="options">Options to change API behaviour.</param>
|
||||
IObservable<User> GetAllMembers(int id, TeamMembersRequest request, ApiOptions options);
|
||||
IObservable<User> GetAllMembers(long id, TeamMembersRequest request, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Returns newly created <see cref="Team" /> for the current org.
|
||||
@@ -129,7 +129,7 @@ namespace Octokit.Reactive
|
||||
/// To edit a team, the authenticated user must either be an organization owner or a team maintainer
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#update-a-team">API documentation</a>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#update-a-team">API documentation</a>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <returns>updated <see cref="Team" /> for the current org</returns>
|
||||
@@ -139,22 +139,22 @@ namespace Octokit.Reactive
|
||||
/// Returns updated <see cref="Team" /> for the current org.
|
||||
/// This endpoint route is deprecated and will be removed from the Teams API.
|
||||
/// We recommend migrating your existing code to use the new Update a team endpoint.
|
||||
/// <see cref="Update(string, string, UpdateTeam)"/>
|
||||
/// <see cref="Update(long, UpdateTeam)"/>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#update-a-team-legacy">API documentation</a>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#update-a-team-legacy">API documentation</a>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns>Updated <see cref="Team"/></returns>
|
||||
IObservable<Team> Update(int id, UpdateTeam team);
|
||||
IObservable<Team> Update(long id, UpdateTeam team);
|
||||
|
||||
/// <summary>
|
||||
/// To delete a team, the authenticated user must be an organization owner or team maintainer.
|
||||
/// If you are an organization owner, deleting a parent team will delete all of its child teams as well.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#delete-a-team">API documentation</a>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#delete-a-team">API documentation</a>
|
||||
/// </remarks>
|
||||
/// <param name="org">The organization name. The name is not case sensitive.</param>
|
||||
/// <param name="teamSlug">The slug of the team name.</param>
|
||||
@@ -169,12 +169,12 @@ namespace Octokit.Reactive
|
||||
/// <see cref="Delete(string, string)"/>.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#delete-a-team-legacy">API documentation</a>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#delete-a-team-legacy">API documentation</a>
|
||||
/// </remarks>
|
||||
/// <param name="id">The unique identifier of the team.</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns></returns>
|
||||
IObservable<Unit> Delete(int id);
|
||||
IObservable<Unit> Delete(long id);
|
||||
|
||||
/// <summary>
|
||||
/// Adds a <see cref="User"/> to a <see cref="Team"/>.
|
||||
@@ -185,7 +185,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The team identifier.</param>
|
||||
/// <param name="login">The user to add to the team.</param>
|
||||
/// <param name="request">Additional parameters for the request</param>
|
||||
IObservable<TeamMembershipDetails> AddOrEditMembership(int id, string login, UpdateTeamMembership request);
|
||||
IObservable<TeamMembershipDetails> AddOrEditMembership(long id, string login, UpdateTeamMembership request);
|
||||
|
||||
/// <summary>
|
||||
/// Removes a <see cref="User"/> from a <see cref="Team"/>.
|
||||
@@ -196,10 +196,10 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The team identifier.</param>
|
||||
/// <param name="login">The user to remove from the team.</param>
|
||||
/// <returns><see langword="true"/> if the user was removed from the team; <see langword="false"/> otherwise.</returns>
|
||||
IObservable<bool> RemoveMembership(int id, string login);
|
||||
IObservable<bool> RemoveMembership(long id, string login);
|
||||
|
||||
/// <summary>
|
||||
/// Gets whether the user with the given <paramref name="login"/>
|
||||
/// Gets whether the user with the given <paramref name="login"/>
|
||||
/// is a member of the team with the given <paramref name="id"/>.
|
||||
/// A <see cref="NotFoundException"/> is thrown if the user is not a member.
|
||||
/// </summary>
|
||||
@@ -208,7 +208,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="id">The team to check.</param>
|
||||
/// <param name="login">The user to check.</param>
|
||||
IObservable<TeamMembershipDetails> GetMembershipDetails(int id, string login);
|
||||
IObservable<TeamMembershipDetails> GetMembershipDetails(long id, string login);
|
||||
|
||||
/// <summary>
|
||||
/// Returns all team's repositories.
|
||||
@@ -216,7 +216,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">Team Id.</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns>The team's repositories</returns>
|
||||
IObservable<Repository> GetAllRepositories(int id);
|
||||
IObservable<Repository> GetAllRepositories(long id);
|
||||
|
||||
/// <summary>
|
||||
/// Returns all team's repositories.
|
||||
@@ -225,14 +225,14 @@ namespace Octokit.Reactive
|
||||
/// <param name="options">Options to change API behaviour.</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns>The team's repositories</returns>
|
||||
IObservable<Repository> GetAllRepositories(int id, ApiOptions options);
|
||||
IObservable<Repository> GetAllRepositories(long id, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Remove a repository from the team
|
||||
/// </summary>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns></returns>
|
||||
IObservable<bool> RemoveRepository(int id, string organization, string repoName);
|
||||
IObservable<bool> RemoveRepository(long id, string organization, string repoName);
|
||||
|
||||
/// <summary>
|
||||
/// Adds a <see cref="Repository"/> to a <see cref="Team"/>.
|
||||
@@ -245,7 +245,7 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://developer.github.com/v3/orgs/teams/#add-team-repo">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <returns><see langword="true"/> if the repository was added to the team; <see langword="false"/> otherwise.</returns>
|
||||
IObservable<bool> AddRepository(int id, string organization, string repoName);
|
||||
IObservable<bool> AddRepository(long id, string organization, string repoName);
|
||||
|
||||
/// <summary>
|
||||
/// Adds a <see cref="Repository"/> to a <see cref="Team"/>.
|
||||
@@ -259,7 +259,7 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://developer.github.com/v3/orgs/teams/#add-team-repo">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <returns><see langword="true"/> if the repository was added to the team; <see langword="false"/> otherwise.</returns>
|
||||
IObservable<bool> AddRepository(int id, string organization, string repoName, RepositoryPermissionRequest permission);
|
||||
IObservable<bool> AddRepository(long id, string organization, string repoName, RepositoryPermissionRequest permission);
|
||||
|
||||
/// <summary>
|
||||
/// Gets whether or not the given repository is managed by the given team.
|
||||
@@ -271,7 +271,7 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://developer.github.com/v3/orgs/teams/#get-team-repo">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <returns><see langword="true"/> if the repository is managed by the given team; <see langword="false"/> otherwise.</returns>
|
||||
IObservable<bool> IsRepositoryManagedByTeam(int id, string owner, string repo);
|
||||
IObservable<bool> IsRepositoryManagedByTeam(long id, string owner, string repo);
|
||||
|
||||
/// <summary>
|
||||
/// List all pending invitations for the given team.
|
||||
@@ -282,7 +282,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="id">The team identifier</param>
|
||||
/// <returns></returns>
|
||||
IObservable<OrganizationMembershipInvitation> GetAllPendingInvitations(int id);
|
||||
IObservable<OrganizationMembershipInvitation> GetAllPendingInvitations(long id);
|
||||
|
||||
/// <summary>
|
||||
/// List all pending invitations for the given team.
|
||||
@@ -294,7 +294,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The team identifier</param>
|
||||
/// <param name="options">Options to change API behaviour.</param>
|
||||
/// <returns></returns>
|
||||
IObservable<OrganizationMembershipInvitation> GetAllPendingInvitations(int id, ApiOptions options);
|
||||
IObservable<OrganizationMembershipInvitation> GetAllPendingInvitations(long id, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Checks whether a team has admin, push, maintain, triage, or pull permission for a repository.
|
||||
@@ -339,9 +339,9 @@ namespace Octokit.Reactive
|
||||
/// <param name="owner">The account owner of the repository. The name is not case sensitive.</param>
|
||||
/// <param name="repo">The name of the repository. The name is not case sensitive.</param>
|
||||
/// <param name="permission">
|
||||
/// The permission to grant the team on this repository. We accept the following permissions to be set:
|
||||
/// pull, triage, push, maintain, admin and you can also specify a custom repository role name, if the
|
||||
/// owning organization has defined any. If no permission is specified, the team's permission attribute
|
||||
/// The permission to grant the team on this repository. We accept the following permissions to be set:
|
||||
/// pull, triage, push, maintain, admin and you can also specify a custom repository role name, if the
|
||||
/// owning organization has defined any. If no permission is specified, the team's permission attribute
|
||||
/// will be used to determine what permission to grant the team on this repository
|
||||
/// </param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
@@ -362,7 +362,7 @@ namespace Octokit.Reactive
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns></returns>
|
||||
IObservable<Unit> RemoveRepositoryFromATeam(string org, string teamSlug, string owner, string repo);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Get a team by slug name
|
||||
/// </summary>
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <returns>The <see cref="GpgKey"/> for the specified Id.</returns>
|
||||
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")]
|
||||
IObservable<GpgKey> Get(int id);
|
||||
IObservable<GpgKey> Get(long id);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new <see cref="GpgKey"/> for the authenticated user.
|
||||
@@ -66,6 +66,6 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://developer.github.com/v3/users/gpg_keys/#delete-a-gpg-key">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <returns></returns>
|
||||
IObservable<Unit> Delete(int id);
|
||||
IObservable<Unit> Delete(long id);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The Id of the SSH key</param>
|
||||
/// <returns>View extended details for a single public key.</returns>
|
||||
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")]
|
||||
IObservable<PublicKey> Get(int id);
|
||||
IObservable<PublicKey> Get(long id);
|
||||
|
||||
/// <summary>
|
||||
/// Create a public key <see cref="NewPublicKey"/>.
|
||||
@@ -83,6 +83,6 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the key to delete</param>
|
||||
/// <returns>Removes a public key.</returns>
|
||||
IObservable<Unit> Delete(int id);
|
||||
IObservable<Unit> Delete(long id);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -175,7 +175,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="enterprise">The enterprise name</param>
|
||||
/// <param name="runnerGroupId">The runner group ID</param>
|
||||
public IObservable<Organization> ListAllRunnerGroupOrganizationsForEnterprise(string enterprise, long runnerGroupId)
|
||||
public IObservable<OrganizationsResponse> ListAllRunnerGroupOrganizationsForEnterprise(string enterprise, long runnerGroupId)
|
||||
{
|
||||
return ListAllRunnerGroupOrganizationsForEnterprise(enterprise, runnerGroupId, ApiOptions.None);
|
||||
}
|
||||
@@ -189,12 +189,12 @@ namespace Octokit.Reactive
|
||||
/// <param name="enterprise">The enterprise name</param>
|
||||
/// <param name="runnerGroupId">The runner group ID</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<Organization> ListAllRunnerGroupOrganizationsForEnterprise(string enterprise, long runnerGroupId, ApiOptions options)
|
||||
public IObservable<OrganizationsResponse> ListAllRunnerGroupOrganizationsForEnterprise(string enterprise, long runnerGroupId, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(enterprise, nameof(enterprise));
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
return _connection.GetAndFlattenAllPages<Organization>(ApiUrls.ActionsListEnterpriseRunnerGroupOrganizations(enterprise, runnerGroupId), options);
|
||||
return _client.ListAllRunnerGroupOrganizationsForEnterprise(enterprise, runnerGroupId, options).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -205,7 +205,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="org">The organization name</param>
|
||||
/// <param name="runnerGroupId">The runner group ID</param>
|
||||
public IObservable<Repository> ListAllRunnerGroupRepositoriesForOrganization(string org, long runnerGroupId)
|
||||
public IObservable<RepositoriesResponse> ListAllRunnerGroupRepositoriesForOrganization(string org, long runnerGroupId)
|
||||
{
|
||||
return ListAllRunnerGroupRepositoriesForOrganization(org, runnerGroupId, ApiOptions.None);
|
||||
}
|
||||
@@ -219,12 +219,12 @@ namespace Octokit.Reactive
|
||||
/// <param name="org">The organization name</param>
|
||||
/// <param name="runnerGroupId">The runner group ID</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<Repository> ListAllRunnerGroupRepositoriesForOrganization(string org, long runnerGroupId, ApiOptions options)
|
||||
public IObservable<RepositoriesResponse> ListAllRunnerGroupRepositoriesForOrganization(string org, long runnerGroupId, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(org, nameof(org));
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
return _connection.GetAndFlattenAllPages<Repository>(ApiUrls.ActionsListOrganizationRunnerGroupRepositories(org, runnerGroupId), options);
|
||||
return _client.ListAllRunnerGroupRepositoriesForOrganization(org, runnerGroupId, options).ToObservable();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace Octokit.Reactive
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Manually triggers a GitHub Actions workflow run in a repository by Id.
|
||||
/// Manually triggers a GitHub Actions workflow run in a repository by slug.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// https://developer.github.com/v3/actions/workflows/#create-a-workflow-dispatch-event
|
||||
@@ -43,7 +43,7 @@ namespace Octokit.Reactive
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Manually triggers a GitHub Actions workflow run in a repository by Id.
|
||||
/// Manually triggers a GitHub Actions workflow run in a repository by slug.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// https://developer.github.com/v3/actions/workflows/#create-a-workflow-dispatch-event
|
||||
@@ -61,6 +61,39 @@ namespace Octokit.Reactive
|
||||
return _client.CreateDispatch(owner, name, workflowId, createDispatch).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Manually triggers a GitHub Actions workflow run in a repository by slug.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// https://developer.github.com/v3/actions/workflows/#create-a-workflow-dispatch-event
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository.</param>
|
||||
/// <param name="workflowFileName">The workflow file name.</param>
|
||||
/// <param name="createDispatch">The parameters to use to trigger the workflow run.</param>
|
||||
public IObservable<Unit> CreateDispatch(long repositoryId, string workflowFileName, CreateWorkflowDispatch createDispatch)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(workflowFileName, nameof(workflowFileName));
|
||||
Ensure.ArgumentNotNull(createDispatch, nameof(createDispatch));
|
||||
|
||||
return _client.CreateDispatch(repositoryId, workflowFileName, createDispatch).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Manually triggers a GitHub Actions workflow run in a repository by Id.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// https://developer.github.com/v3/actions/workflows/#create-a-workflow-dispatch-event
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository.</param>
|
||||
/// <param name="workflowId">The Id of the workflow.</param>
|
||||
/// <param name="createDispatch">The parameters to use to trigger the workflow run.</param>
|
||||
public IObservable<Unit> CreateDispatch(long repositoryId, long workflowId, CreateWorkflowDispatch createDispatch)
|
||||
{
|
||||
Ensure.ArgumentNotNull(createDispatch, nameof(createDispatch));
|
||||
|
||||
return _client.CreateDispatch(repositoryId, workflowId, createDispatch).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Disables a specific workflow in a repository by Id.
|
||||
/// </summary>
|
||||
|
||||
@@ -92,15 +92,15 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <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>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="assignees">List of names of assignees to add</param>
|
||||
public IObservable<Issue> AddAssignees(string owner, string name, int number, AssigneesUpdate assignees)
|
||||
public IObservable<Issue> AddAssignees(string owner, string name, int issueNumber, AssigneesUpdate assignees)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNull(assignees, nameof(assignees));
|
||||
|
||||
return _client.AddAssignees(owner, name, number, assignees).ToObservable();
|
||||
return _client.AddAssignees(owner, name, issueNumber, assignees).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -108,16 +108,16 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <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>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="assignees">List of assignees to remove </param>
|
||||
/// <returns></returns>
|
||||
public IObservable<Issue> RemoveAssignees(string owner, string name, int number, AssigneesUpdate assignees)
|
||||
public IObservable<Issue> RemoveAssignees(string owner, string name, int issueNumber, AssigneesUpdate assignees)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNull(assignees, nameof(assignees));
|
||||
|
||||
return _client.RemoveAssignees(owner, name, number, assignees).ToObservable();
|
||||
return _client.RemoveAssignees(owner, name, issueNumber, assignees).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -56,7 +56,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the <see cref="Authorization"/></param>
|
||||
/// <returns>An <see cref="Authorization"/></returns>
|
||||
public IObservable<Authorization> Get(int id)
|
||||
public IObservable<Authorization> Get(long id)
|
||||
{
|
||||
return _client.Get(id).ToObservable();
|
||||
}
|
||||
@@ -177,7 +177,7 @@ namespace Octokit.Reactive
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method will create a new authorization for the specified OAuth application, only if an authorization
|
||||
/// This method will create a new authorization for the specified OAuth application, only if an authorization
|
||||
/// for that application doesn’t already exist for the user. It returns the user’s token for the application
|
||||
/// if one exists. Otherwise, it creates one.
|
||||
/// </summary>
|
||||
@@ -188,7 +188,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="clientId">Client Id for the OAuth application that is requesting the token</param>
|
||||
/// <param name="clientSecret">The client secret</param>
|
||||
/// <param name="newAuthorization">Defines the scopes and metadata for the token</param>
|
||||
/// <exception cref="AuthorizationException">Thrown when the user does not have permission to make
|
||||
/// <exception cref="AuthorizationException">Thrown when the user does not have permission to make
|
||||
/// this request. Check </exception>
|
||||
/// <exception cref="TwoFactorRequiredException">Thrown when the current account has two-factor
|
||||
/// authentication enabled.</exception>
|
||||
@@ -207,19 +207,19 @@ namespace Octokit.Reactive
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method will create a new authorization for the specified OAuth application, only if an authorization
|
||||
/// This method will create a new authorization for the specified OAuth application, only if an authorization
|
||||
/// for that application doesn’t already exist for the user. It returns the user’s token for the application
|
||||
/// if one exists. Otherwise, it creates one.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See <a href="http://developer.github.com/v3/oauth/#get-or-create-an-authorization-for-a-specific-app">API
|
||||
/// See <a href="http://developer.github.com/v3/oauth/#get-or-create-an-authorization-for-a-specific-app">API
|
||||
/// documentation</a> for more details.
|
||||
/// </remarks>
|
||||
/// <param name="clientId">Client Id for the OAuth application that is requesting the token</param>
|
||||
/// <param name="clientSecret">The client secret</param>
|
||||
/// <param name="newAuthorization">Defines the scopes and metadata for the token</param>
|
||||
/// <param name="twoFactorAuthenticationCode">The two-factor authentication code provided by the user</param>
|
||||
/// <exception cref="AuthorizationException">Thrown when the user does not have permission to make
|
||||
/// <exception cref="AuthorizationException">Thrown when the user does not have permission to make
|
||||
/// this request. Check </exception>
|
||||
/// <exception cref="TwoFactorChallengeFailedException">Thrown when the two-factor code is not
|
||||
/// valid.</exception>
|
||||
@@ -307,7 +307,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The id of the <see cref="Authorization"/></param>
|
||||
/// <param name="authorizationUpdate">The changes to make to the authorization</param>
|
||||
/// <returns></returns>
|
||||
public IObservable<Authorization> Update(int id, AuthorizationUpdate authorizationUpdate)
|
||||
public IObservable<Authorization> Update(long id, AuthorizationUpdate authorizationUpdate)
|
||||
{
|
||||
Ensure.ArgumentNotNull(authorizationUpdate, nameof(authorizationUpdate));
|
||||
|
||||
@@ -319,7 +319,7 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This method requires authentication.
|
||||
/// See the <a href="http://developer.github.com/v3/oauth/#delete-an-authorization">API
|
||||
/// See the <a href="http://developer.github.com/v3/oauth/#delete-an-authorization">API
|
||||
/// documentation</a> for more details.
|
||||
/// </remarks>
|
||||
/// <param name="id">The system-wide Id of the authorization to delete</param>
|
||||
@@ -327,7 +327,7 @@ namespace Octokit.Reactive
|
||||
/// Thrown when the current user does not have permission to make the request.
|
||||
/// </exception>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
public IObservable<Unit> Delete(int id)
|
||||
public IObservable<Unit> Delete(long id)
|
||||
{
|
||||
return _client.Delete(id).ToObservable();
|
||||
}
|
||||
@@ -337,7 +337,7 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This method requires authentication.
|
||||
/// See the <a href="http://developer.github.com/v3/oauth/#delete-an-authorization">API
|
||||
/// See the <a href="http://developer.github.com/v3/oauth/#delete-an-authorization">API
|
||||
/// documentation</a> for more details.
|
||||
/// </remarks>
|
||||
/// <param name="id">The system-wide Id of the authorization to delete</param>
|
||||
@@ -346,7 +346,7 @@ namespace Octokit.Reactive
|
||||
/// Thrown when the current user does not have permission to make the request.
|
||||
/// </exception>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
public IObservable<Unit> Delete(int id, string twoFactorAuthenticationCode)
|
||||
public IObservable<Unit> Delete(long id, string twoFactorAuthenticationCode)
|
||||
{
|
||||
return _client.Delete(id, twoFactorAuthenticationCode).ToObservable();
|
||||
}
|
||||
|
||||
@@ -30,16 +30,16 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#create-reaction-for-a-commit-comment</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="reaction">The reaction to create</param>
|
||||
/// <returns></returns>
|
||||
public IObservable<Reaction> Create(string owner, string name, int number, NewReaction reaction)
|
||||
public IObservable<Reaction> Create(string owner, string name, long commentId, NewReaction reaction)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNull(reaction, nameof(reaction));
|
||||
|
||||
return _client.Create(owner, name, number, reaction).ToObservable();
|
||||
return _client.Create(owner, name, commentId, reaction).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -47,14 +47,14 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#create-reaction-for-a-commit-comment</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="reaction">The reaction to create </param>
|
||||
/// <returns></returns>
|
||||
public IObservable<Reaction> Create(long repositoryId, int number, NewReaction reaction)
|
||||
public IObservable<Reaction> Create(long repositoryId, long commentId, NewReaction reaction)
|
||||
{
|
||||
Ensure.ArgumentNotNull(reaction, nameof(reaction));
|
||||
|
||||
return _client.Create(repositoryId, number, reaction).ToObservable();
|
||||
return _client.Create(repositoryId, commentId, reaction).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -63,11 +63,11 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-a-commit-comment</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <returns></returns>
|
||||
public IObservable<Reaction> GetAll(string owner, string name, int number)
|
||||
public IObservable<Reaction> GetAll(string owner, string name, long commentId)
|
||||
{
|
||||
return GetAll(owner, name, number, ApiOptions.None);
|
||||
return GetAll(owner, name, commentId, ApiOptions.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -76,16 +76,16 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-a-commit-comment</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
/// <returns></returns>
|
||||
public IObservable<Reaction> GetAll(string owner, string name, int number, ApiOptions options)
|
||||
public IObservable<Reaction> GetAll(string owner, string name, long commentId, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
return _connection.GetAndFlattenAllPages<Reaction>(ApiUrls.CommitCommentReactions(owner, name, number), null, options);
|
||||
return _connection.GetAndFlattenAllPages<Reaction>(ApiUrls.CommitCommentReactions(owner, name, commentId), null, options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -93,11 +93,11 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-a-commit-comment</remarks>
|
||||
/// <param name="repositoryId">The owner of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <returns></returns>
|
||||
public IObservable<Reaction> GetAll(long repositoryId, int number)
|
||||
public IObservable<Reaction> GetAll(long repositoryId, long commentId)
|
||||
{
|
||||
return GetAll(repositoryId, number, ApiOptions.None);
|
||||
return GetAll(repositoryId, commentId, ApiOptions.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -105,14 +105,14 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-a-commit-comment</remarks>
|
||||
/// <param name="repositoryId">The owner of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
/// <returns></returns>
|
||||
public IObservable<Reaction> GetAll(long repositoryId, int number, ApiOptions options)
|
||||
public IObservable<Reaction> GetAll(long repositoryId, long commentId, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
return _connection.GetAndFlattenAllPages<Reaction>(ApiUrls.CommitCommentReactions(repositoryId, number), null, options);
|
||||
return _connection.GetAndFlattenAllPages<Reaction>(ApiUrls.CommitCommentReactions(repositoryId, commentId), null, options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -124,7 +124,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="reactionId">The reaction id</param>
|
||||
/// <returns></returns>
|
||||
public IObservable<Unit> Delete(string owner, string name, int commentId, int reactionId)
|
||||
public IObservable<Unit> Delete(string owner, string name, long commentId, long reactionId)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
@@ -139,13 +139,13 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://docs.github.com/rest/reactions#delete-a-commit-comment-reaction</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="reactionid">The reaction id</param>
|
||||
/// <param name="reactionId">The reaction id</param>
|
||||
/// <returns></returns>
|
||||
public IObservable<Unit> Delete(long repositoryId, int commentId, int reactionid)
|
||||
public IObservable<Unit> Delete(long repositoryId, long commentId, long reactionId)
|
||||
{
|
||||
Ensure.ArgumentNotNull(reactionid, nameof(reactionid));
|
||||
Ensure.ArgumentNotNull(reactionId, nameof(reactionId));
|
||||
|
||||
return _client.Delete(repositoryId, commentId, reactionid).ToObservable();
|
||||
return _client.Delete(repositoryId, commentId, reactionId).ToObservable();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
29
Octokit.Reactive/Clients/ObservableDependencyGraphClient.cs
Normal file
29
Octokit.Reactive/Clients/ObservableDependencyGraphClient.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
namespace Octokit.Reactive
|
||||
{
|
||||
/// <summary>
|
||||
/// A client for GitHub's Dependency Graph API.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/en/rest/dependency-graph">Git Dependency Graph API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
public class ObservableDependencyGraphClient : IObservableDependencyGraphClient
|
||||
{
|
||||
public ObservableDependencyGraphClient(IGitHubClient client)
|
||||
{
|
||||
Ensure.ArgumentNotNull(client, nameof(client));
|
||||
|
||||
//DependencyReview = new ObservableDependencyReviewClient(client);
|
||||
DependencySubmission = new ObservableDependencySubmissionClient(client);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Client for getting a dependency comparison between two commits.
|
||||
/// </summary>
|
||||
public IObservableDependencyReviewClient DependencyReview { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Client for submitting dependency snapshots.
|
||||
/// </summary>
|
||||
public IObservableDependencySubmissionClient DependencySubmission { get; private set; }
|
||||
}
|
||||
}
|
||||
63
Octokit.Reactive/Clients/ObservableDependencyReviewClient.cs
Normal file
63
Octokit.Reactive/Clients/ObservableDependencyReviewClient.cs
Normal file
@@ -0,0 +1,63 @@
|
||||
using System;
|
||||
using System.Reactive.Linq;
|
||||
using System.Reactive.Threading.Tasks;
|
||||
|
||||
namespace Octokit.Reactive
|
||||
{
|
||||
/// <summary>
|
||||
/// A client for GitHub's Dependency Review API.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/en/rest/dependency-graph/dependency-review">Git Dependency Review API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
public class ObservableDependencyReviewClient : IObservableDependencyReviewClient
|
||||
{
|
||||
readonly IDependencyReviewClient _client;
|
||||
|
||||
public ObservableDependencyReviewClient(IGitHubClient client)
|
||||
{
|
||||
Ensure.ArgumentNotNull(client, nameof(client));
|
||||
|
||||
_client = client.DependencyGraph.DependencyReview;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets all <see cref="DependencyDiff"/>s for the specified repository.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/en/rest/dependency-graph/dependency-review">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="base">The base revision</param>
|
||||
/// <param name="head">The head revision</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
public IObservable<DependencyDiff> GetAll(string owner, string name, string @base, string head)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNullOrEmptyString(@base, nameof(@base));
|
||||
Ensure.ArgumentNotNullOrEmptyString(head, nameof(head));
|
||||
|
||||
return _client.GetAll(owner, name, @base, head).ToObservable().SelectMany(x => x);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets all <see cref="DependencyDiff"/>s for the specified repository.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/en/rest/dependency-graph/dependency-review">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="base">The base revision</param>
|
||||
/// <param name="head">The head revision</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
public IObservable<DependencyDiff> GetAll(long repositoryId, string @base, string head)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(@base, nameof(@base));
|
||||
Ensure.ArgumentNotNullOrEmptyString(head, nameof(head));
|
||||
|
||||
return _client.GetAll(repositoryId, @base, head).ToObservable().SelectMany(x => x);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
using System;
|
||||
using System.Reactive.Threading.Tasks;
|
||||
|
||||
namespace Octokit.Reactive
|
||||
{
|
||||
/// <summary>
|
||||
/// A client for GitHub's Dependency Submission API.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/dependency-graph/dependency-submission">Dependency Submission API documentation</a> for more details.
|
||||
/// </remarks>
|
||||
public class ObservableDependencySubmissionClient : IObservableDependencySubmissionClient
|
||||
{
|
||||
readonly IDependencySubmissionClient _client;
|
||||
|
||||
public ObservableDependencySubmissionClient(IGitHubClient client)
|
||||
{
|
||||
Ensure.ArgumentNotNull(client, nameof(client));
|
||||
|
||||
_client = client.DependencyGraph.DependencySubmission;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new dependency snapshot.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/dependency-graph/dependency-submission">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="owner">The repository's owner</param>
|
||||
/// <param name="name">The repository's name</param>
|
||||
/// <param name="snapshot">The dependency snapshot to create</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs</exception>
|
||||
/// <returns>A <see cref="DependencySnapshotSubmission"/> instance for the created snapshot</returns>
|
||||
public IObservable<DependencySnapshotSubmission> Create(string owner, string name, NewDependencySnapshot snapshot)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNull(snapshot, nameof(snapshot));
|
||||
|
||||
return _client.Create(owner, name, snapshot).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new dependency snapshot.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/dependency-graph/dependency-submission">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="snapshot">The dependency snapshot to create</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs</exception>
|
||||
/// <returns>A <see cref="DependencySnapshotSubmission"/> instance for the created snapshot</returns>
|
||||
public IObservable<DependencySnapshotSubmission> Create(long repositoryId, NewDependencySnapshot snapshot)
|
||||
{
|
||||
Ensure.ArgumentNotNull(snapshot, nameof(snapshot));
|
||||
|
||||
return _client.Create(repositoryId, snapshot).ToObservable();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -34,7 +34,7 @@ namespace Octokit.Reactive.Clients
|
||||
/// <param name="owner">The owner of the repository.</param>
|
||||
/// <param name="name">The name of the repository.</param>
|
||||
/// <param name="deploymentId">The id of the deployment.</param>
|
||||
public IObservable<DeploymentStatus> GetAll(string owner, string name, int deploymentId)
|
||||
public IObservable<DeploymentStatus> GetAll(string owner, string name, long deploymentId)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
@@ -51,7 +51,7 @@ namespace Octokit.Reactive.Clients
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository.</param>
|
||||
/// <param name="deploymentId">The id of the deployment.</param>
|
||||
public IObservable<DeploymentStatus> GetAll(long repositoryId, int deploymentId)
|
||||
public IObservable<DeploymentStatus> GetAll(long repositoryId, long deploymentId)
|
||||
{
|
||||
return GetAll(repositoryId, deploymentId, ApiOptions.None);
|
||||
}
|
||||
@@ -67,7 +67,7 @@ namespace Octokit.Reactive.Clients
|
||||
/// <param name="name">The name of the repository.</param>
|
||||
/// <param name="deploymentId">The id of the deployment.</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<DeploymentStatus> GetAll(string owner, string name, int deploymentId, ApiOptions options)
|
||||
public IObservable<DeploymentStatus> GetAll(string owner, string name, long deploymentId, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
@@ -87,7 +87,7 @@ namespace Octokit.Reactive.Clients
|
||||
/// <param name="repositoryId">The Id of the repository.</param>
|
||||
/// <param name="deploymentId">The id of the deployment.</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<DeploymentStatus> GetAll(long repositoryId, int deploymentId, ApiOptions options)
|
||||
public IObservable<DeploymentStatus> GetAll(long repositoryId, long deploymentId, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
@@ -106,7 +106,7 @@ namespace Octokit.Reactive.Clients
|
||||
/// <param name="name">The name of the repository.</param>
|
||||
/// <param name="deploymentId">The id of the deployment.</param>
|
||||
/// <param name="newDeploymentStatus">The new deployment status to create.</param>
|
||||
public IObservable<DeploymentStatus> Create(string owner, string name, int deploymentId, NewDeploymentStatus newDeploymentStatus)
|
||||
public IObservable<DeploymentStatus> Create(string owner, string name, long deploymentId, NewDeploymentStatus newDeploymentStatus)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
@@ -125,7 +125,7 @@ namespace Octokit.Reactive.Clients
|
||||
/// <param name="repositoryId">The Id of the repository.</param>
|
||||
/// <param name="deploymentId">The id of the deployment.</param>
|
||||
/// <param name="newDeploymentStatus">The new deployment status to create.</param>
|
||||
public IObservable<DeploymentStatus> Create(long repositoryId, int deploymentId, NewDeploymentStatus newDeploymentStatus)
|
||||
public IObservable<DeploymentStatus> Create(long repositoryId, long deploymentId, NewDeploymentStatus newDeploymentStatus)
|
||||
{
|
||||
Ensure.ArgumentNotNull(newDeploymentStatus, nameof(newDeploymentStatus));
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="gistId">The id of the gist</param>
|
||||
/// <param name="commentId">The id of the comment</param>
|
||||
/// <returns>IObservable{GistComment}.</returns>
|
||||
public IObservable<GistComment> Get(string gistId, int commentId)
|
||||
public IObservable<GistComment> Get(string gistId, long commentId)
|
||||
{
|
||||
return _client.Get(gistId, commentId).ToObservable();
|
||||
}
|
||||
@@ -80,7 +80,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="commentId">The id of the comment</param>
|
||||
/// <param name="comment">The updated body of the comment</param>
|
||||
/// <returns>IObservable{GistComment}.</returns>
|
||||
public IObservable<GistComment> Update(string gistId, int commentId, string comment)
|
||||
public IObservable<GistComment> Update(string gistId, long commentId, string comment)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(comment, nameof(comment));
|
||||
|
||||
@@ -94,7 +94,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="gistId">The id of the gist</param>
|
||||
/// <param name="commentId">The id of the comment</param>
|
||||
/// <returns>IObservable{Unit}.</returns>
|
||||
public IObservable<Unit> Delete(string gistId, int commentId)
|
||||
public IObservable<Unit> Delete(string gistId, long commentId)
|
||||
{
|
||||
return _client.Delete(gistId, commentId).ToObservable();
|
||||
}
|
||||
|
||||
@@ -175,5 +175,18 @@ namespace Octokit.Reactive
|
||||
|
||||
return _client.GetUserInstallationForCurrent(user).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a GitHub app by completing the handshake necessary when implementing the GitHub App Manifest flow.
|
||||
/// https://docs.github.com/apps/sharing-github-apps/registering-a-github-app-from-a-manifest
|
||||
/// </summary>
|
||||
/// <remarks>https://docs.github.com/rest/apps/apps#create-a-github-app-from-a-manifest</remarks>
|
||||
/// <param name="code">Temporary code in a code parameter.</param>
|
||||
public IObservable<GitHubAppFromManifest> CreateAppFromManifest(string code)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(code, nameof(code));
|
||||
|
||||
return _client.CreateAppFromManifest(code).ToObservable();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,15 +30,15 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#create-reaction-for-an-issue-comment</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="reaction">The reaction to create </param>
|
||||
public IObservable<Reaction> Create(string owner, string name, int number, NewReaction reaction)
|
||||
public IObservable<Reaction> Create(string owner, string name, long commentId, NewReaction reaction)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNull(reaction, nameof(reaction));
|
||||
|
||||
return _client.Create(owner, name, number, reaction).ToObservable();
|
||||
return _client.Create(owner, name, commentId, reaction).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -46,13 +46,13 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#create-reaction-for-an-issue-comment</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="reaction">The reaction to create </param>
|
||||
public IObservable<Reaction> Create(long repositoryId, int number, NewReaction reaction)
|
||||
public IObservable<Reaction> Create(long repositoryId, long commentId, NewReaction reaction)
|
||||
{
|
||||
Ensure.ArgumentNotNull(reaction, nameof(reaction));
|
||||
|
||||
return _client.Create(repositoryId, number, reaction).ToObservable();
|
||||
return _client.Create(repositoryId, commentId, reaction).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -61,13 +61,13 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-an-issue-comment</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
public IObservable<Reaction> GetAll(string owner, string name, int number)
|
||||
/// <param name="commentId">The comment id</param>
|
||||
public IObservable<Reaction> GetAll(string owner, string name, long commentId)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
|
||||
return GetAll(owner, name, number, ApiOptions.None);
|
||||
return GetAll(owner, name, commentId, ApiOptions.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -76,15 +76,15 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-an-issue-comment</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<Reaction> GetAll(string owner, string name, int number, ApiOptions options)
|
||||
public IObservable<Reaction> GetAll(string owner, string name, long commentId, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
return _connection.GetAndFlattenAllPages<Reaction>(ApiUrls.IssueCommentReactions(owner, name, number), null, options);
|
||||
return _connection.GetAndFlattenAllPages<Reaction>(ApiUrls.IssueCommentReactions(owner, name, commentId), null, options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -92,10 +92,10 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-an-issue-comment</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
public IObservable<Reaction> GetAll(long repositoryId, int number)
|
||||
/// <param name="commentId">The comment id</param>
|
||||
public IObservable<Reaction> GetAll(long repositoryId, long commentId)
|
||||
{
|
||||
return GetAll(repositoryId, number, ApiOptions.None);
|
||||
return GetAll(repositoryId, commentId, ApiOptions.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -103,13 +103,13 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-an-issue-comment</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<Reaction> GetAll(long repositoryId, int number, ApiOptions options)
|
||||
public IObservable<Reaction> GetAll(long repositoryId, long commentId, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
return _connection.GetAndFlattenAllPages<Reaction>(ApiUrls.IssueCommentReactions(repositoryId, number), null, options);
|
||||
return _connection.GetAndFlattenAllPages<Reaction>(ApiUrls.IssueCommentReactions(repositoryId, commentId), null, options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -121,7 +121,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="reactionId">The reaction id</param>
|
||||
/// <returns></returns>
|
||||
public IObservable<Unit> Delete(string owner, string name, int commentId, int reactionId)
|
||||
public IObservable<Unit> Delete(string owner, string name, long commentId, long reactionId)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
@@ -138,7 +138,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="reactionId">The reaction id</param>
|
||||
/// <returns></returns>
|
||||
public IObservable<Unit> Delete(long repositoryId, int commentId, int reactionId)
|
||||
public IObservable<Unit> Delete(long repositoryId, long commentId, long reactionId)
|
||||
{
|
||||
Ensure.ArgumentNotNull(reactionId, nameof(reactionId));
|
||||
|
||||
|
||||
@@ -30,13 +30,13 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/issues/comments/#get-a-single-comment</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="id">The issue comment id</param>
|
||||
public IObservable<IssueComment> Get(string owner, string name, int id)
|
||||
/// <param name="commentId">The issue comment id</param>
|
||||
public IObservable<IssueComment> Get(string owner, string name, long commentId)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
|
||||
return _client.Get(owner, name, id).ToObservable();
|
||||
return _client.Get(owner, name, commentId).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -44,10 +44,10 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/issues/comments/#get-a-single-comment</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="id">The issue comment id</param>
|
||||
public IObservable<IssueComment> Get(long repositoryId, int id)
|
||||
/// <param name="commentId">The issue comment id</param>
|
||||
public IObservable<IssueComment> Get(long repositoryId, long commentId)
|
||||
{
|
||||
return _client.Get(repositoryId, id).ToObservable();
|
||||
return _client.Get(repositoryId, commentId).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -171,13 +171,13 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/issues/comments/#list-comments-on-an-issue</remarks>
|
||||
/// <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<IssueComment> GetAllForIssue(string owner, string name, int number)
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
public IObservable<IssueComment> GetAllForIssue(string owner, string name, int issueNumber)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
|
||||
return GetAllForIssue(owner, name, number, ApiOptions.None);
|
||||
return GetAllForIssue(owner, name, issueNumber, ApiOptions.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -185,10 +185,10 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/issues/comments/#list-comments-on-an-issue</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The issue number</param>
|
||||
public IObservable<IssueComment> GetAllForIssue(long repositoryId, int number)
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
public IObservable<IssueComment> GetAllForIssue(long repositoryId, int issueNumber)
|
||||
{
|
||||
return GetAllForIssue(repositoryId, number, ApiOptions.None);
|
||||
return GetAllForIssue(repositoryId, issueNumber, ApiOptions.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -197,15 +197,15 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/issues/comments/#list-comments-on-an-issue</remarks>
|
||||
/// <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>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<IssueComment> GetAllForIssue(string owner, string name, int number, ApiOptions options)
|
||||
public IObservable<IssueComment> GetAllForIssue(string owner, string name, int issueNumber, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
return GetAllForIssue(owner, name, number, new IssueCommentRequest(), options);
|
||||
return GetAllForIssue(owner, name, issueNumber, new IssueCommentRequest(), options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -213,13 +213,13 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/issues/comments/#list-comments-on-an-issue</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The issue number</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<IssueComment> GetAllForIssue(long repositoryId, int number, ApiOptions options)
|
||||
public IObservable<IssueComment> GetAllForIssue(long repositoryId, int issueNumber, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
return GetAllForIssue(repositoryId, number, new IssueCommentRequest(), options);
|
||||
return GetAllForIssue(repositoryId, issueNumber, new IssueCommentRequest(), options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -228,15 +228,15 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/issues/comments/#list-comments-on-an-issue</remarks>
|
||||
/// <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>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="request">The sorting <see cref="IssueCommentRequest">parameters</see></param>
|
||||
public IObservable<IssueComment> GetAllForIssue(string owner, string name, int number, IssueCommentRequest request)
|
||||
public IObservable<IssueComment> GetAllForIssue(string owner, string name, int issueNumber, IssueCommentRequest request)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNull(request, nameof(request));
|
||||
|
||||
return GetAllForIssue(owner, name, number, request, ApiOptions.None);
|
||||
return GetAllForIssue(owner, name, issueNumber, request, ApiOptions.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -244,13 +244,13 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/issues/comments/#list-comments-on-an-issue</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The issue number</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="request">The sorting <see cref="IssueCommentRequest">parameters</see></param>
|
||||
public IObservable<IssueComment> GetAllForIssue(long repositoryId, int number, IssueCommentRequest request)
|
||||
public IObservable<IssueComment> GetAllForIssue(long repositoryId, int issueNumber, IssueCommentRequest request)
|
||||
{
|
||||
Ensure.ArgumentNotNull(request, nameof(request));
|
||||
|
||||
return GetAllForIssue(repositoryId, number, request, ApiOptions.None);
|
||||
return GetAllForIssue(repositoryId, issueNumber, request, ApiOptions.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -259,17 +259,17 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/issues/comments/#list-comments-on-an-issue</remarks>
|
||||
/// <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>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="request">The sorting <see cref="IssueCommentRequest">parameters</see></param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<IssueComment> GetAllForIssue(string owner, string name, int number, IssueCommentRequest request, ApiOptions options)
|
||||
public IObservable<IssueComment> GetAllForIssue(string owner, string name, int issueNumber, IssueCommentRequest request, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNull(request, nameof(request));
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
return _connection.GetAndFlattenAllPages<IssueComment>(ApiUrls.IssueComments(owner, name, number), request.ToParametersDictionary(), options);
|
||||
return _connection.GetAndFlattenAllPages<IssueComment>(ApiUrls.IssueComments(owner, name, issueNumber), request.ToParametersDictionary(), options);
|
||||
|
||||
}
|
||||
|
||||
@@ -278,15 +278,15 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/issues/comments/#list-comments-on-an-issue</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The issue number</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="request">The sorting <see cref="IssueCommentRequest">parameters</see></param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<IssueComment> GetAllForIssue(long repositoryId, int number, IssueCommentRequest request, ApiOptions options)
|
||||
public IObservable<IssueComment> GetAllForIssue(long repositoryId, int issueNumber, IssueCommentRequest request, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(request, nameof(request));
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
return _connection.GetAndFlattenAllPages<IssueComment>(ApiUrls.IssueComments(repositoryId, number), request.ToParametersDictionary(), options);
|
||||
return _connection.GetAndFlattenAllPages<IssueComment>(ApiUrls.IssueComments(repositoryId, issueNumber), request.ToParametersDictionary(), options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -295,15 +295,15 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/issues/comments/#create-a-comment</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The number of the issue</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="newComment">The text of the new comment</param>
|
||||
public IObservable<IssueComment> Create(string owner, string name, int number, string newComment)
|
||||
public IObservable<IssueComment> Create(string owner, string name, int issueNumber, string newComment)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNull(newComment, nameof(newComment));
|
||||
|
||||
return _client.Create(owner, name, number, newComment).ToObservable();
|
||||
return _client.Create(owner, name, issueNumber, newComment).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -311,13 +311,13 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/issues/comments/#create-a-comment</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The number of the issue</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="newComment">The text of the new comment</param>
|
||||
public IObservable<IssueComment> Create(long repositoryId, int number, string newComment)
|
||||
public IObservable<IssueComment> Create(long repositoryId, int issueNumber, string newComment)
|
||||
{
|
||||
Ensure.ArgumentNotNull(newComment, nameof(newComment));
|
||||
|
||||
return _client.Create(repositoryId, number, newComment).ToObservable();
|
||||
return _client.Create(repositoryId, issueNumber, newComment).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -326,15 +326,15 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/issues/comments/#edit-a-comment</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="id">The comment id</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="commentUpdate">The modified comment</param>
|
||||
public IObservable<IssueComment> Update(string owner, string name, int id, string commentUpdate)
|
||||
public IObservable<IssueComment> Update(string owner, string name, long commentId, string commentUpdate)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNull(commentUpdate, nameof(commentUpdate));
|
||||
|
||||
return _client.Update(owner, name, id, commentUpdate).ToObservable();
|
||||
return _client.Update(owner, name, commentId, commentUpdate).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -342,13 +342,13 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/issues/comments/#edit-a-comment</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="id">The comment id</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="commentUpdate">The modified comment</param>
|
||||
public IObservable<IssueComment> Update(long repositoryId, int id, string commentUpdate)
|
||||
public IObservable<IssueComment> Update(long repositoryId, long commentId, string commentUpdate)
|
||||
{
|
||||
Ensure.ArgumentNotNull(commentUpdate, nameof(commentUpdate));
|
||||
|
||||
return _client.Update(repositoryId, id, commentUpdate).ToObservable();
|
||||
return _client.Update(repositoryId, commentId, commentUpdate).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -357,13 +357,13 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/issues/comments/#delete-a-comment</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="id">The comment id</param>
|
||||
public IObservable<Unit> Delete(string owner, string name, int id)
|
||||
/// <param name="commentId">The comment id</param>
|
||||
public IObservable<Unit> Delete(string owner, string name, long commentId)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
|
||||
return _client.Delete(owner, name, id).ToObservable();
|
||||
return _client.Delete(owner, name, commentId).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -371,10 +371,10 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/issues/comments/#delete-a-comment</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="id">The comment id</param>
|
||||
public IObservable<Unit> Delete(long repositoryId, int id)
|
||||
/// <param name="commentId">The comment id</param>
|
||||
public IObservable<Unit> Delete(long repositoryId, long commentId)
|
||||
{
|
||||
return _client.Delete(repositoryId, id).ToObservable();
|
||||
return _client.Delete(repositoryId, commentId).ToObservable();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,10 +30,10 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-an-issue</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The issue id</param>
|
||||
public IObservable<Reaction> GetAll(string owner, string name, int number)
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
public IObservable<Reaction> GetAll(string owner, string name, int issueNumber)
|
||||
{
|
||||
return GetAll(owner, name, number, ApiOptions.None);
|
||||
return GetAll(owner, name, issueNumber, ApiOptions.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -42,15 +42,15 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-an-issue</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The issue id</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<Reaction> GetAll(string owner, string name, int number, ApiOptions options)
|
||||
public IObservable<Reaction> GetAll(string owner, string name, int issueNumber, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
return _connection.GetAndFlattenAllPages<Reaction>(ApiUrls.IssueReactions(owner, name, number), null, options);
|
||||
return _connection.GetAndFlattenAllPages<Reaction>(ApiUrls.IssueReactions(owner, name, issueNumber), null, options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -58,10 +58,10 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-an-issue</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The issue id</param>
|
||||
public IObservable<Reaction> GetAll(long repositoryId, int number)
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
public IObservable<Reaction> GetAll(long repositoryId, int issueNumber)
|
||||
{
|
||||
return GetAll(repositoryId, number, ApiOptions.None);
|
||||
return GetAll(repositoryId, issueNumber, ApiOptions.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -69,13 +69,13 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-an-issue</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The issue id</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<Reaction> GetAll(long repositoryId, int number, ApiOptions options)
|
||||
public IObservable<Reaction> GetAll(long repositoryId, int issueNumber, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
return _connection.GetAndFlattenAllPages<Reaction>(ApiUrls.IssueReactions(repositoryId, number), null, options);
|
||||
return _connection.GetAndFlattenAllPages<Reaction>(ApiUrls.IssueReactions(repositoryId, issueNumber), null, options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -84,15 +84,15 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#create-reaction-for-an-issue</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The issue id</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="reaction">The reaction to create</param>
|
||||
public IObservable<Reaction> Create(string owner, string name, int number, NewReaction reaction)
|
||||
public IObservable<Reaction> Create(string owner, string name, int issueNumber, NewReaction reaction)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNull(reaction, nameof(reaction));
|
||||
|
||||
return _client.Create(owner, name, number, reaction).ToObservable();
|
||||
return _client.Create(owner, name, issueNumber, reaction).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -100,13 +100,13 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#create-reaction-for-an-issue</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The issue id</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="reaction">The reaction to create </param>
|
||||
public IObservable<Reaction> Create(long repositoryId, int number, NewReaction reaction)
|
||||
public IObservable<Reaction> Create(long repositoryId, int issueNumber, NewReaction reaction)
|
||||
{
|
||||
Ensure.ArgumentNotNull(reaction, nameof(reaction));
|
||||
|
||||
return _client.Create(repositoryId, number, reaction).ToObservable();
|
||||
return _client.Create(repositoryId, issueNumber, reaction).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -118,7 +118,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="reactionId">The reaction id</param>
|
||||
/// <returns></returns>
|
||||
public IObservable<Unit> Delete(string owner, string name, int issueNumber, int reactionId)
|
||||
public IObservable<Unit> Delete(string owner, string name, int issueNumber, long reactionId)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
@@ -135,7 +135,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="reactionId">The reaction id</param>
|
||||
/// <returns></returns>
|
||||
public IObservable<Unit> Delete(long repositoryId, int issueNumber, int reactionId)
|
||||
public IObservable<Unit> Delete(long repositoryId, int issueNumber, long reactionId)
|
||||
{
|
||||
Ensure.ArgumentNotNull(reactionId, nameof(reactionId));
|
||||
|
||||
|
||||
@@ -28,13 +28,13 @@ namespace Octokit.Reactive
|
||||
/// </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>
|
||||
public IObservable<TimelineEventInfo> GetAllForIssue(string owner, string repo, int number)
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
public IObservable<TimelineEventInfo> GetAllForIssue(string owner, string repo, int issueNumber)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(repo, nameof(repo));
|
||||
|
||||
return GetAllForIssue(owner, repo, number, ApiOptions.None);
|
||||
return GetAllForIssue(owner, repo, issueNumber, ApiOptions.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -45,15 +45,15 @@ namespace Octokit.Reactive
|
||||
/// </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="issueNumber">The issue number</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<TimelineEventInfo> GetAllForIssue(string owner, string repo, int number, ApiOptions options)
|
||||
public IObservable<TimelineEventInfo> GetAllForIssue(string owner, string repo, int issueNumber, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(repo, nameof(repo));
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
return _connection.GetAndFlattenAllPages<TimelineEventInfo>(ApiUrls.IssueTimeline(owner, repo, number), null, options);
|
||||
return _connection.GetAndFlattenAllPages<TimelineEventInfo>(ApiUrls.IssueTimeline(owner, repo, issueNumber), null, options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -63,10 +63,10 @@ namespace Octokit.Reactive
|
||||
/// 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>
|
||||
public IObservable<TimelineEventInfo> GetAllForIssue(long repositoryId, int number)
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
public IObservable<TimelineEventInfo> GetAllForIssue(long repositoryId, int issueNumber)
|
||||
{
|
||||
return GetAllForIssue(repositoryId, number, ApiOptions.None);
|
||||
return GetAllForIssue(repositoryId, issueNumber, ApiOptions.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -76,13 +76,13 @@ namespace Octokit.Reactive
|
||||
/// 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="issueNumber">The issue number</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<TimelineEventInfo> GetAllForIssue(long repositoryId, int number, ApiOptions options)
|
||||
public IObservable<TimelineEventInfo> GetAllForIssue(long repositoryId, int issueNumber, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
return _connection.GetAndFlattenAllPages<TimelineEventInfo>(ApiUrls.IssueTimeline(repositoryId, number), null, options);
|
||||
return _connection.GetAndFlattenAllPages<TimelineEventInfo>(ApiUrls.IssueTimeline(repositoryId, issueNumber), null, options);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,8 +27,8 @@ namespace Octokit.Reactive
|
||||
public IObservableIssueCommentsClient Comment { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Client for reading various event information associated with issues/pull requests.
|
||||
/// This is useful both for display on issue/pull request information pages and also to
|
||||
/// Client for reading various event information associated with issues/pull requests.
|
||||
/// This is useful both for display on issue/pull request information pages and also to
|
||||
/// determine who should be notified of comments.
|
||||
/// </summary>
|
||||
public IObservableIssuesEventsClient Events { get; private set; }
|
||||
@@ -76,13 +76,13 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <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<Issue> Get(string owner, string name, int number)
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
public IObservable<Issue> Get(string owner, string name, int issueNumber)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
|
||||
return _client.Get(owner, name, number).ToObservable();
|
||||
return _client.Get(owner, name, issueNumber).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -92,10 +92,10 @@ namespace Octokit.Reactive
|
||||
/// http://developer.github.com/v3/issues/#get-a-single-issue
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The issue number</param>
|
||||
public IObservable<Issue> Get(long repositoryId, int number)
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
public IObservable<Issue> Get(long repositoryId, int issueNumber)
|
||||
{
|
||||
return _client.Get(repositoryId, number).ToObservable();
|
||||
return _client.Get(repositoryId, issueNumber).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -128,7 +128,7 @@ namespace Octokit.Reactive
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets all issues across all the authenticated user’s visible repositories including owned repositories,
|
||||
/// Gets all issues across all the authenticated user’s visible repositories including owned repositories,
|
||||
/// member repositories, and organization repositories.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
@@ -143,7 +143,7 @@ namespace Octokit.Reactive
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets all issues across all the authenticated user’s visible repositories including owned repositories,
|
||||
/// Gets all issues across all the authenticated user’s visible repositories including owned repositories,
|
||||
/// member repositories, and organization repositories.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
@@ -451,16 +451,16 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/issues/#create-an-issue</remarks>
|
||||
/// <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>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="issueUpdate">An <see cref="IssueUpdate"/> instance describing the changes to make to the issue
|
||||
/// </param>
|
||||
public IObservable<Issue> Update(string owner, string name, int number, IssueUpdate issueUpdate)
|
||||
public IObservable<Issue> Update(string owner, string name, int issueNumber, IssueUpdate issueUpdate)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNull(issueUpdate, nameof(issueUpdate));
|
||||
|
||||
return _client.Update(owner, name, number, issueUpdate).ToObservable();
|
||||
return _client.Update(owner, name, issueNumber, issueUpdate).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -469,16 +469,16 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/issues/#create-an-issue</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The issue number</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="issueUpdate">An <see cref="IssueUpdate"/> instance describing the changes to make to the issue
|
||||
/// </param>
|
||||
public IObservable<Issue> Update(long repositoryId, int number, IssueUpdate issueUpdate)
|
||||
public IObservable<Issue> Update(long repositoryId, int issueNumber, IssueUpdate issueUpdate)
|
||||
{
|
||||
Ensure.ArgumentNotNull(issueUpdate, nameof(issueUpdate));
|
||||
|
||||
return _client.Update(repositoryId, number, issueUpdate).ToObservable();
|
||||
return _client.Update(repositoryId, issueNumber, issueUpdate).ToObservable();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,13 +31,13 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <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<IssueEvent> GetAllForIssue(string owner, string name, int number)
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
public IObservable<IssueEvent> GetAllForIssue(string owner, string name, int issueNumber)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
|
||||
return GetAllForIssue(owner, name, number, ApiOptions.None);
|
||||
return GetAllForIssue(owner, name, issueNumber, ApiOptions.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -47,10 +47,10 @@ namespace Octokit.Reactive
|
||||
/// http://developer.github.com/v3/issues/events/#list-events-for-an-issue
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The issue number</param>
|
||||
public IObservable<IssueEvent> GetAllForIssue(long repositoryId, int number)
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
public IObservable<IssueEvent> GetAllForIssue(long repositoryId, int issueNumber)
|
||||
{
|
||||
return GetAllForIssue(repositoryId, number, ApiOptions.None);
|
||||
return GetAllForIssue(repositoryId, issueNumber, ApiOptions.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -61,15 +61,15 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <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>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<IssueEvent> GetAllForIssue(string owner, string name, int number, ApiOptions options)
|
||||
public IObservable<IssueEvent> GetAllForIssue(string owner, string name, int issueNumber, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
return _connection.GetAndFlattenAllPages<IssueEvent>(ApiUrls.IssuesEvents(owner, name, number), options);
|
||||
return _connection.GetAndFlattenAllPages<IssueEvent>(ApiUrls.IssuesEvents(owner, name, issueNumber), options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -79,13 +79,13 @@ namespace Octokit.Reactive
|
||||
/// http://developer.github.com/v3/issues/events/#list-events-for-an-issue
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The issue number</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<IssueEvent> GetAllForIssue(long repositoryId, int number, ApiOptions options)
|
||||
public IObservable<IssueEvent> GetAllForIssue(long repositoryId, int issueNumber, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
return _connection.GetAndFlattenAllPages<IssueEvent>(ApiUrls.IssuesEvents(repositoryId, number), options);
|
||||
return _connection.GetAndFlattenAllPages<IssueEvent>(ApiUrls.IssuesEvents(repositoryId, issueNumber), options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -179,4 +179,4 @@ namespace Octokit.Reactive
|
||||
return _client.Get(repositoryId, eventId).ToObservable();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,13 +33,13 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The number of the issue</param>
|
||||
public IObservable<Label> GetAllForIssue(string owner, string name, int number)
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
public IObservable<Label> GetAllForIssue(string owner, string name, int issueNumber)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
|
||||
return GetAllForIssue(owner, name, number, ApiOptions.None);
|
||||
return GetAllForIssue(owner, name, issueNumber, ApiOptions.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -49,10 +49,10 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="http://developer.github.com/v3/issues/labels/#list-labels-on-an-issue">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The number of the issue</param>
|
||||
public IObservable<Label> GetAllForIssue(long repositoryId, int number)
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
public IObservable<Label> GetAllForIssue(long repositoryId, int issueNumber)
|
||||
{
|
||||
return GetAllForIssue(repositoryId, number, ApiOptions.None);
|
||||
return GetAllForIssue(repositoryId, issueNumber, ApiOptions.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -63,15 +63,15 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The number of the issue</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<Label> GetAllForIssue(string owner, string name, int number, ApiOptions options)
|
||||
public IObservable<Label> GetAllForIssue(string owner, string name, int issueNumber, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
return _connection.GetAndFlattenAllPages<Label>(ApiUrls.IssueLabels(owner, name, number), options);
|
||||
return _connection.GetAndFlattenAllPages<Label>(ApiUrls.IssueLabels(owner, name, issueNumber), options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -81,13 +81,13 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="http://developer.github.com/v3/issues/labels/#list-labels-on-an-issue">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The number of the issue</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<Label> GetAllForIssue(long repositoryId, int number, ApiOptions options)
|
||||
public IObservable<Label> GetAllForIssue(long repositoryId, int issueNumber, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
return _connection.GetAndFlattenAllPages<Label>(ApiUrls.IssueLabels(repositoryId, number), options);
|
||||
return _connection.GetAndFlattenAllPages<Label>(ApiUrls.IssueLabels(repositoryId, issueNumber), options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -159,13 +159,13 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The number of the milestone</param>
|
||||
public IObservable<Label> GetAllForMilestone(string owner, string name, int number)
|
||||
/// <param name="milestoneNumber">The number of the milestone</param>
|
||||
public IObservable<Label> GetAllForMilestone(string owner, string name, int milestoneNumber)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
|
||||
return GetAllForMilestone(owner, name, number, ApiOptions.None);
|
||||
return GetAllForMilestone(owner, name, milestoneNumber, ApiOptions.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -175,10 +175,10 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="http://developer.github.com/v3/issues/labels/#get-labels-for-every-issue-in-a-milestone">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The number of the milestone</param>
|
||||
public IObservable<Label> GetAllForMilestone(long repositoryId, int number)
|
||||
/// <param name="milestoneNumber">The number of the milestone</param>
|
||||
public IObservable<Label> GetAllForMilestone(long repositoryId, int milestoneNumber)
|
||||
{
|
||||
return GetAllForMilestone(repositoryId, number, ApiOptions.None);
|
||||
return GetAllForMilestone(repositoryId, milestoneNumber, ApiOptions.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -189,15 +189,15 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The number of the milestone</param>
|
||||
/// <param name="milestoneNumber">The number of the milestone</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<Label> GetAllForMilestone(string owner, string name, int number, ApiOptions options)
|
||||
public IObservable<Label> GetAllForMilestone(string owner, string name, int milestoneNumber, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
return _connection.GetAndFlattenAllPages<Label>(ApiUrls.MilestoneLabels(owner, name, number), options);
|
||||
return _connection.GetAndFlattenAllPages<Label>(ApiUrls.MilestoneLabels(owner, name, milestoneNumber), options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -207,13 +207,13 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="http://developer.github.com/v3/issues/labels/#get-labels-for-every-issue-in-a-milestone">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The number of the milestone</param>
|
||||
/// <param name="milestoneNumber">The number of the milestone</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<Label> GetAllForMilestone(long repositoryId, int number, ApiOptions options)
|
||||
public IObservable<Label> GetAllForMilestone(long repositoryId, int milestoneNumber, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
return _connection.GetAndFlattenAllPages<Label>(ApiUrls.MilestoneLabels(repositoryId, number), options);
|
||||
return _connection.GetAndFlattenAllPages<Label>(ApiUrls.MilestoneLabels(repositoryId, milestoneNumber), options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -360,15 +360,15 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The number of the issue</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="labels">The names of the labels to add</param>
|
||||
public IObservable<Label> AddToIssue(string owner, string name, int number, string[] labels)
|
||||
public IObservable<Label> AddToIssue(string owner, string name, int issueNumber, string[] labels)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNull(labels, nameof(labels));
|
||||
|
||||
return _client.AddToIssue(owner, name, number, labels)
|
||||
return _client.AddToIssue(owner, name, issueNumber, labels)
|
||||
.ToObservable()
|
||||
.SelectMany(x => x); // HACK: POST is not compatible with GetAndFlattenPages
|
||||
}
|
||||
@@ -380,13 +380,13 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="http://developer.github.com/v3/issues/labels/#add-labels-to-an-issue">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The number of the issue</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="labels">The names of the labels to add</param>
|
||||
public IObservable<Label> AddToIssue(long repositoryId, int number, string[] labels)
|
||||
public IObservable<Label> AddToIssue(long repositoryId, int issueNumber, string[] labels)
|
||||
{
|
||||
Ensure.ArgumentNotNull(labels, nameof(labels));
|
||||
|
||||
return _client.AddToIssue(repositoryId, number, labels)
|
||||
return _client.AddToIssue(repositoryId, issueNumber, labels)
|
||||
.ToObservable()
|
||||
.SelectMany(x => x); // HACK: POST is not compatible with GetAndFlattenPages
|
||||
}
|
||||
@@ -399,15 +399,15 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The number of the issue</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="labelName">The name of the label to remove</param>
|
||||
public IObservable<Label> RemoveFromIssue(string owner, string name, int number, string labelName)
|
||||
public IObservable<Label> RemoveFromIssue(string owner, string name, int issueNumber, string labelName)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNullOrEmptyString(labelName, nameof(labelName));
|
||||
|
||||
return _client.RemoveFromIssue(owner, name, number, labelName)
|
||||
return _client.RemoveFromIssue(owner, name, issueNumber, labelName)
|
||||
.ToObservable()
|
||||
.SelectMany(x => x); // HACK: DELETE is not compatible with GetAndFlattenPages
|
||||
}
|
||||
@@ -419,13 +419,13 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="http://developer.github.com/v3/issues/labels/#remove-a-label-from-an-issue">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The number of the issue</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="labelName">The name of the label to remove</param>
|
||||
public IObservable<Label> RemoveFromIssue(long repositoryId, int number, string labelName)
|
||||
public IObservable<Label> RemoveFromIssue(long repositoryId, int issueNumber, string labelName)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(labelName, nameof(labelName));
|
||||
|
||||
return _client.RemoveFromIssue(repositoryId, number, labelName)
|
||||
return _client.RemoveFromIssue(repositoryId, issueNumber, labelName)
|
||||
.ToObservable()
|
||||
.SelectMany(x => x); // HACK: DELETE is not compatible with GetAndFlattenPages
|
||||
}
|
||||
@@ -438,15 +438,15 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The number of the issue</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="labels">The names of the labels to set</param>
|
||||
public IObservable<Label> ReplaceAllForIssue(string owner, string name, int number, string[] labels)
|
||||
public IObservable<Label> ReplaceAllForIssue(string owner, string name, int issueNumber, string[] labels)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNull(labels, nameof(labels));
|
||||
|
||||
return _client.ReplaceAllForIssue(owner, name, number, labels)
|
||||
return _client.ReplaceAllForIssue(owner, name, issueNumber, labels)
|
||||
.ToObservable()
|
||||
.SelectMany(x => x); // HACK: PUT is not compatible with GetAndFlattenPages
|
||||
}
|
||||
@@ -458,13 +458,13 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="http://developer.github.com/v3/issues/labels/#replace-all-labels-for-an-issue">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The number of the issue</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="labels">The names of the labels to set</param>
|
||||
public IObservable<Label> ReplaceAllForIssue(long repositoryId, int number, string[] labels)
|
||||
public IObservable<Label> ReplaceAllForIssue(long repositoryId, int issueNumber, string[] labels)
|
||||
{
|
||||
Ensure.ArgumentNotNull(labels, nameof(labels));
|
||||
|
||||
return _client.ReplaceAllForIssue(repositoryId, number, labels)
|
||||
return _client.ReplaceAllForIssue(repositoryId, issueNumber, labels)
|
||||
.ToObservable()
|
||||
.SelectMany(x => x); // HACK: PUT is not compatible with GetAndFlattenPages
|
||||
}
|
||||
@@ -477,13 +477,13 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The number of the issue</param>
|
||||
public IObservable<Unit> RemoveAllFromIssue(string owner, string name, int number)
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
public IObservable<Unit> RemoveAllFromIssue(string owner, string name, int issueNumber)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
|
||||
return _client.RemoveAllFromIssue(owner, name, number).ToObservable();
|
||||
return _client.RemoveAllFromIssue(owner, name, issueNumber).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -493,10 +493,10 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="http://developer.github.com/v3/issues/labels/#remove-all-labels-from-an-issue">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The number of the issue</param>
|
||||
public IObservable<Unit> RemoveAllFromIssue(long repositoryId, int number)
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
public IObservable<Unit> RemoveAllFromIssue(long repositoryId, int issueNumber)
|
||||
{
|
||||
return _client.RemoveAllFromIssue(repositoryId, number).ToObservable();
|
||||
return _client.RemoveAllFromIssue(repositoryId, issueNumber).ToObservable();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,14 +24,14 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/issues/#lock-an-issue</remarks>
|
||||
/// <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>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="lockReason">The reason for locking the issue</param>
|
||||
public IObservable<Unit> Lock(string owner, string name, int number, LockReason? lockReason = null)
|
||||
public IObservable<Unit> Lock(string owner, string name, int issueNumber, LockReason? lockReason = null)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
|
||||
return _client.Lock(owner, name, number, lockReason).ToObservable();
|
||||
return _client.Lock(owner, name, issueNumber, lockReason).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -39,11 +39,11 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/issues/#lock-an-issue</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The issue number</param>
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
/// <param name="lockReason">The reason for locking the issue</param>
|
||||
public IObservable<Unit> Lock(long repositoryId, int number, LockReason? lockReason = null)
|
||||
public IObservable<Unit> Lock(long repositoryId, int issueNumber, LockReason? lockReason = null)
|
||||
{
|
||||
return _client.Lock(repositoryId, number, lockReason).ToObservable();
|
||||
return _client.Lock(repositoryId, issueNumber, lockReason).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -52,13 +52,13 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/issues/#unlock-an-issue</remarks>
|
||||
/// <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<Unit> Unlock(string owner, string name, int number)
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
public IObservable<Unit> Unlock(string owner, string name, int issueNumber)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
|
||||
return _client.Unlock(owner, name, number).ToObservable();
|
||||
return _client.Unlock(owner, name, issueNumber).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -66,10 +66,10 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/issues/#unlock-an-issue</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The issue number</param>
|
||||
public IObservable<Unit> Unlock(long repositoryId, int number)
|
||||
/// <param name="issueNumber">The issue number</param>
|
||||
public IObservable<Unit> Unlock(long repositoryId, int issueNumber)
|
||||
{
|
||||
return _client.Unlock(repositoryId, number).ToObservable();
|
||||
return _client.Unlock(repositoryId, issueNumber).ToObservable();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,9 +18,16 @@ namespace Octokit.Reactive
|
||||
{
|
||||
Ensure.ArgumentNotNull(client, nameof(client));
|
||||
|
||||
PublicKeys = new ObservablePublicKeysClient(client);
|
||||
|
||||
_client = client.Meta;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns a client to manage get public keys for validating request signatures.
|
||||
/// </summary>
|
||||
public IObservablePublicKeysClient PublicKeys { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves information about GitHub.com, the service or a GitHub Enterprise installation.
|
||||
/// </summary>
|
||||
|
||||
@@ -74,7 +74,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="org">The organization which is migrating.</param>
|
||||
/// <param name="id">Migrations Id of the organization.</param>
|
||||
/// <returns>A <see cref="Migration"/> object representing the state of migration.</returns>
|
||||
public IObservable<Migration> Get(string org, int id)
|
||||
public IObservable<Migration> Get(string org, long id)
|
||||
{
|
||||
return _client.Get(org, id).ToObservable();
|
||||
}
|
||||
@@ -88,7 +88,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="org">The organization of which the migration was.</param>
|
||||
/// <param name="id">The Id of the migration.</param>
|
||||
/// <returns>The binary contents of the archive as a byte array.</returns>
|
||||
public IObservable<byte[]> GetArchive(string org, int id)
|
||||
public IObservable<byte[]> GetArchive(string org, long id)
|
||||
{
|
||||
return _client.GetArchive(org, id).ToObservable();
|
||||
}
|
||||
@@ -102,7 +102,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="org">The organization of which the migration was.</param>
|
||||
/// <param name="id">The Id of the migration.</param>
|
||||
/// <returns></returns>
|
||||
public IObservable<Unit> DeleteArchive(string org, int id)
|
||||
public IObservable<Unit> DeleteArchive(string org, long id)
|
||||
{
|
||||
return _client.DeleteArchive(org, id).ToObservable();
|
||||
}
|
||||
@@ -117,7 +117,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The Id of the migration.</param>
|
||||
/// <param name="repo">The repo to unlock.</param>
|
||||
/// <returns></returns>
|
||||
public IObservable<Unit> UnlockRepository(string org, int id, string repo)
|
||||
public IObservable<Unit> UnlockRepository(string org, long id, string repo)
|
||||
{
|
||||
return _client.UnlockRepository(org, id, repo).ToObservable();
|
||||
}
|
||||
|
||||
@@ -31,12 +31,12 @@ namespace Octokit.Reactive
|
||||
/// http://developer.github.com/v3/issues/milestones/#get-a-single-milestone
|
||||
/// </remarks>
|
||||
/// <returns></returns>
|
||||
public IObservable<Milestone> Get(string owner, string name, int number)
|
||||
public IObservable<Milestone> Get(string owner, string name, int milestoneNumber)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
|
||||
return _client.Get(owner, name, number).ToObservable();
|
||||
return _client.Get(owner, name, milestoneNumber).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -46,9 +46,9 @@ namespace Octokit.Reactive
|
||||
/// http://developer.github.com/v3/issues/milestones/#get-a-single-milestone
|
||||
/// </remarks>
|
||||
/// <returns></returns>
|
||||
public IObservable<Milestone> Get(long repositoryId, int number)
|
||||
public IObservable<Milestone> Get(long repositoryId, int milestoneNumber)
|
||||
{
|
||||
return _client.Get(repositoryId, number).ToObservable();
|
||||
return _client.Get(repositoryId, milestoneNumber).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -232,17 +232,17 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/issues/milestones/#update-a-milestone</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The Milestone number</param>
|
||||
/// <param name="milestoneNumber">The Milestone number</param>
|
||||
/// <param name="milestoneUpdate">An <see cref="MilestoneUpdate"/> instance describing the changes to make to the Milestone
|
||||
/// </param>
|
||||
/// <returns></returns>
|
||||
public IObservable<Milestone> Update(string owner, string name, int number, MilestoneUpdate milestoneUpdate)
|
||||
public IObservable<Milestone> Update(string owner, string name, int milestoneNumber, MilestoneUpdate milestoneUpdate)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNull(milestoneUpdate, nameof(milestoneUpdate));
|
||||
|
||||
return _client.Update(owner, name, number, milestoneUpdate).ToObservable();
|
||||
return _client.Update(owner, name, milestoneNumber, milestoneUpdate).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -251,15 +251,15 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/issues/milestones/#update-a-milestone</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The Milestone number</param>
|
||||
/// <param name="milestoneNumber">The Milestone number</param>
|
||||
/// <param name="milestoneUpdate">An <see cref="MilestoneUpdate"/> instance describing the changes to make to the Milestone
|
||||
/// </param>
|
||||
/// <returns></returns>
|
||||
public IObservable<Milestone> Update(long repositoryId, int number, MilestoneUpdate milestoneUpdate)
|
||||
public IObservable<Milestone> Update(long repositoryId, int milestoneNumber, MilestoneUpdate milestoneUpdate)
|
||||
{
|
||||
Ensure.ArgumentNotNull(milestoneUpdate, nameof(milestoneUpdate));
|
||||
|
||||
return _client.Update(repositoryId, number, milestoneUpdate).ToObservable();
|
||||
return _client.Update(repositoryId, milestoneNumber, milestoneUpdate).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -269,14 +269,14 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/issues/milestones/#delete-a-milestone</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The milestone number</param>
|
||||
/// <param name="milestoneNumber">The Milestone number</param>
|
||||
/// <returns></returns>
|
||||
public IObservable<Unit> Delete(string owner, string name, int number)
|
||||
public IObservable<Unit> Delete(string owner, string name, int milestoneNumber)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
|
||||
return _client.Delete(owner, name, number).ToObservable();
|
||||
return _client.Delete(owner, name, milestoneNumber).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -285,11 +285,11 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/issues/milestones/#delete-a-milestone</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The milestone number</param>
|
||||
/// <param name="milestoneNumber">The Milestone number</param>
|
||||
/// <returns></returns>
|
||||
public IObservable<Unit> Delete(long repositoryId, int number)
|
||||
public IObservable<Unit> Delete(long repositoryId, int milestoneNumber)
|
||||
{
|
||||
return _client.Delete(repositoryId, number).ToObservable();
|
||||
return _client.Delete(repositoryId, milestoneNumber).ToObservable();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -263,54 +263,54 @@ namespace Octokit.Reactive
|
||||
/// <summary>
|
||||
/// Retrives a single <see cref="Notification"/> by Id.
|
||||
/// </summary>
|
||||
/// <param name="id">The Id of the notification to retrieve.</param>
|
||||
/// <param name="notificationId">The Id of the notification to retrieve.</param>
|
||||
/// <remarks>http://developer.github.com/v3/activity/notifications/#view-a-single-thread</remarks>
|
||||
public IObservable<Notification> Get(int id)
|
||||
public IObservable<Notification> Get(int notificationId)
|
||||
{
|
||||
return _notificationsClient.Get(id).ToObservable();
|
||||
return _notificationsClient.Get(notificationId).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Marks a single notification as read.
|
||||
/// </summary>
|
||||
/// <param name="id">The id of the notification.</param>
|
||||
/// <param name="notificationId">The id of the notification.</param>
|
||||
/// <remarks>http://developer.github.com/v3/activity/notifications/#mark-a-thread-as-read</remarks>
|
||||
public IObservable<Unit> MarkAsRead(int id)
|
||||
public IObservable<Unit> MarkAsRead(int notificationId)
|
||||
{
|
||||
return _notificationsClient.MarkAsRead(id).ToObservable();
|
||||
return _notificationsClient.MarkAsRead(notificationId).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrives a <see cref="ThreadSubscription"/> for the provided thread id.
|
||||
/// </summary>
|
||||
/// <param name="id">The Id of the thread to retrieve subscription status.</param>
|
||||
/// <param name="threadId">The Id of the thread to retrieve subscription status.</param>
|
||||
/// <remarks>http://developer.github.com/v3/activity/notifications/#get-a-thread-subscription</remarks>
|
||||
public IObservable<ThreadSubscription> GetThreadSubscription(int id)
|
||||
public IObservable<ThreadSubscription> GetThreadSubscription(int threadId)
|
||||
{
|
||||
return _notificationsClient.GetThreadSubscription(id).ToObservable();
|
||||
return _notificationsClient.GetThreadSubscription(threadId).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sets the authenticated user's subscription settings for a given thread.
|
||||
/// </summary>
|
||||
/// <param name="id">The Id of the thread to update.</param>
|
||||
/// <param name="threadId">The Id of the thread to update.</param>
|
||||
/// <param name="threadSubscription">The subscription parameters to set.</param>
|
||||
/// <remarks>http://developer.github.com/v3/activity/notifications/#set-a-thread-subscription</remarks>
|
||||
public IObservable<ThreadSubscription> SetThreadSubscription(int id, NewThreadSubscription threadSubscription)
|
||||
public IObservable<ThreadSubscription> SetThreadSubscription(int threadId, NewThreadSubscription threadSubscription)
|
||||
{
|
||||
Ensure.ArgumentNotNull(threadSubscription, nameof(threadSubscription));
|
||||
|
||||
return _notificationsClient.SetThreadSubscription(id, threadSubscription).ToObservable();
|
||||
return _notificationsClient.SetThreadSubscription(threadId, threadSubscription).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Deletes the authenticated user's subscription to a given thread.
|
||||
/// </summary>
|
||||
/// <param name="id">The Id of the thread to delete subscription from.</param>
|
||||
/// <param name="threadId">The Id of the thread to delete subscription from.</param>
|
||||
/// <remarks>http://developer.github.com/v3/activity/notifications/#delete-a-thread-subscription</remarks>
|
||||
public IObservable<Unit> DeleteThreadSubscription(int id)
|
||||
public IObservable<Unit> DeleteThreadSubscription(int threadId)
|
||||
{
|
||||
return _notificationsClient.DeleteThreadSubscription(id).ToObservable();
|
||||
return _notificationsClient.DeleteThreadSubscription(threadId).ToObservable();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,113 @@
|
||||
using System;
|
||||
using System.Reactive;
|
||||
using System.Reactive.Linq;
|
||||
using System.Reactive.Threading.Tasks;
|
||||
|
||||
namespace Octokit.Reactive
|
||||
{
|
||||
public class ObservableOrganizationCustomPropertiesClient : IObservableOrganizationCustomPropertiesClient
|
||||
{
|
||||
readonly IOrganizationCustomPropertiesClient _client;
|
||||
readonly IConnection _connection;
|
||||
|
||||
public ObservableOrganizationCustomPropertiesClient(IGitHubClient client)
|
||||
{
|
||||
Ensure.ArgumentNotNull(client, nameof(client));
|
||||
|
||||
Values = new ObservableOrganizationCustomPropertyValuesClient(client);
|
||||
|
||||
_client = client.Organization.CustomProperty;
|
||||
_connection = client.Connection;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get all custom properties for an organization.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/orgs/custom-properties#get-all-custom-properties-for-an-organization">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org">The name of the organization</param>
|
||||
public IObservable<OrganizationCustomProperty> GetAll(string org)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(org, nameof(org));
|
||||
|
||||
return _client.GetAll(org).ToObservable().SelectMany(p => p);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get a single custom property by name.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/orgs/custom-properties#get-a-custom-property-for-an-organization">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org">The name of the organization</param>
|
||||
/// <param name="propertyName">The name of the custom property</param>
|
||||
public IObservable<OrganizationCustomProperty> Get(string org, string propertyName)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(org, nameof(org));
|
||||
Ensure.ArgumentNotNullOrEmptyString(propertyName, nameof(propertyName));
|
||||
|
||||
return _client.Get(org, propertyName).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Create new or update existing custom properties for an organization.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/orgs/custom-properties#create-or-update-custom-properties-for-an-organization">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org">The name of the organization</param>
|
||||
/// <param name="properties">The custom properties to create or update</param>
|
||||
public IObservable<OrganizationCustomProperty> CreateOrUpdate(string org, UpsertOrganizationCustomProperties properties)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(org, nameof(org));
|
||||
Ensure.ArgumentNotNull(properties, nameof(properties));
|
||||
Ensure.ArgumentNotNullOrEmptyEnumerable(properties.Properties, nameof(properties.Properties));
|
||||
|
||||
return _client.CreateOrUpdate(org, properties).ToObservable().SelectMany(p => p);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Create new or update existing custom property for an organization.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/orgs/custom-properties#create-or-update-a-custom-property-for-an-organization">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org">The name of the organization</param>
|
||||
/// <param name="propertyName">The name of the custom property</param>
|
||||
/// <param name="property">The custom property to create or update</param>
|
||||
public IObservable<OrganizationCustomProperty> CreateOrUpdate(string org, string propertyName, UpsertOrganizationCustomProperty property)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(org, nameof(org));
|
||||
Ensure.ArgumentNotNullOrEmptyString(propertyName, nameof(propertyName));
|
||||
Ensure.ArgumentNotNull(property, nameof(property));
|
||||
Ensure.ArgumentNotNullOrDefault(property.ValueType, nameof(property.ValueType));
|
||||
|
||||
return _client.CreateOrUpdate(org, propertyName, property).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Removes a custom property that is defined for an organization.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/orgs/custom-properties#remove-a-custom-property-for-an-organization">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org">The name of the organization</param>
|
||||
/// <param name="propertyName">The name of the custom property</param>
|
||||
public IObservable<Unit> Delete(string org, string propertyName)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(org, nameof(org));
|
||||
Ensure.ArgumentNotNullOrEmptyString(propertyName, nameof(propertyName));
|
||||
|
||||
return _client.Delete(org, propertyName).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A client for GitHub's Organization Custom Property Values API.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/orgs/custom-properties">Custom Properties API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
public IObservableOrganizationCustomPropertyValuesClient Values { get; private set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
using System;
|
||||
using System.Reactive;
|
||||
using System.Reactive.Linq;
|
||||
using System.Reactive.Threading.Tasks;
|
||||
using Octokit.Reactive.Internal;
|
||||
|
||||
namespace Octokit.Reactive
|
||||
{
|
||||
public class ObservableOrganizationCustomPropertyValuesClient : IObservableOrganizationCustomPropertyValuesClient
|
||||
{
|
||||
readonly IOrganizationCustomPropertyValuesClient _client;
|
||||
readonly IConnection _connection;
|
||||
|
||||
public ObservableOrganizationCustomPropertyValuesClient(IGitHubClient client)
|
||||
{
|
||||
Ensure.ArgumentNotNull(client, nameof(client));
|
||||
|
||||
_client = client.Organization.CustomProperty.Values;
|
||||
_connection = client.Connection;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get all custom property values for repositories an organization.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/orgs/custom-properties#list-custom-property-values-for-organization-repositories">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org">The name of the organization</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
public IObservable<OrganizationCustomPropertyValues> GetAll(string org)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(org, nameof(org));
|
||||
|
||||
return GetAll(org, new OrganizationCustomPropertyValuesRequest());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get all custom property values for repositories an organization.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/orgs/custom-properties#list-custom-property-values-for-organization-repositories">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org">The name of the organization</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<OrganizationCustomPropertyValues> GetAll(string org, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(org, nameof(org));
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
var url = ApiUrls.OrganizationCustomPropertyValues(org);
|
||||
|
||||
return _connection.GetAndFlattenAllPages<OrganizationCustomPropertyValues>(url, options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get all custom property values for repositories an organization.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/orgs/custom-properties#list-custom-property-values-for-organization-repositories">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org">The name of the organization</param>
|
||||
/// <param name="repositoryQuery">Finds repositories in the organization with a query containing one or more search keywords and qualifiers.</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
public IObservable<OrganizationCustomPropertyValues> GetAll(string org, OrganizationCustomPropertyValuesRequest repositoryQuery)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(org, nameof(org));
|
||||
Ensure.ArgumentNotNull(repositoryQuery, nameof(repositoryQuery));
|
||||
|
||||
var url = ApiUrls.OrganizationCustomPropertyValues(org);
|
||||
|
||||
return _connection.GetAndFlattenAllPages<OrganizationCustomPropertyValues>(url, repositoryQuery.Parameters);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Create new or update existing custom property values for repositories an organization.
|
||||
/// Using a value of null for a custom property will remove or 'unset' the property value from the repository.
|
||||
/// A maximum of 30 repositories can be updated in a single request.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/orgs/custom-properties#create-or-update-custom-property-values-for-organization-repositories">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org">The name of the organization</param>
|
||||
/// <param name="propertyValues">The custom property values to create or update</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
public IObservable<Unit> CreateOrUpdate(string org, UpsertOrganizationCustomPropertyValues propertyValues)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(org, nameof(org));
|
||||
Ensure.ArgumentNotNull(propertyValues, nameof(propertyValues));
|
||||
Ensure.ArgumentNotNullOrEmptyEnumerable(propertyValues.Properties, nameof(propertyValues.Properties));
|
||||
Ensure.ArgumentNotNullOrEmptyEnumerable(propertyValues.RepositoryNames, nameof(propertyValues.RepositoryNames));
|
||||
|
||||
return _client.CreateOrUpdate(org, propertyValues).ToObservable();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -418,7 +418,7 @@ namespace Octokit.Reactive
|
||||
|
||||
return _client.AddOrUpdateOrganizationMembership(org, user, addOrUpdateRequest).ToObservable();
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Create an organization invitation for a user
|
||||
/// </summary>
|
||||
@@ -539,7 +539,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="invitationId">The unique identifier of the invitation</param>
|
||||
/// <returns></returns>
|
||||
[ManualRoute("DELETE", "/orgs/{org}/invitations/{invitation_id}")]
|
||||
public IObservable<Unit> CancelOrganizationInvitation(string org, int invitationId)
|
||||
public IObservable<Unit> CancelOrganizationInvitation(string org, long invitationId)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(org, nameof(org));
|
||||
Ensure.ArgumentNotNullOrDefault(invitationId, nameof(invitationId));
|
||||
|
||||
@@ -23,6 +23,7 @@ namespace Octokit.Reactive
|
||||
Hook = new ObservableOrganizationHooksClient(client);
|
||||
OutsideCollaborator = new ObservableOrganizationOutsideCollaboratorsClient(client);
|
||||
Actions = new ObservableOrganizationActionsClient(client);
|
||||
CustomProperty = new ObservableOrganizationCustomPropertiesClient(client);
|
||||
|
||||
_client = client.Organization;
|
||||
_connection = client.Connection;
|
||||
@@ -54,6 +55,11 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
public IObservableOrganizationActionsClient Actions { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns a client to manage organization custom properties.
|
||||
/// </summary>
|
||||
public IObservableOrganizationCustomPropertiesClient CustomProperty { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the specified organization.
|
||||
/// </summary>
|
||||
|
||||
@@ -28,16 +28,69 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="org">Required: Organisation Name</param>
|
||||
/// <param name="packageType">Required: The type of package</param>
|
||||
/// <param name="packageVisibility">Optional: The visibility of the package</param>
|
||||
public IObservable<Package> GetAllForOrg(string org, PackageType packageType, PackageVisibility? packageVisibility = null)
|
||||
public IObservable<Package> GetAllForOrg(string org, PackageType packageType)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(org, nameof(org));
|
||||
Ensure.ArgumentNotNull(packageType, nameof(packageType));
|
||||
|
||||
return GetAllForOrg(org, packageType, (PackageVisibility?)null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// List all packages for an organisations, readable by the current user
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/packages#list-packages-for-an-organization">API documentation</a> for more details
|
||||
/// </remarks>
|
||||
/// <param name="org">Required: Organisation Name</param>
|
||||
/// <param name="packageType">Required: The type of package</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<Package> GetAllForOrg(string org, PackageType packageType, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(org, nameof(org));
|
||||
Ensure.ArgumentNotNull(packageType, nameof(packageType));
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
return GetAllForOrg(org, packageType, null, options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// List all packages for an organisations, readable by the current user
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/packages#list-packages-for-an-organization">API documentation</a> for more details
|
||||
/// </remarks>
|
||||
/// <param name="org">Required: Organisation Name</param>
|
||||
/// <param name="packageType">Required: The type of package</param>
|
||||
/// <param name="packageVisibility">Optional: The visibility of the package</param>
|
||||
public IObservable<Package> GetAllForOrg(string org, PackageType packageType, PackageVisibility? packageVisibility)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(org, nameof(org));
|
||||
Ensure.ArgumentNotNull(packageType, nameof(packageType));
|
||||
|
||||
return GetAllForOrg(org, packageType, packageVisibility, ApiOptions.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// List all packages for an organisations, readable by the current user
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/packages#list-packages-for-an-organization">API documentation</a> for more details
|
||||
/// </remarks>
|
||||
/// <param name="org">Required: Organisation Name</param>
|
||||
/// <param name="packageType">Required: The type of package</param>
|
||||
/// <param name="packageVisibility">Optional: The visibility of the package</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<Package> GetAllForOrg(string org, PackageType packageType, PackageVisibility? packageVisibility, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(org, nameof(org));
|
||||
Ensure.ArgumentNotNull(packageType, nameof(packageType));
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
var route = ApiUrls.PackagesOrg(org);
|
||||
var parameters = ParameterBuilder.AddParameter("package_type", packageType).AddOptionalParameter("visibility", packageVisibility);
|
||||
|
||||
return _connection.GetAndFlattenAllPages<Package>(route, parameters);
|
||||
return _connection.GetAndFlattenAllPages<Package>(route, parameters, options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -101,13 +154,62 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://docs.github.com/rest/packages#list-packages-for-the-authenticated-users-namespace">API documentation</a> for more details
|
||||
/// </remarks>
|
||||
/// <param name="packageType">Required: The type of package</param>
|
||||
/// <param name="packageVisibility">Optional: The visibility of the package</param>
|
||||
public IObservable<Package> GetAllForActiveUser(PackageType packageType, PackageVisibility? packageVisibility = null)
|
||||
public IObservable<Package> GetAllForActiveUser(PackageType packageType)
|
||||
{
|
||||
Ensure.ArgumentNotNull(packageType, nameof(packageType));
|
||||
|
||||
return GetAllForActiveUser(packageType, ApiOptions.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Lists packages owned by the authenticated user within the user's namespace
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/packages#list-packages-for-the-authenticated-users-namespace">API documentation</a> for more details
|
||||
/// </remarks>
|
||||
/// <param name="packageType">Required: The type of package</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<Package> GetAllForActiveUser(PackageType packageType, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(packageType, nameof(packageType));
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
return GetAllForActiveUser(packageType, null, options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Lists packages owned by the authenticated user within the user's namespace
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/packages#list-packages-for-the-authenticated-users-namespace">API documentation</a> for more details
|
||||
/// </remarks>
|
||||
/// <param name="packageType">Required: The type of package</param>
|
||||
/// <param name="packageVisibility">Optional: The visibility of the package</param>
|
||||
public IObservable<Package> GetAllForActiveUser(PackageType packageType, PackageVisibility? packageVisibility)
|
||||
{
|
||||
Ensure.ArgumentNotNull(packageType, nameof(packageType));
|
||||
|
||||
return GetAllForActiveUser(packageType, packageVisibility, ApiOptions.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Lists packages owned by the authenticated user within the user's namespace
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/packages#list-packages-for-the-authenticated-users-namespace">API documentation</a> for more details
|
||||
/// </remarks>
|
||||
/// <param name="packageType">Required: The type of package</param>
|
||||
/// <param name="packageVisibility">Optional: The visibility of the package</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<Package> GetAllForActiveUser(PackageType packageType, PackageVisibility? packageVisibility, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(packageType, nameof(packageType));
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
var route = ApiUrls.PackagesActiveUser();
|
||||
var parameters = ParameterBuilder.AddParameter("package_type", packageType).AddOptionalParameter("visibility", packageVisibility);
|
||||
|
||||
return _connection.GetAndFlattenAllPages<Package>(route, parameters);
|
||||
return _connection.GetAndFlattenAllPages<Package>(route, parameters, options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -166,16 +268,69 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="username">Required: Username</param>
|
||||
/// <param name="packageType">Required: The type of package</param>
|
||||
/// <param name="packageVisibility">Optional: The visibility of the package</param>
|
||||
public IObservable<Package> GetAllForUser(string username, PackageType packageType, PackageVisibility? packageVisibility = null)
|
||||
public IObservable<Package> GetAllForUser(string username, PackageType packageType)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(username, nameof(username));
|
||||
Ensure.ArgumentNotNull(packageType, nameof(packageType));
|
||||
|
||||
return GetAllForUser(username, packageType, ApiOptions.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Lists packages owned by the authenticated user within the user's namespace
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/packages#list-packages-for-the-authenticated-users-namespace">API documentation</a> for more details
|
||||
/// </remarks>
|
||||
/// <param name="username">Required: Username</param>
|
||||
/// <param name="packageType">Required: The type of package</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<Package> GetAllForUser(string username, PackageType packageType, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(username, nameof(username));
|
||||
Ensure.ArgumentNotNull(packageType, nameof(packageType));
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
return GetAllForUser(username, packageType, null, options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Lists packages owned by the authenticated user within the user's namespace
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/packages#list-packages-for-the-authenticated-users-namespace">API documentation</a> for more details
|
||||
/// </remarks>
|
||||
/// <param name="username">Required: Username</param>
|
||||
/// <param name="packageType">Required: The type of package</param>
|
||||
/// <param name="packageVisibility">Optional: The visibility of the package</param>
|
||||
public IObservable<Package> GetAllForUser(string username, PackageType packageType, PackageVisibility? packageVisibility)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(username, nameof(username));
|
||||
Ensure.ArgumentNotNull(packageType, nameof(packageType));
|
||||
|
||||
return GetAllForUser(username, packageType, packageVisibility, ApiOptions.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Lists packages owned by the authenticated user within the user's namespace
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/packages#list-packages-for-the-authenticated-users-namespace">API documentation</a> for more details
|
||||
/// </remarks>
|
||||
/// <param name="username">Required: Username</param>
|
||||
/// <param name="packageType">Required: The type of package</param>
|
||||
/// <param name="packageVisibility">Optional: The visibility of the package</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<Package> GetAllForUser(string username, PackageType packageType, PackageVisibility? packageVisibility, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(username, nameof(username));
|
||||
Ensure.ArgumentNotNull(packageType, nameof(packageType));
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
var route = ApiUrls.PackagesUser(username);
|
||||
var parameters = ParameterBuilder.AddParameter("package_type", packageType).AddOptionalParameter("visibility", packageVisibility);
|
||||
|
||||
return _connection.GetAndFlattenAllPages<Package>(route, parameters);
|
||||
return _connection.GetAndFlattenAllPages<Package>(route, parameters, options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -91,7 +91,7 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://developer.github.com/v3/repos/projects/#get-a-project-card">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the card</param>
|
||||
public IObservable<ProjectCard> Get(int id)
|
||||
public IObservable<ProjectCard> Get(long id)
|
||||
{
|
||||
return _client.Get(id).ToObservable();
|
||||
}
|
||||
@@ -119,7 +119,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the card</param>
|
||||
/// <param name="projectCardUpdate">New values to update the card with</param>
|
||||
public IObservable<ProjectCard> Update(int id, ProjectCardUpdate projectCardUpdate)
|
||||
public IObservable<ProjectCard> Update(long id, ProjectCardUpdate projectCardUpdate)
|
||||
{
|
||||
Ensure.ArgumentNotNull(projectCardUpdate, nameof(projectCardUpdate));
|
||||
|
||||
@@ -133,7 +133,7 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://developer.github.com/v3/repos/projects/#delete-a-project-card">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the card</param>
|
||||
public IObservable<bool> Delete(int id)
|
||||
public IObservable<bool> Delete(long id)
|
||||
{
|
||||
return _client.Delete(id).ToObservable();
|
||||
}
|
||||
@@ -143,10 +143,10 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/repos/projects/#move-a-project-card">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the card</param>
|
||||
/// <param name="position">The position to move the card</param>
|
||||
public IObservable<bool> Move(int id, ProjectCardMove position)
|
||||
public IObservable<bool> Move(long id, ProjectCardMove position)
|
||||
{
|
||||
Ensure.ArgumentNotNull(position, nameof(position));
|
||||
|
||||
|
||||
@@ -53,10 +53,10 @@ namespace Octokit.Reactive
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/projects/columns/#get-a-project-column">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the column</param>
|
||||
public IObservable<ProjectColumn> Get(int id)
|
||||
/// <param name="columnId">The id of the column</param>
|
||||
public IObservable<ProjectColumn> Get(int columnId)
|
||||
{
|
||||
return _client.Get(id).ToObservable();
|
||||
return _client.Get(columnId).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -80,13 +80,13 @@ namespace Octokit.Reactive
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/projects/columns/#update-a-project-column">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the column</param>
|
||||
/// <param name="columnId">The id of the column</param>
|
||||
/// <param name="projectColumnUpdate">New values to update the column with</param>
|
||||
public IObservable<ProjectColumn> Update(int id, ProjectColumnUpdate projectColumnUpdate)
|
||||
public IObservable<ProjectColumn> Update(int columnId, ProjectColumnUpdate projectColumnUpdate)
|
||||
{
|
||||
Ensure.ArgumentNotNull(projectColumnUpdate, nameof(projectColumnUpdate));
|
||||
|
||||
return _client.Update(id, projectColumnUpdate).ToObservable();
|
||||
return _client.Update(columnId, projectColumnUpdate).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -95,10 +95,10 @@ namespace Octokit.Reactive
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/projects/columns/#delete-a-project-column">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the column</param>
|
||||
public IObservable<bool> Delete(int id)
|
||||
/// <param name="columnId">The id of the column</param>
|
||||
public IObservable<bool> Delete(int columnId)
|
||||
{
|
||||
return _client.Delete(id).ToObservable();
|
||||
return _client.Delete(columnId).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -107,13 +107,13 @@ namespace Octokit.Reactive
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/repos/projects/#move-a-column">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the column</param>
|
||||
/// <param name="columnId">The id of the column</param>
|
||||
/// <param name="position">The position to move the column</param>
|
||||
public IObservable<bool> Move(int id, ProjectColumnMove position)
|
||||
public IObservable<bool> Move(int columnId, ProjectColumnMove position)
|
||||
{
|
||||
Ensure.ArgumentNotNull(position, nameof(position));
|
||||
|
||||
return _client.Move(id, position).ToObservable();
|
||||
return _client.Move(columnId, position).ToObservable();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -270,13 +270,13 @@ namespace Octokit.Reactive
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/repos/projects/#update-a-project">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="id">The Id of the project</param>
|
||||
/// <param name="projectId">The Id of the project</param>
|
||||
/// <param name="projectUpdate">The modified project</param>
|
||||
public IObservable<Project> Update(int id, ProjectUpdate projectUpdate)
|
||||
public IObservable<Project> Update(int projectId, ProjectUpdate projectUpdate)
|
||||
{
|
||||
Ensure.ArgumentNotNull(projectUpdate, nameof(projectUpdate));
|
||||
|
||||
return _client.Update(id, projectUpdate).ToObservable();
|
||||
return _client.Update(projectId, projectUpdate).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -285,10 +285,10 @@ namespace Octokit.Reactive
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/repos/projects/#delete-a-project">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="id">The Id of the project</param>
|
||||
public IObservable<bool> Delete(int id)
|
||||
/// <param name="projectId">The Id of the project</param>
|
||||
public IObservable<bool> Delete(int projectId)
|
||||
{
|
||||
return _client.Delete(id).ToObservable();
|
||||
return _client.Delete(projectId).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
34
Octokit.Reactive/Clients/ObservablePublicKeysClient.cs
Normal file
34
Octokit.Reactive/Clients/ObservablePublicKeysClient.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Reactive.Linq;
|
||||
using System.Reactive.Threading.Tasks;
|
||||
|
||||
namespace Octokit.Reactive
|
||||
{
|
||||
/// <summary>
|
||||
/// A client for GitHub's public keys API.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/code-security/secret-scanning/secret-scanning-partner-program#implement-signature-verification-in-your-secret-alert-service">Secret scanning documentation</a> for more details.
|
||||
/// </remarks>
|
||||
public class ObservablePublicKeysClient : IObservablePublicKeysClient
|
||||
{
|
||||
private readonly IPublicKeysClient _client;
|
||||
|
||||
public ObservablePublicKeysClient(IGitHubClient client)
|
||||
{
|
||||
Ensure.ArgumentNotNull(client, nameof(client));
|
||||
|
||||
_client = client.Meta.PublicKeys;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves public keys for validating request signatures.
|
||||
/// </summary>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns>An <see cref="MetaPublicKeys"/> containing public keys for validating request signatures.</returns>
|
||||
public IObservable<MetaPublicKeys> Get(PublicKeyType keysType)
|
||||
{
|
||||
return _client.Get(keysType).ToObservable();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -30,19 +30,19 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-a-pull-request-review-comment</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
public IObservable<Reaction> GetAll(string owner, string name, int number)
|
||||
/// <param name="commentId">The comment id</param>
|
||||
public IObservable<Reaction> GetAll(string owner, string name, long commentId)
|
||||
{
|
||||
return GetAll(owner, name, number, ApiOptions.None);
|
||||
return GetAll(owner, name, commentId, ApiOptions.None);
|
||||
}
|
||||
|
||||
public IObservable<Reaction> GetAll(string owner, string name, int number, ApiOptions options)
|
||||
public IObservable<Reaction> GetAll(string owner, string name, long commentId, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
return _connection.GetAndFlattenAllPages<Reaction>(ApiUrls.PullRequestReviewCommentReactions(owner, name, number), null, options);
|
||||
return _connection.GetAndFlattenAllPages<Reaction>(ApiUrls.PullRequestReviewCommentReactions(owner, name, commentId), null, options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -50,10 +50,10 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-a-pull-request-review-comment</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
public IObservable<Reaction> GetAll(long repositoryId, int number)
|
||||
/// <param name="commentId">The comment id</param>
|
||||
public IObservable<Reaction> GetAll(long repositoryId, long commentId)
|
||||
{
|
||||
return GetAll(repositoryId, number, ApiOptions.None);
|
||||
return GetAll(repositoryId, commentId, ApiOptions.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -61,13 +61,13 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#list-reactions-for-a-pull-request-review-comment</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<Reaction> GetAll(long repositoryId, int number, ApiOptions options)
|
||||
public IObservable<Reaction> GetAll(long repositoryId, long commentId, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
return _connection.GetAndFlattenAllPages<Reaction>(ApiUrls.PullRequestReviewCommentReactions(repositoryId, number), null, options);
|
||||
return _connection.GetAndFlattenAllPages<Reaction>(ApiUrls.PullRequestReviewCommentReactions(repositoryId, commentId), null, options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -76,15 +76,15 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#create-reaction-for-a-pull-request-review-comment</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="reaction">The reaction to create</param>
|
||||
public IObservable<Reaction> Create(string owner, string name, int number, NewReaction reaction)
|
||||
public IObservable<Reaction> Create(string owner, string name, long commentId, NewReaction reaction)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNull(reaction, nameof(reaction));
|
||||
|
||||
return _client.Create(owner, name, number, reaction).ToObservable();
|
||||
return _client.Create(owner, name, commentId, reaction).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -92,13 +92,13 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/reactions/#create-reaction-for-a-pull-request-review-comment</remarks>
|
||||
/// <param name="repositoryId">The owner of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="reaction">The reaction to create</param>
|
||||
public IObservable<Reaction> Create(long repositoryId, int number, NewReaction reaction)
|
||||
public IObservable<Reaction> Create(long repositoryId, long commentId, NewReaction reaction)
|
||||
{
|
||||
Ensure.ArgumentNotNull(reaction, nameof(reaction));
|
||||
|
||||
return _client.Create(repositoryId, number, reaction).ToObservable();
|
||||
return _client.Create(repositoryId, commentId, reaction).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -110,7 +110,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="reactionId">The reaction id</param>
|
||||
/// <returns></returns>
|
||||
public IObservable<Unit> Delete(string owner, string name, int commentId, int reactionId)
|
||||
public IObservable<Unit> Delete(string owner, string name, long commentId, long reactionId)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
@@ -127,7 +127,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="reactionId">The reaction id</param>
|
||||
/// <returns></returns>
|
||||
public IObservable<Unit> Delete(long repositoryId, int commentId, int reactionId)
|
||||
public IObservable<Unit> Delete(long repositoryId, long commentId, long reactionId)
|
||||
{
|
||||
Ensure.ArgumentNotNull(reactionId, nameof(reactionId));
|
||||
|
||||
|
||||
@@ -30,13 +30,13 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/pulls/comments/#list-comments-on-a-pull-request</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
public IObservable<PullRequestReviewComment> GetAll(string owner, string name, int number)
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
public IObservable<PullRequestReviewComment> GetAll(string owner, string name, int pullRequestNumber)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
|
||||
return GetAll(owner, name, number, ApiOptions.None);
|
||||
return GetAll(owner, name, pullRequestNumber, ApiOptions.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -44,10 +44,10 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/pulls/comments/#list-comments-on-a-pull-request</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
public IObservable<PullRequestReviewComment> GetAll(long repositoryId, int number)
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
public IObservable<PullRequestReviewComment> GetAll(long repositoryId, int pullRequestNumber)
|
||||
{
|
||||
return GetAll(repositoryId, number, ApiOptions.None);
|
||||
return GetAll(repositoryId, pullRequestNumber, ApiOptions.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -56,15 +56,15 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/pulls/comments/#list-comments-on-a-pull-request</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<PullRequestReviewComment> GetAll(string owner, string name, int number, ApiOptions options)
|
||||
public IObservable<PullRequestReviewComment> GetAll(string owner, string name, int pullRequestNumber, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
return _connection.GetAndFlattenAllPages<PullRequestReviewComment>(ApiUrls.PullRequestReviewComments(owner, name, number), null, options);
|
||||
return _connection.GetAndFlattenAllPages<PullRequestReviewComment>(ApiUrls.PullRequestReviewComments(owner, name, pullRequestNumber), null, options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -72,13 +72,13 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/pulls/comments/#list-comments-on-a-pull-request</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<PullRequestReviewComment> GetAll(long repositoryId, int number, ApiOptions options)
|
||||
public IObservable<PullRequestReviewComment> GetAll(long repositoryId, int pullRequestNumber, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
return _connection.GetAndFlattenAllPages<PullRequestReviewComment>(ApiUrls.PullRequestReviewComments(repositoryId, number), options);
|
||||
return _connection.GetAndFlattenAllPages<PullRequestReviewComment>(ApiUrls.PullRequestReviewComments(repositoryId, pullRequestNumber), options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -202,13 +202,13 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/pulls/comments/#get-a-single-comment</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request review comment number</param>
|
||||
public IObservable<PullRequestReviewComment> GetComment(string owner, string name, int number)
|
||||
/// <param name="commentId">The pull request review comment id</param>
|
||||
public IObservable<PullRequestReviewComment> GetComment(string owner, string name, long commentId)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
|
||||
return _client.GetComment(owner, name, number).ToObservable();
|
||||
return _client.GetComment(owner, name, commentId).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -216,10 +216,10 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/pulls/comments/#get-a-single-comment</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request review comment number</param>
|
||||
public IObservable<PullRequestReviewComment> GetComment(long repositoryId, int number)
|
||||
/// <param name="commentId">The pull request review comment id</param>
|
||||
public IObservable<PullRequestReviewComment> GetComment(long repositoryId, long commentId)
|
||||
{
|
||||
return _client.GetComment(repositoryId, number).ToObservable();
|
||||
return _client.GetComment(repositoryId, commentId).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -228,15 +228,15 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/pulls/comments/#create-a-comment</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The Pull Request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="comment">The comment</param>
|
||||
public IObservable<PullRequestReviewComment> Create(string owner, string name, int number, PullRequestReviewCommentCreate comment)
|
||||
public IObservable<PullRequestReviewComment> Create(string owner, string name, int pullRequestNumber, PullRequestReviewCommentCreate comment)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNull(comment, nameof(comment));
|
||||
|
||||
return _client.Create(owner, name, number, comment).ToObservable();
|
||||
return _client.Create(owner, name, pullRequestNumber, comment).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -244,13 +244,13 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/pulls/comments/#create-a-comment</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The Pull Request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="comment">The comment</param>
|
||||
public IObservable<PullRequestReviewComment> Create(long repositoryId, int number, PullRequestReviewCommentCreate comment)
|
||||
public IObservable<PullRequestReviewComment> Create(long repositoryId, int pullRequestNumber, PullRequestReviewCommentCreate comment)
|
||||
{
|
||||
Ensure.ArgumentNotNull(comment, nameof(comment));
|
||||
|
||||
return _client.Create(repositoryId, number, comment).ToObservable();
|
||||
return _client.Create(repositoryId, pullRequestNumber, comment).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -259,15 +259,15 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/pulls/comments/#create-a-comment</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="comment">The comment</param>
|
||||
public IObservable<PullRequestReviewComment> CreateReply(string owner, string name, int number, PullRequestReviewCommentReplyCreate comment)
|
||||
public IObservable<PullRequestReviewComment> CreateReply(string owner, string name, int pullRequestNumber, PullRequestReviewCommentReplyCreate comment)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNull(comment, nameof(comment));
|
||||
|
||||
return _client.CreateReply(owner, name, number, comment).ToObservable();
|
||||
return _client.CreateReply(owner, name, pullRequestNumber, comment).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -275,13 +275,13 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/pulls/comments/#create-a-comment</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="comment">The comment</param>
|
||||
public IObservable<PullRequestReviewComment> CreateReply(long repositoryId, int number, PullRequestReviewCommentReplyCreate comment)
|
||||
public IObservable<PullRequestReviewComment> CreateReply(long repositoryId, int pullRequestNumber, PullRequestReviewCommentReplyCreate comment)
|
||||
{
|
||||
Ensure.ArgumentNotNull(comment, nameof(comment));
|
||||
|
||||
return _client.CreateReply(repositoryId, number, comment).ToObservable();
|
||||
return _client.CreateReply(repositoryId, pullRequestNumber, comment).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -290,15 +290,15 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/pulls/comments/#edit-a-comment</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request review comment number</param>
|
||||
/// <param name="commentId">The pull request review comment id</param>
|
||||
/// <param name="comment">The edited comment</param>
|
||||
public IObservable<PullRequestReviewComment> Edit(string owner, string name, int number, PullRequestReviewCommentEdit comment)
|
||||
public IObservable<PullRequestReviewComment> Edit(string owner, string name, long commentId, PullRequestReviewCommentEdit comment)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNull(comment, nameof(comment));
|
||||
|
||||
return _client.Edit(owner, name, number, comment).ToObservable();
|
||||
return _client.Edit(owner, name, commentId, comment).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -306,13 +306,13 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/pulls/comments/#edit-a-comment</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request review comment number</param>
|
||||
/// <param name="commentId">The pull request review comment id</param>
|
||||
/// <param name="comment">The edited comment</param>
|
||||
public IObservable<PullRequestReviewComment> Edit(long repositoryId, int number, PullRequestReviewCommentEdit comment)
|
||||
public IObservable<PullRequestReviewComment> Edit(long repositoryId, long commentId, PullRequestReviewCommentEdit comment)
|
||||
{
|
||||
Ensure.ArgumentNotNull(comment, nameof(comment));
|
||||
|
||||
return _client.Edit(repositoryId, number, comment).ToObservable();
|
||||
return _client.Edit(repositoryId, commentId, comment).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -321,13 +321,13 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/pulls/comments/#delete-a-comment</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request review comment number</param>
|
||||
public IObservable<Unit> Delete(string owner, string name, int number)
|
||||
/// <param name="commentId">The pull request review comment id</param>
|
||||
public IObservable<Unit> Delete(string owner, string name, long commentId)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
|
||||
return _client.Delete(owner, name, number).ToObservable();
|
||||
return _client.Delete(owner, name, commentId).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -335,10 +335,10 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/pulls/comments/#delete-a-comment</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request review comment number</param>
|
||||
public IObservable<Unit> Delete(long repositoryId, int number)
|
||||
/// <param name="commentId">The pull request review comment id</param>
|
||||
public IObservable<Unit> Delete(long repositoryId, long commentId)
|
||||
{
|
||||
return _client.Delete(repositoryId, number).ToObservable();
|
||||
return _client.Delete(repositoryId, commentId).ToObservable();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,13 +24,13 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/pulls/review_requests/#list-review-requests</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
public IObservable<RequestedReviews> Get(string owner, string name, int number)
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
public IObservable<RequestedReviews> Get(string owner, string name, int pullRequestNumber)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
|
||||
return _client.Get(owner, name, number).ToObservable();
|
||||
return _client.Get(owner, name, pullRequestNumber).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -38,10 +38,10 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/pulls/review_requests/#list-review-requests</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
public IObservable<RequestedReviews> Get(long repositoryId, int number)
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
public IObservable<RequestedReviews> Get(long repositoryId, int pullRequestNumber)
|
||||
{
|
||||
return _client.Get(repositoryId, number).ToObservable();
|
||||
return _client.Get(repositoryId, pullRequestNumber).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -50,15 +50,15 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/pulls/review_requests/#create-a-review-request</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The Pull Request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="users">List of logins of user will be requested for review</param>
|
||||
public IObservable<PullRequest> Create(string owner, string name, int number, PullRequestReviewRequest users)
|
||||
public IObservable<PullRequest> Create(string owner, string name, int pullRequestNumber, PullRequestReviewRequest users)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNull(users, nameof(users));
|
||||
|
||||
return _client.Create(owner, name, number, users).ToObservable();
|
||||
return _client.Create(owner, name, pullRequestNumber, users).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -66,13 +66,13 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/pulls/review_requests/#create-a-review-request</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The Pull Request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="users">List of logins of user will be requested for review</param>
|
||||
public IObservable<PullRequest> Create(long repositoryId, int number, PullRequestReviewRequest users)
|
||||
public IObservable<PullRequest> Create(long repositoryId, int pullRequestNumber, PullRequestReviewRequest users)
|
||||
{
|
||||
Ensure.ArgumentNotNull(users, nameof(users));
|
||||
|
||||
return _client.Create(repositoryId, number, users).ToObservable();
|
||||
return _client.Create(repositoryId, pullRequestNumber, users).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -81,15 +81,15 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/pulls/review_requests/#delete-a-review-request</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request review comment number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="users">List of logins of users that will be not longer requested for review</param>
|
||||
public IObservable<Unit> Delete(string owner, string name, int number, PullRequestReviewRequest users)
|
||||
public IObservable<Unit> Delete(string owner, string name, int pullRequestNumber, PullRequestReviewRequest users)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNull(users, nameof(users));
|
||||
|
||||
return _client.Delete(owner, name, number, users).ToObservable();
|
||||
return _client.Delete(owner, name, pullRequestNumber, users).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -97,13 +97,13 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/pulls/review_requests/#delete-a-review-request</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request review comment number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="users">List of logins of users that will be not longer requested for review</param>
|
||||
public IObservable<Unit> Delete(long repositoryId, int number, PullRequestReviewRequest users)
|
||||
public IObservable<Unit> Delete(long repositoryId, int pullRequestNumber, PullRequestReviewRequest users)
|
||||
{
|
||||
Ensure.ArgumentNotNull(users, nameof(users));
|
||||
|
||||
return _client.Delete(repositoryId, number, users).ToObservable();
|
||||
return _client.Delete(repositoryId, pullRequestNumber, users).ToObservable();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,14 +30,14 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/pulls/reviews/#create-a-pull-request-review</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The Pull Request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="review">The review</param>
|
||||
public IObservable<PullRequestReview> Create(string owner, string name, int number, PullRequestReviewCreate review)
|
||||
public IObservable<PullRequestReview> Create(string owner, string name, int pullRequestNumber, PullRequestReviewCreate review)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNull(review, nameof(review));
|
||||
return _client.Create(owner, name, number, review).ToObservable();
|
||||
return _client.Create(owner, name, pullRequestNumber, review).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -45,13 +45,13 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/pulls/reviews/#create-a-pull-request-review</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The Pull Request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="review">The review</param>
|
||||
public IObservable<PullRequestReview> Create(long repositoryId, int number, PullRequestReviewCreate review)
|
||||
public IObservable<PullRequestReview> Create(long repositoryId, int pullRequestNumber, PullRequestReviewCreate review)
|
||||
{
|
||||
Ensure.ArgumentNotNull(review, nameof(review));
|
||||
|
||||
return _client.Create(repositoryId, number, review).ToObservable();
|
||||
return _client.Create(repositoryId, pullRequestNumber, review).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -60,14 +60,14 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/pulls/reviews/#delete-a-pending-review</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="reviewId">The pull request review number</param>
|
||||
public IObservable<Unit> Delete(string owner, string name, int number, long reviewId)
|
||||
public IObservable<Unit> Delete(string owner, string name, int pullRequestNumber, long reviewId)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
|
||||
return _client.Delete(owner, name, number, reviewId).ToObservable();
|
||||
return _client.Delete(owner, name, pullRequestNumber, reviewId).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -75,11 +75,11 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/pulls/reviews/#delete-a-pending-review</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="reviewId">The pull request review number</param>
|
||||
public IObservable<Unit> Delete(long repositoryId, int number, long reviewId)
|
||||
public IObservable<Unit> Delete(long repositoryId, int pullRequestNumber, long reviewId)
|
||||
{
|
||||
return _client.Delete(repositoryId, number, reviewId).ToObservable();
|
||||
return _client.Delete(repositoryId, pullRequestNumber, reviewId).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -88,16 +88,16 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/pulls/reviews/#dismiss-a-pull-request-review</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="reviewId">The pull request review number</param>
|
||||
/// <param name="dismissMessage">The message indicating why the review was dismissed</param>
|
||||
public IObservable<PullRequestReview> Dismiss(string owner, string name, int number, long reviewId, PullRequestReviewDismiss dismissMessage)
|
||||
public IObservable<PullRequestReview> Dismiss(string owner, string name, int pullRequestNumber, long reviewId, PullRequestReviewDismiss dismissMessage)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNull(dismissMessage, nameof(dismissMessage));
|
||||
|
||||
return _client.Dismiss(owner, name, number, reviewId, dismissMessage).ToObservable();
|
||||
return _client.Dismiss(owner, name, pullRequestNumber, reviewId, dismissMessage).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -105,14 +105,14 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/pulls/reviews/#dismiss-a-pull-request-review</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="reviewId">The pull request review number</param>
|
||||
/// <param name="dismissMessage">The message indicating why the review was dismissed</param>
|
||||
public IObservable<PullRequestReview> Dismiss(long repositoryId, int number, long reviewId, PullRequestReviewDismiss dismissMessage)
|
||||
public IObservable<PullRequestReview> Dismiss(long repositoryId, int pullRequestNumber, long reviewId, PullRequestReviewDismiss dismissMessage)
|
||||
{
|
||||
Ensure.ArgumentNotNull(dismissMessage, nameof(dismissMessage));
|
||||
|
||||
return GetAll(repositoryId, number);
|
||||
return GetAll(repositoryId, pullRequestNumber);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -121,13 +121,13 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/pulls/reviews/#list-reviews-on-a-pull-request</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
public IObservable<PullRequestReview> GetAll(string owner, string name, int number)
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
public IObservable<PullRequestReview> GetAll(string owner, string name, int pullRequestNumber)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
|
||||
return GetAll(owner, name, number, ApiOptions.None);
|
||||
return GetAll(owner, name, pullRequestNumber, ApiOptions.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -135,10 +135,10 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/pulls/reviews/#list-reviews-on-a-pull-request</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
public IObservable<PullRequestReview> GetAll(long repositoryId, int number)
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
public IObservable<PullRequestReview> GetAll(long repositoryId, int pullRequestNumber)
|
||||
{
|
||||
return GetAll(repositoryId, number, ApiOptions.None);
|
||||
return GetAll(repositoryId, pullRequestNumber, ApiOptions.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -147,15 +147,15 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/pulls/reviews/#list-reviews-on-a-pull-request</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<PullRequestReview> GetAll(string owner, string name, int number, ApiOptions options)
|
||||
public IObservable<PullRequestReview> GetAll(string owner, string name, int pullRequestNumber, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
return _connection.GetAndFlattenAllPages<PullRequestReview>(ApiUrls.PullRequestReviews(owner, name, number), null, null, options);
|
||||
return _connection.GetAndFlattenAllPages<PullRequestReview>(ApiUrls.PullRequestReviews(owner, name, pullRequestNumber), null, null, options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -163,13 +163,13 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/pulls/reviews/#list-reviews-on-a-pull-request</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<PullRequestReview> GetAll(long repositoryId, int number, ApiOptions options)
|
||||
public IObservable<PullRequestReview> GetAll(long repositoryId, int pullRequestNumber, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
return _connection.GetAndFlattenAllPages<PullRequestReview>(ApiUrls.PullRequestReviews(repositoryId, number), null, null, options);
|
||||
return _connection.GetAndFlattenAllPages<PullRequestReview>(ApiUrls.PullRequestReviews(repositoryId, pullRequestNumber), null, null, options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -178,14 +178,14 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/pulls/reviews/#get-a-single-review</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="reviewId">The pull request review number</param>
|
||||
public IObservable<PullRequestReview> Get(string owner, string name, int number, long reviewId)
|
||||
public IObservable<PullRequestReview> Get(string owner, string name, int pullRequestNumber, long reviewId)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
|
||||
return _client.Get(owner, name, number, reviewId).ToObservable();
|
||||
return _client.Get(owner, name, pullRequestNumber, reviewId).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -193,11 +193,11 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/pulls/reviews/#get-a-single-review</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="reviewId">The pull request review number</param>
|
||||
public IObservable<PullRequestReview> Get(long repositoryId, int number, long reviewId)
|
||||
public IObservable<PullRequestReview> Get(long repositoryId, int pullRequestNumber, long reviewId)
|
||||
{
|
||||
return _client.Get(repositoryId, number, reviewId).ToObservable();
|
||||
return _client.Get(repositoryId, pullRequestNumber, reviewId).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -206,16 +206,16 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/pulls/reviews/#submit-a-pull-request-review</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="reviewId">The pull request review number</param>
|
||||
/// <param name="submitMessage">The message and event being submitted for the review</param>
|
||||
public IObservable<PullRequestReview> Submit(string owner, string name, int number, long reviewId, PullRequestReviewSubmit submitMessage)
|
||||
public IObservable<PullRequestReview> Submit(string owner, string name, int pullRequestNumber, long reviewId, PullRequestReviewSubmit submitMessage)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNull(submitMessage, nameof(submitMessage));
|
||||
|
||||
return _client.Submit(owner, name, number, reviewId, submitMessage).ToObservable();
|
||||
return _client.Submit(owner, name, pullRequestNumber, reviewId, submitMessage).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -223,14 +223,14 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/pulls/reviews/#submit-a-pull-request-review</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="reviewId">The pull request review number</param>
|
||||
/// <param name="submitMessage">The message and event being submitted for the review</param>
|
||||
public IObservable<PullRequestReview> Submit(long repositoryId, int number, long reviewId, PullRequestReviewSubmit submitMessage)
|
||||
public IObservable<PullRequestReview> Submit(long repositoryId, int pullRequestNumber, long reviewId, PullRequestReviewSubmit submitMessage)
|
||||
{
|
||||
Ensure.ArgumentNotNull(submitMessage, nameof(submitMessage));
|
||||
|
||||
return _client.Submit(repositoryId, number, reviewId, submitMessage).ToObservable();
|
||||
return _client.Submit(repositoryId, pullRequestNumber, reviewId, submitMessage).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -239,11 +239,11 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/pulls/reviews/#get-comments-for-a-single-review</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="reviewId">The pull request review number</param>
|
||||
public IObservable<PullRequestReviewComment> GetAllComments(string owner, string name, int number, long reviewId)
|
||||
public IObservable<PullRequestReviewComment> GetAllComments(string owner, string name, int pullRequestNumber, long reviewId)
|
||||
{
|
||||
return GetAllComments(owner, name, number, reviewId, ApiOptions.None);
|
||||
return GetAllComments(owner, name, pullRequestNumber, reviewId, ApiOptions.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -251,11 +251,11 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/pulls/reviews/#get-comments-for-a-single-review</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="reviewId">The pull request review number</param>
|
||||
public IObservable<PullRequestReviewComment> GetAllComments(long repositoryId, int number, long reviewId)
|
||||
public IObservable<PullRequestReviewComment> GetAllComments(long repositoryId, int pullRequestNumber, long reviewId)
|
||||
{
|
||||
return GetAllComments(repositoryId, number, reviewId, ApiOptions.None);
|
||||
return GetAllComments(repositoryId, pullRequestNumber, reviewId, ApiOptions.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -264,16 +264,16 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/pulls/reviews/#get-comments-for-a-single-review</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="reviewId">The pull request review number</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<PullRequestReviewComment> GetAllComments(string owner, string name, int number, long reviewId, ApiOptions options)
|
||||
public IObservable<PullRequestReviewComment> GetAllComments(string owner, string name, int pullRequestNumber, long reviewId, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
return _connection.GetAndFlattenAllPages<PullRequestReviewComment>(ApiUrls.PullRequestReviewComments(owner, name, number, reviewId), options);
|
||||
return _connection.GetAndFlattenAllPages<PullRequestReviewComment>(ApiUrls.PullRequestReviewComments(owner, name, pullRequestNumber, reviewId), options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -281,14 +281,14 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/pulls/reviews/#get-comments-for-a-single-review</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="reviewId">The pull request review number</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<PullRequestReviewComment> GetAllComments(long repositoryId, int number, long reviewId, ApiOptions options)
|
||||
public IObservable<PullRequestReviewComment> GetAllComments(long repositoryId, int pullRequestNumber, long reviewId, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
return _connection.GetAndFlattenAllPages<PullRequestReviewComment>(ApiUrls.PullRequestReviewComments(repositoryId, number, reviewId), options);
|
||||
return _connection.GetAndFlattenAllPages<PullRequestReviewComment>(ApiUrls.PullRequestReviewComments(repositoryId, pullRequestNumber, reviewId), options);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,12 +53,12 @@ namespace Octokit.Reactive
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/pulls/#get-a-single-pull-request
|
||||
/// </remarks>
|
||||
public IObservable<PullRequest> Get(string owner, string name, int number)
|
||||
public IObservable<PullRequest> Get(string owner, string name, int pullRequestNumber)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
|
||||
return _client.Get(owner, name, number).ToObservable();
|
||||
return _client.Get(owner, name, pullRequestNumber).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -68,10 +68,10 @@ namespace Octokit.Reactive
|
||||
/// http://developer.github.com/v3/pulls/#get-a-single-pull-request
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The number of the pull request</param>
|
||||
public IObservable<PullRequest> Get(long repositoryId, int number)
|
||||
/// <param name="pullRequestNumber">The number of the pull request</param>
|
||||
public IObservable<PullRequest> Get(long repositoryId, int pullRequestNumber)
|
||||
{
|
||||
return _client.Get(repositoryId, number).ToObservable();
|
||||
return _client.Get(repositoryId, pullRequestNumber).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -242,16 +242,16 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/pulls/#update-a-pull-request</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The PullRequest number</param>
|
||||
/// <param name="pullRequestNumber">The PullRequest number</param>
|
||||
/// <param name="pullRequestUpdate">An <see cref="PullRequestUpdate"/> instance describing the changes to make to the PullRequest
|
||||
/// </param>
|
||||
public IObservable<PullRequest> Update(string owner, string name, int number, PullRequestUpdate pullRequestUpdate)
|
||||
public IObservable<PullRequest> Update(string owner, string name, int pullRequestNumber, PullRequestUpdate pullRequestUpdate)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNull(pullRequestUpdate, nameof(pullRequestUpdate));
|
||||
|
||||
return _client.Update(owner, name, number, pullRequestUpdate).ToObservable();
|
||||
return _client.Update(owner, name, pullRequestNumber, pullRequestUpdate).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -259,14 +259,14 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/pulls/#update-a-pull-request</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The PullRequest number</param>
|
||||
/// <param name="pullRequestNumber">The PullRequest number</param>
|
||||
/// <param name="pullRequestUpdate">An <see cref="PullRequestUpdate"/> instance describing the changes to make to the PullRequest
|
||||
/// </param>
|
||||
public IObservable<PullRequest> Update(long repositoryId, int number, PullRequestUpdate pullRequestUpdate)
|
||||
public IObservable<PullRequest> Update(long repositoryId, int pullRequestNumber, PullRequestUpdate pullRequestUpdate)
|
||||
{
|
||||
Ensure.ArgumentNotNull(pullRequestUpdate, nameof(pullRequestUpdate));
|
||||
|
||||
return _client.Update(repositoryId, number, pullRequestUpdate).ToObservable();
|
||||
return _client.Update(repositoryId, pullRequestNumber, pullRequestUpdate).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -275,15 +275,15 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/pulls/#merge-a-pull-request-merge-buttontrade</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="mergePullRequest">A <see cref="MergePullRequest"/> instance describing a pull request merge</param>
|
||||
public IObservable<PullRequestMerge> Merge(string owner, string name, int number, MergePullRequest mergePullRequest)
|
||||
public IObservable<PullRequestMerge> Merge(string owner, string name, int pullRequestNumber, MergePullRequest mergePullRequest)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNull(mergePullRequest, nameof(mergePullRequest));
|
||||
|
||||
return _client.Merge(owner, name, number, mergePullRequest).ToObservable();
|
||||
return _client.Merge(owner, name, pullRequestNumber, mergePullRequest).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -291,13 +291,13 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/pulls/#merge-a-pull-request-merge-buttontrade</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="mergePullRequest">A <see cref="MergePullRequest"/> instance describing a pull request merge</param>
|
||||
public IObservable<PullRequestMerge> Merge(long repositoryId, int number, MergePullRequest mergePullRequest)
|
||||
public IObservable<PullRequestMerge> Merge(long repositoryId, int pullRequestNumber, MergePullRequest mergePullRequest)
|
||||
{
|
||||
Ensure.ArgumentNotNull(mergePullRequest, nameof(mergePullRequest));
|
||||
|
||||
return _client.Merge(repositoryId, number, mergePullRequest).ToObservable();
|
||||
return _client.Merge(repositoryId, pullRequestNumber, mergePullRequest).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -306,13 +306,13 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/pulls/#get-if-a-pull-request-has-been-merged</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
public IObservable<bool> Merged(string owner, string name, int number)
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
public IObservable<bool> Merged(string owner, string name, int pullRequestNumber)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
|
||||
return _client.Merged(owner, name, number).ToObservable();
|
||||
return _client.Merged(owner, name, pullRequestNumber).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -320,10 +320,10 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/pulls/#get-if-a-pull-request-has-been-merged</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
public IObservable<bool> Merged(long repositoryId, int number)
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
public IObservable<bool> Merged(long repositoryId, int pullRequestNumber)
|
||||
{
|
||||
return _client.Merged(repositoryId, number).ToObservable();
|
||||
return _client.Merged(repositoryId, pullRequestNumber).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -332,13 +332,13 @@ namespace Octokit.Reactive
|
||||
/// <remarks>http://developer.github.com/v3/pulls/#list-commits-on-a-pull-request</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
public IObservable<PullRequestCommit> Commits(string owner, string name, int number)
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
public IObservable<PullRequestCommit> Commits(string owner, string name, int pullRequestNumber)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
|
||||
return _connection.GetAndFlattenAllPages<PullRequestCommit>(ApiUrls.PullRequestCommits(owner, name, number));
|
||||
return _connection.GetAndFlattenAllPages<PullRequestCommit>(ApiUrls.PullRequestCommits(owner, name, pullRequestNumber));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -346,10 +346,10 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>http://developer.github.com/v3/pulls/#list-commits-on-a-pull-request</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
public IObservable<PullRequestCommit> Commits(long repositoryId, int number)
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
public IObservable<PullRequestCommit> Commits(long repositoryId, int pullRequestNumber)
|
||||
{
|
||||
return _connection.GetAndFlattenAllPages<PullRequestCommit>(ApiUrls.PullRequestCommits(repositoryId, number));
|
||||
return _connection.GetAndFlattenAllPages<PullRequestCommit>(ApiUrls.PullRequestCommits(repositoryId, pullRequestNumber));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -358,14 +358,14 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/pulls/#list-pull-requests-files</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<PullRequestFile> Files(string owner, string name, int number, ApiOptions options)
|
||||
public IObservable<PullRequestFile> Files(string owner, string name, int pullRequestNumber, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
|
||||
return _connection.GetAndFlattenAllPages<PullRequestFile>(ApiUrls.PullRequestFiles(owner, name, number), options);
|
||||
return _connection.GetAndFlattenAllPages<PullRequestFile>(ApiUrls.PullRequestFiles(owner, name, pullRequestNumber), options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -374,10 +374,10 @@ namespace Octokit.Reactive
|
||||
/// <remarks>https://developer.github.com/v3/pulls/#list-pull-requests-files</remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
public IObservable<PullRequestFile> Files(string owner, string name, int number)
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
public IObservable<PullRequestFile> Files(string owner, string name, int pullRequestNumber)
|
||||
{
|
||||
return Files(owner, name, number, ApiOptions.None);
|
||||
return Files(owner, name, pullRequestNumber, ApiOptions.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -385,11 +385,11 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/pulls/#list-pull-requests-files</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<PullRequestFile> Files(long repositoryId, int number, ApiOptions options)
|
||||
public IObservable<PullRequestFile> Files(long repositoryId, int pullRequestNumber, ApiOptions options)
|
||||
{
|
||||
return _connection.GetAndFlattenAllPages<PullRequestFile>(ApiUrls.PullRequestFiles(repositoryId, number), options);
|
||||
return _connection.GetAndFlattenAllPages<PullRequestFile>(ApiUrls.PullRequestFiles(repositoryId, pullRequestNumber), options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -397,10 +397,10 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>https://developer.github.com/v3/pulls/#list-pull-requests-files</remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The pull request number</param>
|
||||
public IObservable<PullRequestFile> Files(long repositoryId, int number)
|
||||
/// <param name="pullRequestNumber">The pull request number</param>
|
||||
public IObservable<PullRequestFile> Files(long repositoryId, int pullRequestNumber)
|
||||
{
|
||||
return Files(repositoryId, number, ApiOptions.None);
|
||||
return Files(repositoryId, pullRequestNumber, ApiOptions.None);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -135,7 +135,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="name">The repository's name</param>
|
||||
/// <param name="id">The id of the release</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
public IObservable<Release> Get(string owner, string name, int id)
|
||||
public IObservable<Release> Get(string owner, string name, long id)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
@@ -171,7 +171,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="id">The id of the release</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
public IObservable<Release> Get(long repositoryId, int id)
|
||||
public IObservable<Release> Get(long repositoryId, long id)
|
||||
{
|
||||
return _client.Get(repositoryId, id).ToObservable();
|
||||
}
|
||||
@@ -268,7 +268,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The id of the release</param>
|
||||
/// <param name="data">A description of the release to edit</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
public IObservable<Release> Edit(string owner, string name, int id, ReleaseUpdate data)
|
||||
public IObservable<Release> Edit(string owner, string name, long id, ReleaseUpdate data)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
@@ -287,7 +287,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The id of the release</param>
|
||||
/// <param name="data">A description of the release to edit</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
public IObservable<Release> Edit(long repositoryId, int id, ReleaseUpdate data)
|
||||
public IObservable<Release> Edit(long repositoryId, long id, ReleaseUpdate data)
|
||||
{
|
||||
Ensure.ArgumentNotNull(data, nameof(data));
|
||||
|
||||
@@ -304,7 +304,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="name">The repository's name</param>
|
||||
/// <param name="id">The id of the release to delete</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
public IObservable<Unit> Delete(string owner, string name, int id)
|
||||
public IObservable<Unit> Delete(string owner, string name, long id)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
@@ -321,7 +321,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="id">The id of the release to delete</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
public IObservable<Unit> Delete(long repositoryId, int id)
|
||||
public IObservable<Unit> Delete(long repositoryId, long id)
|
||||
{
|
||||
return _client.Delete(repositoryId, id).ToObservable();
|
||||
}
|
||||
@@ -336,7 +336,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="name">The repository's name</param>
|
||||
/// <param name="id">The id of the <see cref="Release"/>.</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
public IObservable<ReleaseAsset> GetAllAssets(string owner, string name, int id)
|
||||
public IObservable<ReleaseAsset> GetAllAssets(string owner, string name, long id)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
@@ -353,7 +353,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="id">The id of the <see cref="Release"/>.</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
public IObservable<ReleaseAsset> GetAllAssets(long repositoryId, int id)
|
||||
public IObservable<ReleaseAsset> GetAllAssets(long repositoryId, long id)
|
||||
{
|
||||
return GetAllAssets(repositoryId, id, ApiOptions.None);
|
||||
}
|
||||
@@ -369,7 +369,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The id of the <see cref="Release"/>.</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
public IObservable<ReleaseAsset> GetAllAssets(string owner, string name, int id, ApiOptions options)
|
||||
public IObservable<ReleaseAsset> GetAllAssets(string owner, string name, long id, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
@@ -388,7 +388,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The id of the <see cref="Release"/>.</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
public IObservable<ReleaseAsset> GetAllAssets(long repositoryId, int id, ApiOptions options)
|
||||
public IObservable<ReleaseAsset> GetAllAssets(long repositoryId, long id, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
@@ -489,13 +489,13 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="owner">The repository's owner</param>
|
||||
/// <param name="name">The repository's name</param>
|
||||
/// <param name="id">The id of the <see cref="ReleaseAsset"/>.</param>
|
||||
public IObservable<Unit> DeleteAsset(string owner, string name, int id)
|
||||
/// <param name="assetId">The id of the <see cref="ReleaseAsset"/>.</param>
|
||||
public IObservable<Unit> DeleteAsset(string owner, string name, int assetId)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
|
||||
return _client.DeleteAsset(owner, name, id).ToObservable();
|
||||
return _client.DeleteAsset(owner, name, assetId).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -505,10 +505,10 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="http://developer.github.com/v3/repos/releases/#delete-a-release-asset">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="id">The id of the <see cref="ReleaseAsset"/>.</param>
|
||||
public IObservable<Unit> DeleteAsset(long repositoryId, int id)
|
||||
/// <param name="assetId">The id of the <see cref="ReleaseAsset"/>.</param>
|
||||
public IObservable<Unit> DeleteAsset(long repositoryId, int assetId)
|
||||
{
|
||||
return _client.DeleteAsset(repositoryId, id).ToObservable();
|
||||
return _client.DeleteAsset(repositoryId, assetId).ToObservable();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,6 +33,7 @@ namespace Octokit.Reactive
|
||||
Branch = new ObservableRepositoryBranchesClient(client);
|
||||
Comment = new ObservableRepositoryCommentsClient(client);
|
||||
Commit = new ObservableRepositoryCommitsClient(client);
|
||||
CustomProperty = new ObservableRepositoryCustomPropertiesClient(client);
|
||||
Release = new ObservableReleasesClient(client);
|
||||
DeployKeys = new ObservableRepositoryDeployKeysClient(client);
|
||||
Content = new ObservableRepositoryContentsClient(client);
|
||||
@@ -380,6 +381,14 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
public IObservableRepositoryCommentsClient Comment { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Client for GitHub's Repository Custom Property Values API.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="http://developer.github.com/v3/repos/custom-properties/">Repository Custom Property API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
public IObservableRepositoryCustomPropertiesClient CustomProperty { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// A client for GitHub's Repository Hooks API.
|
||||
/// </summary>
|
||||
|
||||
@@ -29,25 +29,25 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <remarks>http://developer.github.com/v3/repos/comments/#get-a-single-commit-comment</remarks>
|
||||
public IObservable<CommitComment> Get(string owner, string name, int number)
|
||||
public IObservable<CommitComment> Get(string owner, string name, long commentId)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
|
||||
return _client.Get(owner, name, number).ToObservable();
|
||||
return _client.Get(owner, name, commentId).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a single Repository Comment by number.
|
||||
/// </summary>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <remarks>http://developer.github.com/v3/repos/comments/#get-a-single-commit-comment</remarks>
|
||||
public IObservable<CommitComment> Get(long repositoryId, int number)
|
||||
public IObservable<CommitComment> Get(long repositoryId, long commentId)
|
||||
{
|
||||
return _client.Get(repositoryId, number).ToObservable();
|
||||
return _client.Get(repositoryId, commentId).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -203,30 +203,30 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The comment number</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="commentUpdate">The modified comment</param>
|
||||
/// <remarks>http://developer.github.com/v3/repos/comments/#update-a-commit-comment</remarks>
|
||||
public IObservable<CommitComment> Update(string owner, string name, int number, string commentUpdate)
|
||||
public IObservable<CommitComment> Update(string owner, string name, long commentId, string commentUpdate)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
Ensure.ArgumentNotNull(commentUpdate, nameof(commentUpdate));
|
||||
|
||||
return _client.Update(owner, name, number, commentUpdate).ToObservable();
|
||||
return _client.Update(owner, name, commentId, commentUpdate).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Updates a specified Commit Comment.
|
||||
/// </summary>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The comment number</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <param name="commentUpdate">The modified comment</param>
|
||||
/// <remarks>http://developer.github.com/v3/repos/comments/#update-a-commit-comment</remarks>
|
||||
public IObservable<CommitComment> Update(long repositoryId, int number, string commentUpdate)
|
||||
public IObservable<CommitComment> Update(long repositoryId, long commentId, string commentUpdate)
|
||||
{
|
||||
Ensure.ArgumentNotNull(commentUpdate, nameof(commentUpdate));
|
||||
|
||||
return _client.Update(repositoryId, number, commentUpdate).ToObservable();
|
||||
return _client.Update(repositoryId, commentId, commentUpdate).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -234,25 +234,25 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <remarks>http://developer.github.com/v3/repos/comments/#delete-a-commit-comment</remarks>
|
||||
public IObservable<Unit> Delete(string owner, string name, int number)
|
||||
public IObservable<Unit> Delete(string owner, string name, long commentId)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
|
||||
return _client.Delete(owner, name, number).ToObservable();
|
||||
return _client.Delete(owner, name, commentId).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Deletes the specified Commit Comment
|
||||
/// </summary>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="number">The comment id</param>
|
||||
/// <param name="commentId">The comment id</param>
|
||||
/// <remarks>http://developer.github.com/v3/repos/comments/#delete-a-commit-comment</remarks>
|
||||
public IObservable<Unit> Delete(long repositoryId, int number)
|
||||
public IObservable<Unit> Delete(long repositoryId, long commentId)
|
||||
{
|
||||
return _client.Delete(repositoryId, number).ToObservable();
|
||||
return _client.Delete(repositoryId, commentId).ToObservable();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
using System.Reactive.Threading.Tasks;
|
||||
using System;
|
||||
using System.Reactive;
|
||||
using System.Reactive.Linq;
|
||||
|
||||
namespace Octokit.Reactive
|
||||
{
|
||||
/// <summary>
|
||||
/// A client for GitHub's Repository Custom Property Values API.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/repos/custom-properties">Custom Properties API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
public class ObservableRepositoryCustomPropertiesClient : IObservableRepositoryCustomPropertiesClient
|
||||
{
|
||||
readonly IRepositoryCustomPropertiesClient _client;
|
||||
readonly IConnection _connection;
|
||||
|
||||
public ObservableRepositoryCustomPropertiesClient(IGitHubClient client)
|
||||
{
|
||||
Ensure.ArgumentNotNull(client, nameof(client));
|
||||
|
||||
_client = client.Repository.CustomProperty;
|
||||
_connection = client.Connection;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get all custom property values for a repository.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/repos/custom-properties#get-all-custom-property-values-for-a-repository">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="owner">The owner of the repository.</param>
|
||||
/// <param name="repoName">The name of the repository.</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
public IObservable<CustomPropertyValue> GetAll(string owner, string repoName)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(repoName, nameof(repoName));
|
||||
|
||||
return _client.GetAll(owner, repoName).ToObservable().SelectMany(p => p);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Create new or update existing custom property values for a repository. Using a value of null for a custom property will remove or 'unset' the property value from the repository.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/repos/custom-properties#create-or-update-custom-property-values-for-a-repository">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="repoName">The name of the repository</param>
|
||||
/// <param name="propertyValues">The custom property values to create or update</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
public IObservable<Unit> CreateOrUpdate(string owner, string repoName, UpsertRepositoryCustomPropertyValues propertyValues)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(repoName, nameof(repoName));
|
||||
Ensure.ArgumentNotNull(propertyValues, nameof(propertyValues));
|
||||
Ensure.ArgumentNotNullOrEmptyEnumerable(propertyValues.Properties, nameof(propertyValues.Properties));
|
||||
|
||||
return _client.CreateOrUpdate(owner, repoName, propertyValues).ToObservable();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -32,13 +32,13 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="owner">The owner of the repository.</param>
|
||||
/// <param name="name">The name of the repository.</param>
|
||||
/// <param name="number">The id of the deploy key.</param>
|
||||
public IObservable<DeployKey> Get(string owner, string name, int number)
|
||||
/// <param name="deployKeyId">The id of the deploy key.</param>
|
||||
public IObservable<DeployKey> Get(string owner, string name, int deployKeyId)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
|
||||
return _client.Get(owner, name, number).ToObservable();
|
||||
return _client.Get(owner, name, deployKeyId).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -48,10 +48,10 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://developer.github.com/v3/repos/keys/#get"> API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository.</param>
|
||||
/// <param name="number">The id of the deploy key.</param>
|
||||
public IObservable<DeployKey> Get(long repositoryId, int number)
|
||||
/// <param name="deployKeyId">The id of the deploy key.</param>
|
||||
public IObservable<DeployKey> Get(long repositoryId, int deployKeyId)
|
||||
{
|
||||
return _client.Get(repositoryId, number).ToObservable();
|
||||
return _client.Get(repositoryId, deployKeyId).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -170,13 +170,13 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="owner">The owner of the repository.</param>
|
||||
/// <param name="name">The name of the repository.</param>
|
||||
/// <param name="number">The id of the deploy key to delete.</param>
|
||||
public IObservable<Unit> Delete(string owner, string name, int number)
|
||||
/// <param name="deployKeyId">The id of the deploy key to delete.</param>
|
||||
public IObservable<Unit> Delete(string owner, string name, int deployKeyId)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
|
||||
return _client.Delete(owner, name, number).ToObservable();
|
||||
return _client.Delete(owner, name, deployKeyId).ToObservable();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -186,10 +186,10 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://developer.github.com/v3/repos/keys/#delete"> API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository.</param>
|
||||
/// <param name="number">The id of the deploy key to delete.</param>
|
||||
public IObservable<Unit> Delete(long repositoryId, int number)
|
||||
/// <param name="deployKeyId">The id of the deploy key to delete.</param>
|
||||
public IObservable<Unit> Delete(long repositoryId, int deployKeyId)
|
||||
{
|
||||
return _client.Delete(repositoryId, number).ToObservable();
|
||||
return _client.Delete(repositoryId, deployKeyId).ToObservable();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://developer.github.com/v3/repos/invitations/#accept-a-repository-invitation">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="invitationId">The id of the invitation.</param>
|
||||
public IObservable<bool> Accept(int invitationId)
|
||||
public IObservable<bool> Accept(long invitationId)
|
||||
{
|
||||
return _client.Accept(invitationId).ToObservable();
|
||||
}
|
||||
@@ -38,7 +38,7 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://developer.github.com/v3/repos/invitations/#decline-a-repository-invitation">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="invitationId">The id of the invitation.</param>
|
||||
public IObservable<bool> Decline(int invitationId)
|
||||
public IObservable<bool> Decline(long invitationId)
|
||||
{
|
||||
return _client.Decline(invitationId).ToObservable();
|
||||
}
|
||||
@@ -51,7 +51,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The id of the repository.</param>
|
||||
/// <param name="invitationId">The id of the invitation.</param>
|
||||
public IObservable<bool> Delete(long repositoryId, int invitationId)
|
||||
public IObservable<bool> Delete(long repositoryId, long invitationId)
|
||||
{
|
||||
return _client.Delete(repositoryId, invitationId).ToObservable();
|
||||
}
|
||||
@@ -65,7 +65,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="repositoryId">The id of the repository.</param>
|
||||
/// <param name="invitationId">The id of the invitatio.n</param>
|
||||
/// <param name="permissions">The permission to set.</param>
|
||||
public IObservable<RepositoryInvitation> Edit(long repositoryId, int invitationId, InvitationUpdate permissions)
|
||||
public IObservable<RepositoryInvitation> Edit(long repositoryId, long invitationId, InvitationUpdate permissions)
|
||||
{
|
||||
Ensure.ArgumentNotNull(permissions, nameof(permissions));
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="id">The team identifier.</param>
|
||||
/// <returns>The <see cref="Team"/> with the given identifier.</returns>
|
||||
public IObservable<Team> Get(int id)
|
||||
public IObservable<Team> Get(long id)
|
||||
{
|
||||
return _client.Get(id).ToObservable();
|
||||
}
|
||||
@@ -97,7 +97,7 @@ namespace Octokit.Reactive
|
||||
/// <remarks>
|
||||
/// https://developer.github.com/v3/orgs/teams/#list-child-teams
|
||||
/// </remarks>
|
||||
public IObservable<Team> GetAllChildTeams(int id)
|
||||
public IObservable<Team> GetAllChildTeams(long id)
|
||||
{
|
||||
return GetAllChildTeams(id, ApiOptions.None);
|
||||
}
|
||||
@@ -110,7 +110,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="id">The team identifier</param>
|
||||
/// <param name="options">Options to change API behaviour.</param>
|
||||
public IObservable<Team> GetAllChildTeams(int id, ApiOptions options)
|
||||
public IObservable<Team> GetAllChildTeams(long id, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
@@ -126,7 +126,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns>A list of the team's member <see cref="User"/>s.</returns>
|
||||
public IObservable<User> GetAllMembers(int id)
|
||||
public IObservable<User> GetAllMembers(long id)
|
||||
{
|
||||
return GetAllMembers(id, ApiOptions.None);
|
||||
}
|
||||
@@ -141,7 +141,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="options">Options to change API behaviour.</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns>A list of the team's member <see cref="User"/>s.</returns>
|
||||
public IObservable<User> GetAllMembers(int id, ApiOptions options)
|
||||
public IObservable<User> GetAllMembers(long id, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
@@ -156,7 +156,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="id">The team identifier</param>
|
||||
/// <param name="request">The request filter</param>
|
||||
public IObservable<User> GetAllMembers(int id, TeamMembersRequest request)
|
||||
public IObservable<User> GetAllMembers(long id, TeamMembersRequest request)
|
||||
{
|
||||
Ensure.ArgumentNotNull(request, nameof(request));
|
||||
|
||||
@@ -172,7 +172,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The team identifier</param>
|
||||
/// <param name="request">The request filter</param>
|
||||
/// <param name="options">Options to change API behaviour.</param>
|
||||
public IObservable<User> GetAllMembers(int id, TeamMembersRequest request, ApiOptions options)
|
||||
public IObservable<User> GetAllMembers(long id, TeamMembersRequest request, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(request, nameof(request));
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
@@ -198,7 +198,7 @@ namespace Octokit.Reactive
|
||||
/// To edit a team, the authenticated user must either be an organization owner or a team maintainer
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#update-a-team">API documentation</a>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#update-a-team">API documentation</a>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <returns>updated <see cref="Team" /> for the current org</returns>
|
||||
@@ -218,12 +218,12 @@ namespace Octokit.Reactive
|
||||
/// <see cref="Update(string, string, UpdateTeam)"/>.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#update-a-team-legacy">API documentation</a>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#update-a-team-legacy">API documentation</a>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns>Updated <see cref="Team"/></returns>
|
||||
public IObservable<Team> Update(int id, UpdateTeam team)
|
||||
public IObservable<Team> Update(long id, UpdateTeam team)
|
||||
{
|
||||
Ensure.ArgumentNotNull(team, nameof(team));
|
||||
|
||||
@@ -235,7 +235,7 @@ namespace Octokit.Reactive
|
||||
/// If you are an organization owner, deleting a parent team will delete all of its child teams as well.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#delete-a-team">API documentation</a>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#delete-a-team">API documentation</a>
|
||||
/// </remarks>
|
||||
/// <param name="org">The organization name. The name is not case sensitive.</param>
|
||||
/// <param name="teamSlug">The slug of the team name.</param>
|
||||
@@ -245,7 +245,7 @@ namespace Octokit.Reactive
|
||||
{
|
||||
Ensure.ArgumentNotNull(org, nameof(org));
|
||||
Ensure.ArgumentNotNull(teamSlug, nameof(teamSlug));
|
||||
|
||||
|
||||
return _client.Delete(org, teamSlug).ToObservable();
|
||||
}
|
||||
|
||||
@@ -256,12 +256,12 @@ namespace Octokit.Reactive
|
||||
/// <see cref="Delete(string, string)"/>.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#delete-a-team-legacy">API documentation</a>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#delete-a-team-legacy">API documentation</a>
|
||||
/// </remarks>
|
||||
/// <param name="id">The unique identifier of the team.</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns></returns>
|
||||
public IObservable<Unit> Delete(int id)
|
||||
public IObservable<Unit> Delete(long id)
|
||||
{
|
||||
return _client.Delete(id).ToObservable();
|
||||
}
|
||||
@@ -275,7 +275,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The team identifier.</param>
|
||||
/// <param name="login">The user to add to the team.</param>
|
||||
/// <param name="request">Additional parameters for the request</param>
|
||||
public IObservable<TeamMembershipDetails> AddOrEditMembership(int id, string login, UpdateTeamMembership request)
|
||||
public IObservable<TeamMembershipDetails> AddOrEditMembership(long id, string login, UpdateTeamMembership request)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(login, nameof(login));
|
||||
Ensure.ArgumentNotNull(request, nameof(request));
|
||||
@@ -292,7 +292,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The team identifier.</param>
|
||||
/// <param name="login">The user to remove from the team.</param>
|
||||
/// <returns><see langword="true"/> if the user was removed from the team; <see langword="false"/> otherwise.</returns>
|
||||
public IObservable<bool> RemoveMembership(int id, string login)
|
||||
public IObservable<bool> RemoveMembership(long id, string login)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(login, nameof(login));
|
||||
|
||||
@@ -309,7 +309,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="id">The team to check.</param>
|
||||
/// <param name="login">The user to check.</param>
|
||||
public IObservable<TeamMembershipDetails> GetMembershipDetails(int id, string login)
|
||||
public IObservable<TeamMembershipDetails> GetMembershipDetails(long id, string login)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(login, nameof(login));
|
||||
|
||||
@@ -321,7 +321,7 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns>The team's repositories</returns>
|
||||
public IObservable<Repository> GetAllRepositories(int id)
|
||||
public IObservable<Repository> GetAllRepositories(long id)
|
||||
{
|
||||
return GetAllRepositories(id, ApiOptions.None);
|
||||
}
|
||||
@@ -333,7 +333,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="options">Options to change API behaviour.</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns>The team's repositories</returns>
|
||||
public IObservable<Repository> GetAllRepositories(int id, ApiOptions options)
|
||||
public IObservable<Repository> GetAllRepositories(long id, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
@@ -351,7 +351,7 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://developer.github.com/v3/orgs/teams/#add-team-repo">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <returns><see langword="true"/> if the repository was added to the team; <see langword="false"/> otherwise.</returns>
|
||||
public IObservable<bool> AddRepository(int id, string organization, string repoName)
|
||||
public IObservable<bool> AddRepository(long id, string organization, string repoName)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(organization, nameof(organization));
|
||||
Ensure.ArgumentNotNullOrEmptyString(repoName, nameof(repoName));
|
||||
@@ -371,7 +371,7 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://developer.github.com/v3/orgs/teams/#add-team-repo">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <returns><see langword="true"/> if the repository was added to the team; <see langword="false"/> otherwise.</returns>
|
||||
public IObservable<bool> AddRepository(int id, string organization, string repoName, RepositoryPermissionRequest permission)
|
||||
public IObservable<bool> AddRepository(long id, string organization, string repoName, RepositoryPermissionRequest permission)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(organization, nameof(organization));
|
||||
Ensure.ArgumentNotNullOrEmptyString(repoName, nameof(repoName));
|
||||
@@ -384,7 +384,7 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns></returns>
|
||||
public IObservable<bool> RemoveRepository(int id, string organization, string repoName)
|
||||
public IObservable<bool> RemoveRepository(long id, string organization, string repoName)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(organization, nameof(organization));
|
||||
Ensure.ArgumentNotNullOrEmptyString(repoName, nameof(repoName));
|
||||
@@ -402,7 +402,7 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://developer.github.com/v3/orgs/teams/#get-team-repo">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <returns><see langword="true"/> if the repository is managed by the given team; <see langword="false"/> otherwise.</returns>
|
||||
public IObservable<bool> IsRepositoryManagedByTeam(int id, string owner, string repo)
|
||||
public IObservable<bool> IsRepositoryManagedByTeam(long id, string owner, string repo)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(repo, nameof(repo));
|
||||
@@ -418,7 +418,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="id">The team identifier</param>
|
||||
/// <returns></returns>
|
||||
public IObservable<OrganizationMembershipInvitation> GetAllPendingInvitations(int id)
|
||||
public IObservable<OrganizationMembershipInvitation> GetAllPendingInvitations(long id)
|
||||
{
|
||||
Ensure.ArgumentNotNull(id, nameof(id));
|
||||
|
||||
@@ -435,7 +435,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The team identifier</param>
|
||||
/// <param name="options">Options to change API behaviour</param>
|
||||
/// <returns></returns>
|
||||
public IObservable<OrganizationMembershipInvitation> GetAllPendingInvitations(int id, ApiOptions options)
|
||||
public IObservable<OrganizationMembershipInvitation> GetAllPendingInvitations(long id, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(id, nameof(id));
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
@@ -492,9 +492,9 @@ namespace Octokit.Reactive
|
||||
/// <param name="owner">The account owner of the repository. The name is not case sensitive.</param>
|
||||
/// <param name="repo">The name of the repository. The name is not case sensitive.</param>
|
||||
/// <param name="permission">
|
||||
/// The permission to grant the team on this repository. We accept the following permissions to be set:
|
||||
/// pull, triage, push, maintain, admin and you can also specify a custom repository role name, if the
|
||||
/// owning organization has defined any. If no permission is specified, the team's permission attribute
|
||||
/// The permission to grant the team on this repository. We accept the following permissions to be set:
|
||||
/// pull, triage, push, maintain, admin and you can also specify a custom repository role name, if the
|
||||
/// owning organization has defined any. If no permission is specified, the team's permission attribute
|
||||
/// will be used to determine what permission to grant the team on this repository
|
||||
/// </param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://developer.github.com/v3/users/gpg_keys/#get-a-single-gpg-key">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <returns>The <see cref="GpgKey"/> for the specified Id.</returns>
|
||||
public IObservable<GpgKey> Get(int id)
|
||||
public IObservable<GpgKey> Get(long id)
|
||||
{
|
||||
return _client.Get(id).ToObservable();
|
||||
}
|
||||
@@ -91,7 +91,7 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://developer.github.com/v3/users/gpg_keys/#delete-a-gpg-key">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <returns></returns>
|
||||
public IObservable<Unit> Delete(int id)
|
||||
public IObservable<Unit> Delete(long id)
|
||||
{
|
||||
return _client.Delete(id).ToObservable();
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="id">The Id of the SSH key</param>
|
||||
/// <returns>View extended details for a single public key.</returns>
|
||||
public IObservable<PublicKey> Get(int id)
|
||||
public IObservable<PublicKey> Get(long id)
|
||||
{
|
||||
return _client.Get(id).ToObservable();
|
||||
}
|
||||
@@ -117,9 +117,9 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the key to delete</param>
|
||||
/// <returns>Removes a public key.</returns>
|
||||
public IObservable<Unit> Delete(int id)
|
||||
public IObservable<Unit> Delete(long id)
|
||||
{
|
||||
return _client.Delete(id).ToObservable();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user