Added new ApiUrls method RepoCollaborator(int repositoryId, string user)

This commit is contained in:
aedampir@gmail.com
2016-05-19 14:19:23 +07:00
parent 063cd0bb3f
commit 5cd1c442a6
+11
View File
@@ -1400,6 +1400,17 @@ namespace Octokit
return "repos/{0}/{1}/collaborators/{2}".FormatUri(owner, repo, user);
}
/// <summary>
/// Returns the <see cref="Uri"/> to check user is collaborator
/// </summary>
/// <param name="repositoryId">The id of the repository</param>
/// <param name="user">The name of the user</param>
/// <returns>The <see cref="Uri"/> to check user is collaborator</returns>
public static Uri RepoCollaborator(int repositoryId, string user)
{
return "repositories/{0}/collaborators/{2}".FormatUri(repositoryId, user);
}
/// <summary>
/// returns the <see cref="Uri"/> for branches
/// </summary>