Russell Aunger
b34996a629
Implement Default Webhooks ( #4299 )
...
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.
2019-03-18 22:33:20 -04:00
Lanre Adelowo
be48397945
Slack webhook channel name cannot be empty or just contain an hashtag ( #4786 )
2018-09-10 10:31:08 -04:00
Russell Aunger
9ae7664df7
Fix webhook type conflation. ( #4285 )
...
- 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>
2018-06-21 07:22:03 +02:00
Lunny Xiao
60d95a0b85
fix bugs caused by #3929 ( #3999 )
2018-05-23 15:23:23 +08:00
Lunny Xiao
24941a1046
Add more webhooks support and refactor webhook templates directory ( #3929 )
...
* 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
2018-05-16 22:01:55 +08:00
Morgan Bazalgette
65861900cd
Handle refactor ( #3339 )
...
* Replace all ctx.Handle with ctx.ServerError or ctx.NotFound
* Change Handle(403) to NotFound, avoid using macaron's NotFound
2018-01-10 23:34:17 +02:00
Elouan Martinet
5057c6b43f
Fix guide link for webhooks in repository settings ( #3291 ) ( #3292 )
...
Signed-off-by: Elouan Martinet <exa@elou.world>
2018-01-03 23:50:09 +08:00
Lunny Xiao
10b54df2b2
Add dingtalk webhook ( #2777 )
...
* add dingtalk webhook type
* add vendor
* some fixes
* fix name check
* fix name check & improvment
2017-11-21 06:26:43 +02:00
David Schneiderbauer
0cef8ce192
fix panic on gogs webhook creation ( #2675 )
...
* 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>
2017-10-08 19:37:31 +08:00
Ethan Koenig
b689bb6180
Webhooks for repo creation/deletion ( #1663 )
...
* Webhooks for repo creation/deletion
* add createHookTask
* Add handles for GetSlackPayload and GetDiscordPayload
2017-09-03 11:20:24 +03:00
Lunny Xiao
3e6fed368b
fix webhook test ( #2415 )
...
* fix webhook test
* fix error message
* fix typo
2017-08-29 22:55:24 +08:00
Lunny Xiao
15d3872281
fix missing orgnization discord webhook ( #2414 )
2017-08-29 09:20:35 +08:00
Lunny Xiao
ced50e0ec1
Implementation of discord webhook ( #2402 )
...
* implementation of discord webhook
* fix webhooks
* fix typo and unnecessary color values
* fix typo
* fix imports and revert changes to webhook_slack.go
2017-08-28 13:06:45 +08:00
Rémy Boulanouar
e0c6ab2d44
Add Gitea Webhook ( #1755 )
...
* Replace Gogs by Gitea
* Fix missing changes
* Create Gitea webhook and put Gogs webhook apart.
2017-05-29 02:17:15 -05:00
Lunny Xiao
47a7529d96
update code.gitea.io/git ( #450 )
2016-12-22 10:30:52 +01:00
Ethan Koenig
04b9a7e7a2
Bug fixes for repo permissions in API
...
Also move duplicated code into repo.APIFormat(..)
2016-12-07 12:55:24 +01:00
Bwko
a4ece1f223
Fixes typos
2016-11-27 12:59:12 +01:00
Lunny Xiao
3917ed45de
golint fixed for routers ( #208 )
2016-11-24 15:04:31 +08:00
Sandro Santilli
a1c5f02444
Fix import path of go-sdk ( #141 )
...
From code.gitea.io/go-sdk/gitea
To code.gitea.io/sdk/gitea
2016-11-11 17:39:44 +08:00
Sandro Santilli
4247304f5a
Update import paths from github.com/go-gitea to code.gitea.io ( #135 )
...
- 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
2016-11-10 17:24:48 +01:00
Sandro Santilli
864d1b1f9f
Fix type in unused constant name ( #111 )
...
* 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"
2016-11-07 18:58:22 -02:00
Sandro Santilli
aadd7dcdc3
And others
2016-11-07 17:53:22 +01:00
Sandro Santilli
0b62aeb495
More MixedCase consts
2016-11-07 17:08:21 +01:00
Sandro Santilli
80eea77953
Use MixedCase constant names
...
See https://github.com/golang/go/wiki/CodeReviewComments#mixed-caps
2016-11-07 17:05:08 +01:00
Thomas Boerger
4c6c16f358
Replaced go-gogs-client with go-sdk imports
2016-11-07 16:10:32 +01:00
Thomas Boerger
77f9c7e571
Fixed links to sdk docs
2016-11-07 16:10:32 +01:00
Sandro Santilli
6e4252dad4
Replace gogits/git-module dependency with go-gitea/git ( #94 )
...
* Replace gogits/git-module dependency with go-gitea/git
Fixes #92
* Remove git alias for git module import (not needed)
2016-11-06 11:18:34 -02:00
Rémy Boulanouar
2d68bd1ef9
Change import reference to match gitea instead of gogs ( #37 )
2016-11-03 10:29:56 -02:00
Unknwon
6f9a95f830
#2246 add HTMLURL to webhook type
...
- Fill Milestone and Assignee field when available in webhook payload
2016-08-16 10:19:09 -07:00
Unknwon
94392a7af3
Fix empty repository panic on send test webhook
2016-08-15 05:53:47 -07:00
Unknwon
dccb0c15b9
Replace convert.To with APIFormat calls
2016-08-14 04:17:26 -07:00
Unknwon
3f7f4852ef
#2246 fully support of webhooks for pull request
2016-08-14 03:32:24 -07:00
lstahlman
89f71b44f7
Add committer information to API and Webhooks. Also fixes #3271 ( #3414 )
2016-08-09 22:01:57 -07:00
Unknwon
1f2e173a74
Refactor User.Id to User.ID
2016-07-24 01:08:22 +08:00
Unknwon
60110adc06
models/webhook: restrict deletion to be explicitly with repo and org ID
2016-07-17 08:33:59 +08:00
Unknwon
3d93532c87
#3274 fix can't get webhook detail of organization
2016-07-16 01:02:55 +08:00
Unknwon
7ca5f8f119
models/repo: remove redundant info for some repo methods
...
RepoLink -> Link, RepoRelLink -> RelLink, FullRepoLink -> FullLink
2016-07-15 21:53:43 +08:00
Unknwon
d62ab49978
#3057 retrieve webhook with repo_id
...
This prevents user retrieve arbitrary webhook by changing URL to
access webhook from other unauthorized repositories.
2016-07-08 13:57:09 +08:00
Unknwon
514382e2eb
Rename module: middleware -> context
2016-03-11 11:56:52 -05:00
Unknwon
d5ca913b2f
#2639 add branch prefix for test webhook
2016-02-17 15:05:07 -05:00
Unknwon
2765b5c7cf
#2630 fix wrong user avatar link in webhook
...
Was using the wrong method and now uses the method which checks if
the avatar link is relative or not.
2016-02-15 15:18:53 -05:00
Unknwon
dce2a9e7e1
fix wrong slack webhook payload URL
2015-12-06 23:07:02 -05:00
Unknwon
404867f206
fix #2105 and fix #1857
2015-12-05 13:24:13 -05:00