summaryrefslogtreecommitdiffstats
path: root/routers/repo/webhook.go
Commit message (Collapse)AuthorAgeFilesLines
* Add golangci (#6418)kolaente2019-06-121-3/+11
|
* Webhook Logs show proper HTTP Method, and allow change HTTP method in form ↵techknowlogick2019-05-151-0/+1
| | | | | | | | | | | (#6953) * Fix #6951 - logs show proper HTTP Method, and allow change HTTP method in form * enforce POST method for webhook * set default if method is empty
* Move sdk structs to modules/structs (#6905)Lunny Xiao2019-05-111-1/+1
| | | | | | | | | | | | * move sdk structs to moduels/structs * fix tests * fix fmt * fix swagger * fix vendor
* Add GET requests to webhook (#6771)Simon2019-05-051-0/+1
| | | | | | | | | | | | | | * Add GET requests to webhook * make fmt * Handle invalid http method on webhook * Uppercase http method in webhook * Rename v85.go to v86.go * make fmt
* Add support for MS Teams webhooks (#6632)Daniel Grier2019-04-191-0/+72
|
* Telegram webhook (#4227)techknowlogick2019-04-181-0/+91
|
* move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364)Lunny Xiao2019-03-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * move code.gitea.io/git to code.gitea.io/gitea/modules/git * fix imports * fix fmt * fix misspell * remove wrong tests data * fix unit tests * fix tests * fix tests * fix tests * fix tests * fix tests * enable Debug to trace the failure tests * fix tests * fix tests * fix tests * fix tests * fix tests * comment commit count tests since git clone depth is 50 * fix tests * update from code.gitea.io/git * revert change to makefile
* Implement Default Webhooks (#4299)Russell Aunger2019-03-181-20/+39
| | | | | | | | Partially implement #770. Add "Default Webhooks" page in site admin UI. Persist to the existing webhooks table, but store with RepoID=0 and OrgID=0. Upon repo creation, copy the set of default webhooks into the new repo.
* Slack webhook channel name cannot be empty or just contain an hashtag (#4786)Lanre Adelowo2018-09-101-2/+14
|
* Fix webhook type conflation. (#4285)Russell Aunger2018-06-211-1/+1
| | | | | | - Fix typo that caused Gogs hooks to be created as Gitea hooks. - Fix typo that caused Gogs hooks to be duplicated upon edit (though this bug was masked by the previous one). Signed-off-by: Russell Aunger <rba@live.com>
* fix bugs caused by #3929 (#3999)Lunny Xiao2018-05-231-1/+1
|
* Add more webhooks support and refactor webhook templates directory (#3929)Lunny Xiao2018-05-161-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | * add more webhook support * move hooks templates to standalone dir and add more webhooks ui * fix tests * update vendor checksum * add more webhook support * move hooks templates to standalone dir and add more webhooks ui * fix tests * update vendor checksum * update vendor Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> * load attributes when created release * update comparsion doc
* Handle refactor (#3339)Morgan Bazalgette2018-01-101-36/+36
| | | | | | * Replace all ctx.Handle with ctx.ServerError or ctx.NotFound * Change Handle(403) to NotFound, avoid using macaron's NotFound
* Fix guide link for webhooks in repository settings (#3291) (#3292)Elouan Martinet2018-01-031-1/+1
| | | Signed-off-by: Elouan Martinet <exa@elou.world>
* Add dingtalk webhook (#2777)Lunny Xiao2017-11-211-6/+73
| | | | | | | | | | | | * add dingtalk webhook type * add vendor * some fixes * fix name check * fix name check & improvment
* fix panic on gogs webhook creation (#2675)David Schneiderbauer2017-10-081-2/+2
| | | | | | | | | | * fix panic on gogs webhook creation Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com> * fix panic in gogs webhook edit Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* Webhooks for repo creation/deletion (#1663)Ethan Koenig2017-09-031-0/+1
| | | | | | | | * Webhooks for repo creation/deletion * add createHookTask * Add handles for GetSlackPayload and GetDiscordPayload
* fix webhook test (#2415)Lunny Xiao2017-08-291-2/+10
| | | | | | | | * fix webhook test * fix error message * fix typo
* fix missing orgnization discord webhook (#2414)Lunny Xiao2017-08-291-1/+0
|
* Implementation of discord webhook (#2402)Lunny Xiao2017-08-281-5/+106
| | | | | | | | | | | | * implementation of discord webhook * fix webhooks * fix typo and unnecessary color values * fix typo * fix imports and revert changes to webhook_slack.go
* Add Gitea Webhook (#1755)Rémy Boulanouar2017-05-291-2/+91
| | | | | | | | * Replace Gogs by Gitea * Fix missing changes * Create Gitea webhook and put Gogs webhook apart.
* update code.gitea.io/git (#450)Lunny Xiao2016-12-221-2/+2
|
* Bug fixes for repo permissions in APIEthan Koenig2016-12-071-1/+1
| | | | Also move duplicated code into repo.APIFormat(..)
* Fixes typosBwko2016-11-271-1/+1
|
* golint fixed for routers (#208)Lunny Xiao2016-11-241-5/+15
|
* Fix import path of go-sdk (#141)Sandro Santilli2016-11-111-2/+2
| | | | From code.gitea.io/go-sdk/gitea To code.gitea.io/sdk/gitea
* Update import paths from github.com/go-gitea to code.gitea.io (#135)Sandro Santilli2016-11-101-9/+9
| | | | | | | - Update import paths from github.com/go-gitea to code.gitea.io - Fix import path for travis See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
* Fix type in unused constant name (#111)Sandro Santilli2016-11-071-9/+9
| | | | | | | | | | | | | | | | | | * Write LDAP, SMTP, PAM, DLDAP back to all uppercase * Fix type in unused constant name * Other MixCased fixes * Complete MixerCasing of template constants * Re uppercase LTS and LDAPS suffixes * Uppercase JSON suffix in constant names * Proper case LoginNoType * Prefix unexported template path constants with "tpl"
* And othersSandro Santilli2016-11-071-7/+7
|
* More MixedCase constsSandro Santilli2016-11-071-4/+4
|
* Use MixedCase constant namesSandro Santilli2016-11-071-1/+1
| | | | See https://github.com/golang/go/wiki/CodeReviewComments#mixed-caps
* Replaced go-gogs-client with go-sdk importsThomas Boerger2016-11-071-1/+1
|
* Fixed links to sdk docsThomas Boerger2016-11-071-1/+1
|
* Replace gogits/git-module dependency with go-gitea/git (#94)Sandro Santilli2016-11-061-1/+1
| | | | | | | | * Replace gogits/git-module dependency with go-gitea/git Fixes #92 * Remove git alias for git module import (not needed)
* Change import reference to match gitea instead of gogs (#37)Rémy Boulanouar2016-11-031-5/+5
|
* #2246 add HTMLURL to webhook typeUnknwon2016-08-161-1/+1
| | | | - Fill Milestone and Assignee field when available in webhook payload
* Fix empty repository panic on send test webhookUnknwon2016-08-151-9/+21
|
* Replace convert.To with APIFormat callsUnknwon2016-08-141-13/+6
|
* #2246 fully support of webhooks for pull requestUnknwon2016-08-141-2/+3
|
* Add committer information to API and Webhooks. Also fixes #3271 (#3414)lstahlman2016-08-091-0/+4
|
* Refactor User.Id to User.IDUnknwon2016-07-241-3/+3
|
* models/webhook: restrict deletion to be explicitly with repo and org IDUnknwon2016-07-171-2/+2
|
* #3274 fix can't get webhook detail of organizationUnknwon2016-07-161-1/+6
|
* models/repo: remove redundant info for some repo methodsUnknwon2016-07-151-1/+1
| | | | RepoLink -> Link, RepoRelLink -> RelLink, FullRepoLink -> FullLink
* #3057 retrieve webhook with repo_idUnknwon2016-07-081-1/+1
| | | | | This prevents user retrieve arbitrary webhook by changing URL to access webhook from other unauthorized repositories.
* Rename module: middleware -> contextUnknwon2016-03-111-13/+13
|
* #2639 add branch prefix for test webhookUnknwon2016-02-171-1/+2
|
* #2630 fix wrong user avatar link in webhookUnknwon2016-02-151-1/+1
| | | | | Was using the wrong method and now uses the method which checks if the avatar link is relative or not.
* fix wrong slack webhook payload URLUnknwon2015-12-061-1/+6
|
* fix #2105 and fix #1857Unknwon2015-12-051-0/+385