mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-03 19:11:30 +00:00
Update git-database.md
"GitDatabase" has been removed. Use "Git" instead.
This commit is contained in:
committed by
GitHub
parent
8dcb1db0da
commit
e893895a0b
@@ -17,12 +17,12 @@ var tag = new NewTag {
|
||||
Date = DateTime.UtcNow
|
||||
}
|
||||
};
|
||||
var result = await client.GitDatabase.Tags.Create("octokit", "octokit.net", tag);
|
||||
var result = await client.Git.Tags.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:
|
||||
|
||||
```
|
||||
var tag = await client.GitDatabase.Tags.Get("octokit", "octokit.net", "v1.0.0");
|
||||
var tag = await client.Git.Tags.Get("octokit", "octokit.net", "v1.0.0");
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user