https://github.com/rustunit/axum-github-hooks
Axum extractor for GitHub webhooks.
https://github.com/rustunit/axum-github-hooks
axum github octokit
Last synced: 9 months ago
JSON representation
Axum extractor for GitHub webhooks.
- Host: GitHub
- URL: https://github.com/rustunit/axum-github-hooks
- Owner: rustunit
- License: apache-2.0
- Created: 2024-12-31T20:36:42.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-02T12:39:17.000Z (about 1 year ago)
- Last Synced: 2025-04-12T12:06:54.332Z (9 months ago)
- Topics: axum, github, octokit
- Language: Rust
- Homepage: https://crates.io/crates/axum-github-hooks
- Size: 7.81 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# axum-github-hooks
[![crates.io][sh_crates]][lk_crates]
[![docs.rs][sh_docs]][lk_docs]
[![discord][sh_discord]][lk_discord]
[sh_crates]: https://img.shields.io/crates/v/axum-github-hooks.svg
[lk_crates]: https://crates.io/crates/axum-github-hooks
[sh_docs]: https://img.shields.io/docsrs/axum-github-hooks
[lk_docs]: https://docs.rs/axum-github-hooks/latest/axum-github-hooks/
[sh_discord]: https://img.shields.io/discord/1176858176897953872?label=discord&color=5561E6
[lk_discord]: https://discord.gg/rQNeEnMhus
Axum extractor for GitHub webhooks.
# Usage
```rust
let router = Router::new().route("/", post(webhook));
async fn webhook(GithubWebhook(hook): GithubWebhook) -> impl IntoResponse {
// TODO:
StatusCode::OK
}
```
# License
All code in this repository is dual-licensed under either:
- MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
at your option. This means you can select the license you prefer.
## Your contributions
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.