Commit Graph

64 Commits (3270e7a4435fceb757728dfc319fc04077a37caf)

Author SHA1 Message Date
Unknwon 94392a7af3 Fix empty repository panic on send test webhook
Unknwon dccb0c15b9 Replace convert.To with APIFormat calls
Unknwon 3f7f4852ef fully support of webhooks for pull request
lstahlman 89f71b44f7 Add committer information to API and Webhooks. Also fixes ()
Unknwon 1f2e173a74 Refactor User.Id to User.ID
Unknwon 60110adc06 models/webhook: restrict deletion to be explicitly with repo and org ID
Unknwon 3d93532c87 fix can't get webhook detail of organization
Unknwon 7ca5f8f119 models/repo: remove redundant info for some repo methods
RepoLink -> Link, RepoRelLink -> RelLink, FullRepoLink -> FullLink
Unknwon d62ab49978 retrieve webhook with repo_id
This prevents user retrieve arbitrary webhook by changing URL to
access webhook from other unauthorized repositories.
Unknwon 514382e2eb Rename module: middleware -> context
Unknwon d5ca913b2f add branch prefix for test webhook
Unknwon 2765b5c7cf fix wrong user avatar link in webhook
Was using the wrong method and now uses the method which checks if
the avatar link is relative or not.
Unknwon dce2a9e7e1 fix wrong slack webhook payload URL
Unknwon 404867f206 fix and fix