From bd85dd9a4e5468500a8ede42f4e7c2ff827c8796 Mon Sep 17 00:00:00 2001 From: Alexander Salamatov Date: Tue, 6 Oct 2020 15:50:22 +0300 Subject: [PATCH] Update git-database.md (#2247) --- 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"); ```