mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-27 00:23:39 +00:00
Update git-database.md (#2247)
This commit is contained in:
committed by
GitHub
parent
6a0d404263
commit
bd85dd9a4e
@@ -17,12 +17,12 @@ var tag = new NewTag {
|
||||
Date = DateTime.UtcNow
|
||||
}
|
||||
};
|
||||
var result = await client.Git.Tags.Create("octokit", "octokit.net", tag);
|
||||
var result = await client.Git.Tag.Create("octokit", "octokit.net", tag);
|
||||
Console.WriteLine("Created a tag for {0} at {1}", result.Tag, result.Sha);
|
||||
```
|
||||
|
||||
Or you can fetch an existing tag from the API:
|
||||
|
||||
```csharp
|
||||
var tag = await client.Git.Tags.Get("octokit", "octokit.net", "v1.0.0");
|
||||
var tag = await client.Git.Tag.Get("octokit", "octokit.net", "v1.0.0");
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user