GitHub.Actions.Octokit
8.1.1
dotnet add package GitHub.Actions.Octokit --version 8.1.1
NuGet\Install-Package GitHub.Actions.Octokit -Version 8.1.1
<PackageReference Include="GitHub.Actions.Octokit" Version="8.1.1" />
paket add GitHub.Actions.Octokit --version 8.1.1
#r "nuget: GitHub.Actions.Octokit, 8.1.1"
// Install GitHub.Actions.Octokit as a Cake Addin #addin nuget:?package=GitHub.Actions.Octokit&version=8.1.1 // Install GitHub.Actions.Octokit as a Cake Tool #tool nuget:?package=GitHub.Actions.Octokit&version=8.1.1
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 | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- GitHub.Octokit.SDK (>= 0.0.27)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.1)
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 |
---|---|---|
8.1.1 | 1,530 | 9/20/2024 |
8.1.0 | 2,974 | 8/3/2024 |
8.0.16 | 3,272 | 6/11/2024 |
8.0.15 | 684 | 5/7/2024 |
8.0.14 | 153 | 4/30/2024 |
8.0.13 | 1,544 | 4/8/2024 |
8.0.12 | 209 | 3/6/2024 |
8.0.11 | 270 | 2/2/2024 |
8.0.10 | 135 | 1/31/2024 |
8.0.9 | 132 | 1/29/2024 |
8.0.8 | 111 | 1/27/2024 |
8.0.7 | 116 | 1/25/2024 |
8.0.4 | 141 | 1/23/2024 |
8.0.3 | 6,157 | 11/26/2023 |
8.0.2 | 133 | 11/26/2023 |
8.0.1 | 163 | 11/22/2023 |
8.0.0 | 143 | 11/18/2023 |
8.0.0-rc.1.23419.4 | 269 | 9/14/2023 |
1.0.4-rc.1 | 90 | 9/14/2023 |
1.0.3-rc.1 | 73 | 9/14/2023 |
1.0.2-rc.1 | 90 | 9/14/2023 |
1.0.1-rc.1 | 76 | 9/13/2023 |
1.0.0-rc.1 | 77 | 9/13/2023 |