forgejo-federation/routers/api/v1
KN4CK3R 9b1b4b5433
Refactor Webhook + Add X-Hub-Signature (#16176)
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 #16115
Fixes #7788
Fixes #11755

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 (#16069) 2021-06-26 20:53:14 +01:00
misc Refactor renders (#15175) 2021-04-19 18:25:08 -04:00
notify [API] expose repo.GetReviewers() & repo.GetAssignees() (#16168) 2021-06-17 16:02:34 +02:00
org Add Visible modes function from Organisation to Users too (#16069) 2021-06-26 20:53:14 +01:00
repo Add Visible modes function from Organisation to Users too (#16069) 2021-06-26 20:53:14 +01:00
settings Disable Stars config option (#14653) 2021-04-15 18:53:57 +02:00
swagger [API] GET / SET User Settings (#16169) 2021-06-23 15:58:44 -04:00
user Add Visible modes function from Organisation to Users too (#16069) 2021-06-26 20:53:14 +01:00
utils Refactor Webhook + Add X-Hub-Signature (#16176) 2021-06-27 20:21:09 +01:00
api.go [API] Add repoGetTag (#16166) 2021-06-23 17:08:47 -04:00