public static IssueLock ( long repositoryId, int number ) : |
||
repositoryId | long | The Id of the repository |
number | int | The issue number |
Результат |
/// <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="owner">The owner of the repository</param> /// <param name="name">The name of the repository</param> /// <param name="number">The issue number</param> public Task Unlock(string owner, string name, int number) { Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(name, "name"); return(ApiConnection.Delete(ApiUrls.IssueLock(owner, name, number), new object(), AcceptHeaders.IssueLockingUnlockingApiPreview)); }
public Task Unlock(string owner, string name, int number) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); return(ApiConnection.Delete(ApiUrls.IssueLock(owner, name, number))); }
public Task Lock(string owner, string name, int number) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); return(ApiConnection.Put <Issue>(ApiUrls.IssueLock(owner, name, number), new object())); }
/// <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> public Task Unlock(int repositoryId, int number) { return(ApiConnection.Delete(ApiUrls.IssueLock(repositoryId, number), new object(), AcceptHeaders.IssueLockingUnlockingApiPreview)); }
public Task Unlock(long repositoryId, int number) { return(ApiConnection.Delete(ApiUrls.IssueLock(repositoryId, number))); }
public Task Lock(long repositoryId, int number) { return(ApiConnection.Put <Issue>(ApiUrls.IssueLock(repositoryId, number), new object())); }
/// <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> public Task Lock(long repositoryId, int number) { return(ApiConnection.Put <Issue>(ApiUrls.IssueLock(repositoryId, number), new object(), null, AcceptHeaders.IssueLockingUnlockingApiPreview)); }