From 74ec303eec4952b876ff33f0c4eede4e76400e5f Mon Sep 17 00:00:00 2001 From: Alexander Salamatov Date: Wed, 9 Sep 2020 10:52:27 +0300 Subject: [PATCH] Update git-database.md --- docs/git-database.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/git-database.md b/docs/git-database.md index 3a3a666c60..e135b139bb 100644 --- a/docs/git-database.md +++ b/docs/git-database.md @@ -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"); ```