summaryrefslogtreecommitdiffstats
path: root/models/webhook.go
Commit message (Collapse)AuthorAgeFilesLines
* fix webhook bug of response info is not displayed in UI (#4000)Lunny Xiao2018-05-231-9/+12
|
* Add more webhooks support and refactor webhook templates directory (#3929)Lunny Xiao2018-05-161-33/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Add sensitive headers (#3429)Antoine GIRARD2018-01-311-2/+2
| | | | | | | * Add HeaderWithSensitiveCase methods to respect casing * Update webhook.go
* Fix SQL type error for webhooks (#3424)Ethan Koenig2018-01-291-3/+10
|
* Refactor struct's time to remove unnecessary memory usage (#3142)Lunny Xiao2017-12-111-7/+3
| | | | | | | | | | | | | | * refactor struct's time to remove unnecessary memory usage * use AsTimePtr simple code * fix tests * fix time compare * fix template on gpg * use AddDuration instead of Add
* Add dingtalk webhook (#2777)Lunny Xiao2017-11-211-4/+13
| | | | | | | | | | | | * add dingtalk webhook type * add vendor * some fixes * fix name check * fix name check & improvment
* Replace deprecated Id method with ID (#2655)Ethan Koenig2017-10-051-2/+2
|
* Use AfterLoad instead of AfterSet on Structs (#2628)Lunny Xiao2017-10-011-38/+17
| | | | | | | | * use AfterLoad instead of AfterSet on Structs * fix the comments on AfterLoad * fix the comments on action AfterLoad
* Use created & updated instead BeforeInsert & BeforeUpdate (#2482)Lunny Xiao2017-09-131-15/+2
| | | | | | | | | | | | * use created & updated instead BeforeInsert & BeforeUpdate * fix vendor checksum * only show generated SQL when development mode * remove extra update column updated_unix * remove trace config
* Webhooks for repo creation/deletion (#1663)Ethan Koenig2017-09-031-8/+40
| | | | | | | | * Webhooks for repo creation/deletion * add createHookTask * Add handles for GetSlackPayload and GetDiscordPayload
* fix orgnization webhooks (#2422)Lunny Xiao2017-08-301-3/+16
| | | | | | * fix org webhooks * remove trace code
* fix webhook test (#2415)Lunny Xiao2017-08-291-44/+53
| | | | | | | | * fix webhook test * fix error message * fix typo
* Implementation of discord webhook (#2402)Lunny Xiao2017-08-281-8/+25
| | | | | | | | | | | | * implementation of discord webhook * fix webhooks * fix typo and unnecessary color values * fix typo * fix imports and revert changes to webhook_slack.go
* Refactor session close as xorm already does everything needed internally (#2020)Lauris BH2017-06-211-1/+1
|
* Add Gitea Webhook (#1755)Rémy Boulanouar2017-05-291-1/+8
| | | | | | | | * Replace Gogs by Gitea * Fix missing changes * Create Gitea webhook and put Gogs webhook apart.
* fix potential sqlite lockLunny Xiao2017-05-051-9/+7
|
* Fix typos in models/ and modules/ (#1248)Ethan Koenig2017-03-151-2/+2
|
* Add X-GitHub-* headers for webhook to get clubhouse.io integration working ↵Anton Skorokhod2017-02-021-0/+2
| | | | (#809)
* Bug fixes and unit tests for models/webhook (#751)Ethan Koenig2017-01-251-20/+18
|
* Bug fixes for webhook API (#650)Ethan Koenig2017-01-141-1/+3
|
* Create missing database indexes (#596)Andrey Nering2017-01-061-6/+6
|
* Fix string format verbs (#3637)Alexander Lunegov2016-12-221-1/+1
|
* Lint webhook.go, unexports simpleMarshalJSON (#198)Sandro Santilli2016-11-221-3/+27
|
* Fix import path of go-sdk (#141)Sandro Santilli2016-11-111-1/+1
| | | | From code.gitea.io/go-sdk/gitea To code.gitea.io/sdk/gitea
* Merge remote-tracking branch 'upstream/master' into feature/rewrite-xorm-queriesThibault Meyer2016-11-101-5/+5
|\ | | | | | | | | | | | | | | | | # Conflicts: # models/git_diff.go # models/issue.go # models/org.go # models/pull.go # models/repo.go
| * Update import paths from github.com/go-gitea to code.gitea.io (#135)Sandro Santilli2016-11-101-5/+5
| | | | | | | | | | | | | | - 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
* | Rewrite XORM queriesThibault Meyer2016-11-101-11/+20
|/
* Fix type in unused constant name (#111)Sandro Santilli2016-11-071-4/+4
| | | | | | | | | | | | | | | | | | * 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-8/+8
|
* More MixedCase constsSandro Santilli2016-11-071-1/+1
|
* Use MixedCase constant namesSandro Santilli2016-11-071-10/+10
| | | | See https://github.com/golang/go/wiki/CodeReviewComments#mixed-caps
* Replaced go-gogs-client with go-sdk importsThomas Boerger2016-11-071-1/+1
|
* Vet complains about "should have signature MarshalJSON() ([]byte, error)", ↵Thomas Boerger2016-11-041-3/+3
| | | | replaced with custom name
* Change import reference to match gitea instead of gogs (#37)Rémy Boulanouar2016-11-031-4/+4
|
* #2018 able to sync now for mirrorsUnknwon2016-08-301-1/+1
| | | | | - Refactor code to use sync.UniqueQueue - Closes #3509
* modules/sync: add UniqueQueueUnknwon2016-08-301-60/+3
|
* added support to set pull_request event from api (#3513)Kurt Madel2016-08-241-1/+4
|
* #3383 code cleanupUnknwon2016-08-241-7/+10
|
* #2246 fully support of webhooks for pull requestUnknwon2016-08-141-10/+18
|
* Remove redundant Unix timestamp method callUnknwon2016-07-231-5/+5
| | | | Unix() already uses UTC as timezone
* models/webhook: restrict deletion to be explicitly with repo and org IDUnknwon2016-07-171-18/+39
|
* #3274 fix can't get webhook detail of organizationUnknwon2016-07-161-5/+17
|
* Ignore Response Body for Slack Hooks #3169 (#3256)Kim Carlbäcker2016-07-151-8/+0
|
* #3057 retrieve webhook with repo_idUnknwon2016-07-081-4/+4
| | | | | This prevents user retrieve arbitrary webhook by changing URL to access webhook from other unauthorized repositories.
* #2302 Replace time.Time with Unix Timestamp (int64)Unknwon2016-03-091-4/+18
|
* Replace uuid module with original packageUnknwon2016-02-201-2/+2
|
* #2485 fix payloads mixed up for webhookUnknwon2016-02-101-2/+5
| | | | | | | | | When repository contains a Slack type hook, it changes original payload content. This patch fixes it by using a local object to store newly created Slack payload instead of assigning back to the same variable.
* Fixed Webhook URL-length Issue #2465Kim "BKC" Carlbäcker2016-01-271-1/+1
|
* update READMEUnknwon2015-12-051-0/+2
|
* fix #2105 and fix #1857Unknwon2015-12-051-6/+6
|