diff --git a/Octokit/Clients/StarredClient.cs b/Octokit/Clients/StarredClient.cs index f3b35338..cd2958dc 100644 --- a/Octokit/Clients/StarredClient.cs +++ b/Octokit/Clients/StarredClient.cs @@ -54,7 +54,7 @@ namespace Octokit { Ensure.ArgumentNotNullOrEmptyString(user, "user"); - return ApiConnection.GetAll(ApiUrls.Starred(user)); + return ApiConnection.GetAll(ApiUrls.StarredByUser(user)); } /// @@ -67,7 +67,7 @@ namespace Octokit Ensure.ArgumentNotNullOrEmptyString(user, "user"); Ensure.ArgumentNotNull(request, "request"); - return ApiConnection.GetAll(ApiUrls.Starred(user), request.ToParametersDictionary()); + return ApiConnection.GetAll(ApiUrls.StarredByUser(user), request.ToParametersDictionary()); } /// @@ -82,7 +82,7 @@ namespace Octokit try { - var response = await Connection.GetAsync(ApiUrls.CheckStarred(owner, repo), null, null) + var response = await Connection.GetAsync(ApiUrls.Starred(owner, repo), null, null) .ConfigureAwait(false); if (response.StatusCode != HttpStatusCode.NotFound && response.StatusCode != HttpStatusCode.NoContent) { diff --git a/Octokit/Helpers/ApiUrls.cs b/Octokit/Helpers/ApiUrls.cs index 37f1645d..cba5b9f2 100644 --- a/Octokit/Helpers/ApiUrls.cs +++ b/Octokit/Helpers/ApiUrls.cs @@ -378,7 +378,7 @@ namespace Octokit /// Returns the that lists the starred repositories for the specified user. /// /// The user that has the stars - public static Uri Starred(string user) + public static Uri StarredByUser(string user) { return "users/{0}/starred".FormatUri(user); } @@ -389,7 +389,7 @@ namespace Octokit /// The owner of the repository /// The name of the repository /// - public static Uri CheckStarred(string owner, string repo) + public static Uri Starred(string owner, string repo) { return "user/starred/{0}/{1}".FormatUri(owner, repo); }