summaryrefslogtreecommitdiffstats
path: root/models/webhook.go
Commit message (Collapse)AuthorAgeFilesLines
* Add support for MS Teams webhooks (#6632)Daniel Grier2019-04-191-0/+9
|
* Telegram webhook (#4227)techknowlogick2019-04-181-0/+18
|
* Better logging (#6038) (#6095)zeripath2019-04-021-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Panic don't fatal on create new logger Fixes #5854 Signed-off-by: Andrew Thornton <art27@cantab.net> * partial broken * Update the logging infrastrcture Signed-off-by: Andrew Thornton <art27@cantab.net> * Reset the skip levels for Fatal and Error Signed-off-by: Andrew Thornton <art27@cantab.net> * broken ncsa * More log.Error fixes Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove nal * set log-levels to lowercase * Make console_test test all levels * switch to lowercased levels * OK now working * Fix vetting issues * Fix lint * Fix tests * change default logging to match current gitea * Improve log testing Signed-off-by: Andrew Thornton <art27@cantab.net> * reset error skip levels to 0 * Update documentation and access logger configuration * Redirect the router log back to gitea if redirect macaron log but also allow setting the log level - i.e. TRACE * Fix broken level caching * Refactor the router log * Add Router logger * Add colorizing options * Adjust router colors * Only create logger if they will be used * update app.ini.sample * rename Attribute ColorAttribute * Change from white to green for function * Set fatal/error levels * Restore initial trace logger * Fix Trace arguments in modules/auth/auth.go * Properly handle XORMLogger * Improve admin/config page * fix fmt * Add auto-compression of old logs * Update error log levels * Remove the unnecessary skip argument from Error, Fatal and Critical * Add stacktrace support * Fix tests * Remove x/sync from vendors? * Add stderr option to console logger * Use filepath.ToSlash to protect against Windows in tests * Remove prefixed underscores from names in colors.go * Remove not implemented database logger This was removed from Gogs on 4 Mar 2016 but left in the configuration since then. * Ensure that log paths are relative to ROOT_PATH * use path.Join * rename jsonConfig to logConfig * Rename "config" to "jsonConfig" to make it clearer * Requested changes * Requested changes: XormLogger * Try to color the windows terminal If successful default to colorizing the console logs * fixup * Colorize initially too * update vendor * Colorize logs on default and remove if this is not a colorizing logger * Fix documentation * fix test * Use go-isatty to detect if on windows we are on msys or cygwin * Fix spelling mistake * Add missing vendors * More changes * Rationalise the ANSI writer protection * Adjust colors on advice from @0x5c * Make Flags a comma separated list * Move to use the windows constant for ENABLE_VIRTUAL_TERMINAL_PROCESSING * Ensure matching is done on the non-colored message - to simpify EXPRESSION
* Add signatures to webhooks (#6428)techknowlogick2019-03-251-0/+19
|
* Implement Default Webhooks (#4299)Russell Aunger2019-03-181-1/+72
| | | | | | | | 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.
* Webhook for Pull Request approval/rejection (#5027)Lanre Adelowo2018-12-271-10/+12
|
* 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.