Commit Graph

116 Commits (f9b1fac4eae993491be7a1f91f48196535986f5b)

Author SHA1 Message Date
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
Unknwon 82f7a01ded : X-Gogs-Event header is empty
Unknwon d02e45f985 better naming on
Unknwon 6a23252edc able to allow insecure certification of webhook for
Joseph Crail 39c068400e Fix spelling errors in comments.
Unknwon 340a4595dd support duoshuo mirror of gravatar
Unknwon 52d66ba6c8 , use go-gogs-client
Unknwon 9dc3c93a6a , add/edit hook
Unknwon 8eb5120fbd , API: list user repos, list repo hooks
Unknwon 79262173a6 Webhook delivery locking & Hide repo for org members if they don't have access
Christopher Brickley f94d7c3f51 clarify name/username/owner/pusher for webhook
Unknwon 1b7adf57e9 fix https://github.com/go-xorm/xorm/issues/161
Unknwon 33659ed9a5 Fix
Christopher Brickley 132590fab8 update specific hook_task, not all
Christopher Brickley 85c35a6b8b add organization-level webhooks
Christopher Brickley 00a864e693 add commit compare functionality
Christopher Brickley 2bce24068d add Slack API webhook support
Unknwon 7e36bf448d Merge branch 'master' of github.com:gogits/gogs into dev
Conflicts:
	dockerfiles/README.md
Unknwon 9a1d5d2489 Finish new web hook pages
Unknwon 8dd07c0ddd New UI merge in progress
Unknown ad5ec45dd6 Fix
Unknown 1f58d6f5d9 Mirror fix on
Unknown 302c863cda Fix
Unknown e573855a4f Fix , support web hook
Unknown 94bccbb148 Finish edit and remove web hook
Unknown 24f614f6db Finish add web hook