GitHub.Actions.Octokit
9.0.0
dotnet add package GitHub.Actions.Octokit --version 9.0.0
NuGet\Install-Package GitHub.Actions.Octokit -Version 9.0.0
<PackageReference Include="GitHub.Actions.Octokit" Version="9.0.0" />
paket add GitHub.Actions.Octokit --version 9.0.0
#r "nuget: GitHub.Actions.Octokit, 9.0.0"
// Install GitHub.Actions.Octokit as a Cake Addin #addin nuget:?package=GitHub.Actions.Octokit&version=9.0.0 // Install GitHub.Actions.Octokit as a Cake Tool #tool nuget:?package=GitHub.Actions.Octokit&version=9.0.0
GitHub.Actions.Octokit
package
To install the GitHub.Actions.Octokit
NuGet package:
<PackageReference Include="GitHub.Actions.Octokit" Version="[Version]" />
Or use the dotnet add package
.NET CLI command:
dotnet add package GitHub.Actions.Octokit
GitHub.Actions.Octokit
This was modified, but borrowed from the glob/README.md.
You can use this package to access a hydrated Octokit client with authentication and a set of useful defaults for GitHub Actions.
Get the GitHubClient
instance
To use the GitHubClient
in your .NET project, register the services with an IServiceCollection
instance by calling AddGitHubClientServices
and then your consuming code can require the GitHubClient
via constructor dependency injection.
using Microsoft.Extensions.DependencyInjection;
using GitHub;
using Actions.Octokit;
using Actions.Octokit.Extensions;
using var provider = new ServiceCollection()
.AddGitHubClientServices()
.BuildServiceProvider();
// The client relies on the value from ${{ secrets.GITHUB_TOKEN }}
var client = provider.GetRequiredService<GitHubClient>();
// Call GitHub REST API /repos/octokit/rest.js/pulls/123
var pullRequest = client.Repos["octokit"]["rest.js"].Pulls[123].GetAsync();
Console.WriteLine(pullRequest.Title);
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. |
-
net9.0
- GitHub.Octokit.SDK (>= 0.0.31)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
9.0.0 | 79 | 12/20/2024 |
8.1.1 | 3,506 | 9/20/2024 |
8.1.0 | 2,986 | 8/3/2024 |
8.0.16 | 3,279 | 6/11/2024 |
8.0.15 | 755 | 5/7/2024 |
8.0.14 | 161 | 4/30/2024 |
8.0.13 | 1,551 | 4/8/2024 |
8.0.12 | 216 | 3/6/2024 |
8.0.11 | 278 | 2/2/2024 |
8.0.10 | 143 | 1/31/2024 |
8.0.9 | 142 | 1/29/2024 |
8.0.8 | 118 | 1/27/2024 |
8.0.7 | 125 | 1/25/2024 |
8.0.4 | 148 | 1/23/2024 |
8.0.3 | 6,377 | 11/26/2023 |
8.0.2 | 142 | 11/26/2023 |
8.0.1 | 170 | 11/22/2023 |
8.0.0 | 150 | 11/18/2023 |
8.0.0-rc.1.23419.4 | 275 | 9/14/2023 |
1.0.4-rc.1 | 97 | 9/14/2023 |
1.0.3-rc.1 | 79 | 9/14/2023 |
1.0.2-rc.1 | 94 | 9/14/2023 |
1.0.1-rc.1 | 82 | 9/13/2023 |
1.0.0-rc.1 | 82 | 9/13/2023 |