forgejo/modules/structs
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_user.go Add Visible modes function from Organisation to Users too (#16069) 2021-06-26 20:53:14 +01:00
attachment.go
commit_status.go
cron.go
doc.go
fork.go
git_blob.go
git_hook.go
hook.go Refactor Webhook + Add X-Hub-Signature (#16176) 2021-06-27 20:21:09 +01:00
issue.go rm gogs relict (#14665) 2021-02-14 00:07:17 +08:00
issue_comment.go
issue_label.go
issue_milestone.go
issue_reaction.go
issue_stopwatch.go
issue_tracked_time.go
lfs_lock.go
miscellaneous.go
notifications.go
org.go Fix some API bugs (#16184) 2021-06-18 01:24:55 +02:00
org_member.go
org_team.go Add missing repo.projects unit into swagger (#14876) 2021-03-03 23:44:30 +01:00
org_type.go
pull.go
pull_review.go Expose resolver via API (#15167) 2021-03-28 00:37:51 +01:00
release.go
repo.go Add LFS Migration and Mirror (#14726) 2021-04-08 18:25:57 -04:00
repo_branch.go
repo_collaborator.go
repo_commit.go
repo_file.go
repo_key.go
repo_refs.go
repo_tag.go [API] Add repoCreateTag (#16165) 2021-06-17 18:04:10 +02:00
repo_topic.go
repo_tree.go
repo_watch.go
settings.go Disable Stars config option (#14653) 2021-04-15 18:53:57 +02:00
status.go
task.go
user.go Add Visible modes function from Organisation to Users too (#16069) 2021-06-26 20:53:14 +01:00
user_app.go
user_email.go
user_gpgkey.go
user_key.go