forgejo/routers/api/v1
KN4CK3R 9b1b4b5433
Refactor Webhook + Add X-Hub-Signature ()
This PR removes multiple unneeded fields from the `HookTask` struct and adds the two headers `X-Hub-Signature` and `X-Hub-Signature-256`.

## ⚠️ BREAKING ⚠️ 

* The `Secret` field is no longer passed as part of the payload.
* "Breaking" change (or fix?): The webhook history shows the real called url and not the url registered in the webhook (`deliver.go`@129).

Close 
Fixes 
Fixes 

Co-authored-by: zeripath <art27@cantab.net>
2021-06-27 20:21:09 +01:00
..
admin Add Visible modes function from Organisation to Users too () 2021-06-26 20:53:14 +01:00
misc Refactor renders () 2021-04-19 18:25:08 -04:00
notify [API] expose repo.GetReviewers() & repo.GetAssignees() () 2021-06-17 16:02:34 +02:00
org Add Visible modes function from Organisation to Users too () 2021-06-26 20:53:14 +01:00
repo Add Visible modes function from Organisation to Users too () 2021-06-26 20:53:14 +01:00
settings Disable Stars config option () 2021-04-15 18:53:57 +02:00
swagger [API] GET / SET User Settings () 2021-06-23 15:58:44 -04:00
user Add Visible modes function from Organisation to Users too () 2021-06-26 20:53:14 +01:00
utils Refactor Webhook + Add X-Hub-Signature () 2021-06-27 20:21:09 +01:00
api.go [API] Add repoGetTag () 2021-06-23 17:08:47 -04:00