public static Assignees ( long repositoryId ) : |
||
repositoryId | long | The Id of the repository |
return |
/// <summary> /// Gets all the available assignees (owner + collaborators) to which issues may be assigned. /// </summary> /// <param name="owner">The owner of the repository</param> /// <param name="name">The name of the repository</param> /// <returns></returns> public Task <IReadOnlyList <User> > GetForRepository(string owner, string name) { Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(name, "name"); return(ApiConnection.GetAll <User>(ApiUrls.Assignees(owner, name))); }
public Task <IReadOnlyList <User> > GetAllForRepository(long repositoryId, ApiOptions options) { Ensure.ArgumentNotNull(options, nameof(options)); var endpoint = ApiUrls.Assignees(repositoryId); return(ApiConnection.GetAll <User>(endpoint, null, AcceptHeaders.StableVersion, options)); }
public Task <IReadOnlyList <User> > GetAllForRepository(string owner, string name, ApiOptions options) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); Ensure.ArgumentNotNull(options, nameof(options)); var endpoint = ApiUrls.Assignees(owner, name); return(ApiConnection.GetAll <User>(endpoint, null, AcceptHeaders.StableVersion, options)); }