mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-20 14:15:12 +00:00
Fix convention errors
This commit is contained in:
@@ -25,7 +25,7 @@ namespace Octokit.Reactive
|
|||||||
/// See the <a href="https://developer.github.com/v3/repos/pages/#list-pages-builds">API documentation</a> for more information.
|
/// See the <a href="https://developer.github.com/v3/repos/pages/#list-pages-builds">API documentation</a> for more information.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
IObservable<PagesBuild> GetBuilds(string owner, string repositoryName);
|
IObservable<PagesBuild> GetAllBuilds(string owner, string repositoryName);
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the build metadata for the last build for a given repository
|
/// Gets the build metadata for the last build for a given repository
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ namespace Octokit.Reactive
|
|||||||
/// See the <a href="https://developer.github.com/v3/repos/pages/#list-pages-builds">API documentation</a> for more information.
|
/// See the <a href="https://developer.github.com/v3/repos/pages/#list-pages-builds">API documentation</a> for more information.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public IObservable<PagesBuild> GetBuilds(string owner, string repositoryName)
|
public IObservable<PagesBuild> GetAllBuilds(string owner, string repositoryName)
|
||||||
{
|
{
|
||||||
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
|
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
|
||||||
Ensure.ArgumentNotNullOrEmptyString(repositoryName, "repositoryName");
|
Ensure.ArgumentNotNullOrEmptyString(repositoryName, "repositoryName");
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ namespace Octokit.Tests.Clients
|
|||||||
var connection = Substitute.For<IApiConnection>();
|
var connection = Substitute.For<IApiConnection>();
|
||||||
var client = new RepositoryPagesClient(connection);
|
var client = new RepositoryPagesClient(connection);
|
||||||
|
|
||||||
client.GetBuilds("fake", "repo");
|
client.GetAllBuilds("fake", "repo");
|
||||||
|
|
||||||
connection.Received().GetAll<PagesBuild>(Arg.Is<Uri>(u => u.ToString() == "repos/fake/repo/pages/builds"));
|
connection.Received().GetAll<PagesBuild>(Arg.Is<Uri>(u => u.ToString() == "repos/fake/repo/pages/builds"));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ namespace Octokit
|
|||||||
/// See the <a href="https://developer.github.com/v3/repos/pages/#list-pages-builds">API documentation</a> for more information.
|
/// See the <a href="https://developer.github.com/v3/repos/pages/#list-pages-builds">API documentation</a> for more information.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<IReadOnlyList<PagesBuild>> GetBuilds(string owner, string repositoryName);
|
Task<IReadOnlyList<PagesBuild>> GetAllBuilds(string owner, string repositoryName);
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the build metadata for the last build for a given repository
|
/// Gets the build metadata for the last build for a given repository
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ namespace Octokit
|
|||||||
/// See the <a href="https://developer.github.com/v3/repos/pages/#list-pages-builds">API documentation</a> for more information.
|
/// See the <a href="https://developer.github.com/v3/repos/pages/#list-pages-builds">API documentation</a> for more information.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public Task<IReadOnlyList<PagesBuild>> GetBuilds(string owner, string repositoryName)
|
public Task<IReadOnlyList<PagesBuild>> GetAllBuilds(string owner, string repositoryName)
|
||||||
{
|
{
|
||||||
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
|
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
|
||||||
Ensure.ArgumentNotNullOrEmptyString(repositoryName, "repositoryName");
|
Ensure.ArgumentNotNullOrEmptyString(repositoryName, "repositoryName");
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using System.Globalization;
|
||||||
|
|
||||||
namespace Octokit
|
namespace Octokit
|
||||||
{
|
{
|
||||||
@@ -9,6 +11,7 @@ namespace Octokit
|
|||||||
#if !NETFX_CORE
|
#if !NETFX_CORE
|
||||||
[Serializable]
|
[Serializable]
|
||||||
#endif
|
#endif
|
||||||
|
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
||||||
public class ApiError
|
public class ApiError
|
||||||
{
|
{
|
||||||
public ApiError() { }
|
public ApiError() { }
|
||||||
@@ -39,5 +42,13 @@ namespace Octokit
|
|||||||
/// Additional details about the error
|
/// Additional details about the error
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public IReadOnlyList<ApiErrorDetail> Errors { get; protected set; }
|
public IReadOnlyList<ApiErrorDetail> Errors { get; protected set; }
|
||||||
|
|
||||||
|
internal string DebuggerDisplay
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return string.Format(CultureInfo.InvariantCulture, "Message: {0}", Message);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,10 +1,13 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using System.Globalization;
|
||||||
|
|
||||||
namespace Octokit
|
namespace Octokit
|
||||||
{
|
{
|
||||||
#if !NETFX_CORE
|
#if !NETFX_CORE
|
||||||
[Serializable]
|
[Serializable]
|
||||||
#endif
|
#endif
|
||||||
|
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
||||||
public class ApiErrorDetail
|
public class ApiErrorDetail
|
||||||
{
|
{
|
||||||
public ApiErrorDetail() { }
|
public ApiErrorDetail() { }
|
||||||
@@ -24,5 +27,13 @@ namespace Octokit
|
|||||||
public string Field { get; protected set; }
|
public string Field { get; protected set; }
|
||||||
|
|
||||||
public string Resource { get; protected set; }
|
public string Resource { get; protected set; }
|
||||||
|
|
||||||
|
internal string DebuggerDisplay
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return string.Format(CultureInfo.InvariantCulture, "Message: {0}, Code: {1}, Field: {2}", Message, Code, Field);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
|
using System.Globalization;
|
||||||
|
|
||||||
namespace Octokit
|
namespace Octokit
|
||||||
{
|
{
|
||||||
@@ -31,7 +32,10 @@ namespace Octokit
|
|||||||
/// The status of the build.
|
/// The status of the build.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public PagesBuildStatus Status { get; protected set; }
|
public PagesBuildStatus Status { get; protected set; }
|
||||||
public ApiError Error { get; set; }
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public ApiError Error { get; protected set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The user whose commit intiated the build.
|
/// The user whose commit intiated the build.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -46,5 +50,13 @@ namespace Octokit
|
|||||||
public TimeSpan Duration { get; protected set; }
|
public TimeSpan Duration { get; protected set; }
|
||||||
public DateTime CreatedAt { get; protected set; }
|
public DateTime CreatedAt { get; protected set; }
|
||||||
public DateTime UpdatedAt { get; protected set; }
|
public DateTime UpdatedAt { get; protected set; }
|
||||||
|
|
||||||
|
internal string DebuggerDisplay
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return string.Format(CultureInfo.InvariantCulture, "Pusher: {0}, Status: {1}, Duration: {2}", Pusher.Name, Status.ToString(), Duration.TotalMilliseconds);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user