forgejo-hook: impl Hook::try_from_event

Utilize X-Forgejo-Event http header to facilitate conversion.

Signed-off-by: pep <pep@bouah.net>
This commit is contained in:
pep 2025-05-03 23:53:38 +02:00
commit 222ed138e4
No known key found for this signature in database
GPG key ID: DEDA74AEECA9D0F2
3 changed files with 88 additions and 1 deletions

View file

@ -7,7 +7,7 @@ license = "AGPL-3.0+"
[dependencies]
chrono = { version = "0.4", default-features = false, features = ["serde"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
[dev-dependencies]
serde_json = "1.0"
serde_path_to_error = "0.1.16"