Octokit.Webhooks.AspNetCore
2.0.6
Prefix Reserved
See the version list below for details.
dotnet add package Octokit.Webhooks.AspNetCore --version 2.0.6
NuGet\Install-Package Octokit.Webhooks.AspNetCore -Version 2.0.6
<PackageReference Include="Octokit.Webhooks.AspNetCore" Version="2.0.6" />
<PackageVersion Include="Octokit.Webhooks.AspNetCore" Version="2.0.6" />
<PackageReference Include="Octokit.Webhooks.AspNetCore" />
paket add Octokit.Webhooks.AspNetCore --version 2.0.6
#r "nuget: Octokit.Webhooks.AspNetCore, 2.0.6"
#:package Octokit.Webhooks.AspNetCore@2.0.6
#addin nuget:?package=Octokit.Webhooks.AspNetCore&version=2.0.6
#tool nuget:?package=Octokit.Webhooks.AspNetCore&version=2.0.6
Octokit.Webhooks
Libraries to handle GitHub Webhooks in .NET applications.
Usage
ASP.NET Core
dotnet add package Octokit.Webhooks.AspNetCoreCreate a class that derives from
WebhookEventProcessorand override any of the virtual methods to handle webhooks from GitHub. For example, to handle Pull Request webhooks:public sealed class MyWebhookEventProcessor : WebhookEventProcessor { protected override Task ProcessPullRequestWebhookAsync(WebhookHeaders headers, PullRequestEvent pullRequestEvent, PullRequestAction action) { ... } }Register your implementation of
WebhookEventProcessor:builder.Services.AddSingleton<WebhookEventProcessor, MyWebhookEventProcessor>();Map the webhook endpoint:
app.UseEndpoints(endpoints => { ... endpoints.MapGitHubWebhooks(); ... });
MapGitHubWebhooks() takes two optional parameters:
path. Defaults to/api/github/webhooks, the URL of the endpoint to use for GitHub.secret. The secret you have configured in GitHub, if you have set this up.
Azure Functions
NOTE: Support is only provided for isolated process Azure Functions.
dotnet add package Octokit.Webhooks.AzureFunctionsCreate a class that derives from
WebhookEventProcessorand override any of the virtual methods to handle webhooks from GitHub. For example, to handle Pull Request webhooks:public sealed class MyWebhookEventProcessor : WebhookEventProcessor { protected override Task ProcessPullRequestWebhookAsync(WebhookHeaders headers, PullRequestEvent pullRequestEvent, PullRequestAction action) { ... } }Register your implementation of
WebhookEventProcessor:.ConfigureServices(collection => { ... collection.AddSingleton<WebhookEventProcessor, MyWebhookEventProcessor>(); ... })Configure the webhook function:
new HostBuilder() ... .ConfigureGitHubWebhooks() ... .Build();
ConfigureGitHubWebhooks() takes one optional parameter:
secret. The secret you have configured in GitHub, if you have set this up.
The function is available on the /api/github/webhooks endpoint.
Thanks
License
All packages in this repository are licensed under the MIT license.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net6.0
- Octokit.Webhooks (>= 2.0.6)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Octokit.Webhooks.AspNetCore:
| Package | Downloads |
|---|---|
|
MintPlayer.SlingBot
Build a Github Bot |
|
|
MintPlayer.Spark.Webhooks.GitHub
GitHub webhook integration for MintPlayer.Spark — broadcasts typed webhook events to the Spark message bus with support for production-to-dev WebSocket forwarding. |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Octokit.Webhooks.AspNetCore:
| Repository | Stars |
|---|---|
|
microsoft/project-oagents
Experimental AI Agents Framework
|
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.4 | 243 | 6/28/2026 |
| 4.0.3 | 4,720 | 6/4/2026 |
| 4.0.2 | 3,017 | 5/26/2026 |
| 4.0.1 | 3,055 | 5/12/2026 |
| 4.0.0 | 7,038 | 4/14/2026 |
| 4.0.0-rc.2 | 155 | 4/14/2026 |
| 4.0.0-rc.1 | 151 | 4/14/2026 |
| 3.2.1 | 55,547 | 9/11/2025 |
| 3.1.0 | 3,548 | 9/2/2025 |
| 3.0.0 | 11,560 | 7/18/2025 |
| 2.5.1 | 17,262 | 6/26/2025 |
| 2.5.0 | 661 | 6/26/2025 |
| 2.4.1 | 56,557 | 10/22/2024 |
| 2.4.0 | 6,793 | 10/9/2024 |
| 2.3.0 | 1,724 | 10/2/2024 |
| 2.2.3 | 12,095 | 7/31/2024 |
| 2.2.2 | 6,881 | 6/27/2024 |
| 2.2.1 | 7,669 | 5/9/2024 |
| 2.2.0 | 826 | 5/6/2024 |
| 2.0.6 | 6,509 | 11/12/2023 |