mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-31 02:05:39 +00:00
copy comments from base
This commit is contained in:
@@ -9,6 +9,16 @@ namespace Octokit
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a tag for a given repository by sha reference
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/git/tags/#get-a-tag
|
||||
/// </remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="reference">Tha sha reference of the tag</param>
|
||||
/// <returns></returns>
|
||||
public Task<GitTag> Get(string owner, string name, string reference)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
|
||||
@@ -18,6 +28,16 @@ namespace Octokit
|
||||
return ApiConnection.Get<GitTag>(ApiUrls.Tag(owner, name, reference));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Create a tag for a given repository
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// http://developer.github.com/v3/git/tags/#create-a-tag-object
|
||||
/// </remarks>
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="tag">The tag to create</param>
|
||||
/// <returns></returns>
|
||||
public Task<GitTag> Create(string owner, string name, NewTag tag)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
|
||||
|
||||
Reference in New Issue
Block a user