Octokit.Webhooks.AzureFunctions
2.1.1
Prefix Reserved
See the version list below for details.
dotnet add package Octokit.Webhooks.AzureFunctions --version 2.1.1
NuGet\Install-Package Octokit.Webhooks.AzureFunctions -Version 2.1.1
<PackageReference Include="Octokit.Webhooks.AzureFunctions" Version="2.1.1" />
<PackageVersion Include="Octokit.Webhooks.AzureFunctions" Version="2.1.1" />
<PackageReference Include="Octokit.Webhooks.AzureFunctions" />
paket add Octokit.Webhooks.AzureFunctions --version 2.1.1
#r "nuget: Octokit.Webhooks.AzureFunctions, 2.1.1"
#:package Octokit.Webhooks.AzureFunctions@2.1.1
#addin nuget:?package=Octokit.Webhooks.AzureFunctions&version=2.1.1
#tool nuget:?package=Octokit.Webhooks.AzureFunctions&version=2.1.1
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
- Microsoft.Azure.Functions.Worker.Core (>= 1.17.0)
- Microsoft.Azure.Functions.Worker.Extensions.Abstractions (>= 1.3.0)
- Microsoft.Azure.Functions.Worker.Extensions.Http (>= 3.1.0)
- Octokit.Webhooks (>= 2.1.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 |
|---|---|---|
| 3.2.1 | 393 | 9/11/2025 |
| 3.1.0 | 186 | 9/2/2025 |
| 3.0.0 | 325 | 7/18/2025 |
| 2.5.1 | 1,036 | 6/26/2025 |
| 2.5.0 | 172 | 6/26/2025 |
| 2.4.1 | 4,259 | 10/22/2024 |
| 2.4.0 | 204 | 10/9/2024 |
| 2.3.0 | 190 | 10/2/2024 |
| 2.2.3 | 1,452 | 7/31/2024 |
| 2.2.2 | 294 | 6/27/2024 |
| 2.2.1 | 325 | 5/9/2024 |
| 2.2.0 | 198 | 5/6/2024 |
| 2.1.1 | 155 | 2/29/2024 |
| 2.1.0 | 255 | 12/19/2023 |
| 2.0.6 | 174 | 11/12/2023 |
| 2.0.5 | 131 | 10/26/2023 |
| 2.0.4 | 370 | 10/12/2023 |
| 2.0.3 | 1,254 | 8/25/2023 |
| 2.0.2 | 349 | 8/16/2023 |
| 2.0.1 | 217 | 6/13/2023 |
| 2.0.0 | 122 | 6/9/2023 |
| 1.5.2 | 141 | 6/1/2023 |
| 1.5.1 | 168 | 4/27/2023 |
| 1.5.0 | 132 | 4/25/2023 |
| 1.4.1 | 168 | 4/11/2023 |
| 1.4.0 | 129 | 4/6/2023 |
| 1.3.5 | 204 | 10/13/2022 |
| 1.3.4 | 114 | 10/5/2022 |
| 1.3.3 | 182 | 8/11/2022 |
| 1.3.2 | 163 | 8/9/2022 |