public static CreateMerge ( long repositoryId ) : |
||
repositoryId | long | The Id of the repository |
Результат |
/// <summary> /// Create a merge for a given repository /// </summary> /// <remarks> /// http://developer.github.com/v3/repos/merging/#perform-a-merge /// </remarks> /// <param name="owner">The owner of the repository</param> /// <param name="name">The name of the repository</param> /// <param name="merge">The merge to create</param> /// <returns></returns> public Task <Merge> Create(string owner, string name, NewMerge merge) { Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(name, "name"); Ensure.ArgumentNotNull(merge, "merge"); return(ApiConnection.Post <Merge>(ApiUrls.CreateMerge(owner, name), merge)); }
/// <summary> /// Create a merge for a given repository /// </summary> /// <remarks> /// http://developer.github.com/v3/repos/merging/#perform-a-merge /// </remarks> /// <param name="repositoryId">The Id of the repository</param> /// <param name="merge">The merge to create</param> /// <returns></returns> public Task <Merge> Create(long repositoryId, NewMerge merge) { Ensure.ArgumentNotNull(merge, "merge"); return(ApiConnection.Post <Merge>(ApiUrls.CreateMerge(repositoryId), merge)); }