Commit Graph

75 Commits (911ca0215377b34559f2304a22dce863e219b255)

Author SHA1 Message Date
Lunny Xiao 005900baea Use created & updated instead BeforeInsert & BeforeUpdate ()
* 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
Ethan Koenig b689bb6180 Webhooks for repo creation/deletion ()
* Webhooks for repo creation/deletion

* add createHookTask

* Add handles for GetSlackPayload and GetDiscordPayload
Lunny Xiao 04ec79579c fix orgnization webhooks ()
* fix org webhooks

* remove trace code
Lunny Xiao 3e6fed368b fix webhook test ()
* fix webhook test

* fix error message

* fix typo
Lunny Xiao ced50e0ec1 Implementation of discord webhook ()
* implementation of discord webhook

* fix webhooks

* fix typo and unnecessary color values

* fix typo

* fix imports and revert changes to webhook_slack.go
Lauris BH 6db387a21e Refactor session close as xorm already does everything needed internally ()
Rémy Boulanouar e0c6ab2d44 Add Gitea Webhook ()
* Replace Gogs by Gitea

* Fix missing changes

* Create Gitea webhook and put Gogs webhook apart.
Lunny Xiao 36f02c0c32
fix potential sqlite lock
Ethan Koenig 021904e4e6 Fix typos in models/ and modules/ ()
Anton Skorokhod 79ab69fe30 Add X-GitHub-* headers for webhook to get clubhouse.io integration working ()
Ethan Koenig 0934d1b1ea Bug fixes and unit tests for models/webhook ()
Ethan Koenig 27fcf8d30a Bug fixes for webhook API ()
Andrey Nering 84b7d29d34 Create missing database indexes ()
Alexander Lunegov d5d21b67d2 Fix string format verbs ()
Sandro Santilli c25063d834 Lint webhook.go, unexports simpleMarshalJSON ()
Sandro Santilli a1c5f02444 Fix import path of go-sdk ()
From code.gitea.io/go-sdk/gitea
  To code.gitea.io/sdk/gitea
Thibault Meyer b0ddced2b5
Merge remote-tracking branch 'upstream/master' into feature/rewrite-xorm-queries
# Conflicts:
#	models/git_diff.go
#	models/issue.go
#	models/org.go
#	models/pull.go
#	models/repo.go
Thibault Meyer a4454f5d0f
Rewrite XORM queries
Sandro Santilli 4247304f5a Update import paths from github.com/go-gitea to code.gitea.io ()
- 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
Sandro Santilli 864d1b1f9f Fix type in unused constant name ()
* 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"
Sandro Santilli aadd7dcdc3 And others
Sandro Santilli 0b62aeb495 More MixedCase consts
Sandro Santilli 80eea77953 Use MixedCase constant names
See https://github.com/golang/go/wiki/CodeReviewComments#mixed-caps
Thomas Boerger 4c6c16f358
Replaced go-gogs-client with go-sdk imports
Thomas Boerger 648c6fdd60
Vet complains about "should have signature MarshalJSON() ([]byte, error)", replaced with custom name
Rémy Boulanouar 2d68bd1ef9 Change import reference to match gitea instead of gogs ()
Unknwon 8516dfcb6c able to sync now for mirrors
- Refactor code to use sync.UniqueQueue
- Closes 
Unknwon c1ecb6c60a modules/sync: add UniqueQueue
Kurt Madel 67fb0fe6a5 added support to set pull_request event from api ()
Unknwon 0b273ac4d5 code cleanup
Unknwon 3f7f4852ef fully support of webhooks for pull request
Unknwon 250be011c7 Remove redundant Unix timestamp method call
Unix() already uses UTC as timezone
Unknwon 60110adc06 models/webhook: restrict deletion to be explicitly with repo and org ID
Unknwon 3d93532c87 fix can't get webhook detail of organization
Kim Carlbäcker d950bf68e3 Ignore Response Body for Slack Hooks ()
Unknwon d62ab49978 retrieve webhook with repo_id
This prevents user retrieve arbitrary webhook by changing URL to
access webhook from other unauthorized repositories.
Unknwon ad513a20e9 Replace time.Time with Unix Timestamp (int64)
Unknwon ac78bae7b5 Replace uuid module with original package
Unknwon 297e772c20 fix payloads mixed up for webhook
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.
Kim "BKC" Carlbäcker edc414c584 Fixed Webhook URL-length Issue
Unknwon bf26808fb3 update README
Unknwon 404867f206 fix and fix
Unknwon f455125d4d fix
Unknwon 2be5837cb0 New push to base repo of base branch: retest all corresponding patches
Unknwon 0fbb8c8826 New push to head repo of head branch: regenerate patch and retest apply
Unknwon 55ddf225bb webhook APIs
Unknwon f509c59ac1 new create webhook event
Unknwon 23f42d92c9 add webhook recent deliveries
Unknwon 2881456421 new webhooks list UI
Unknwon fa298a2c30 : Realtime webhooks