Russell Aunger
de4be7a2c2
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.
7 years ago
Lanre Adelowo
ac3d4c717b
Slack webhook channel name cannot be empty or just contain an hashtag ( #4786 )
7 years ago
Russell Aunger
5128ce487b
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>
7 years ago
Lunny Xiao
ab3544eeff
fix bugs caused by #3929 ( #3999 )
8 years ago
Lunny Xiao
a619bd08b0
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
8 years ago
Morgan Bazalgette
8c916631f0
Handle refactor ( #3339 )
* Replace all ctx.Handle with ctx.ServerError or ctx.NotFound
* Change Handle(403) to NotFound, avoid using macaron's NotFound
8 years ago
Elouan Martinet
16448c0ca1
Fix guide link for webhooks in repository settings ( #3291 ) ( #3292 )
Signed-off-by: Elouan Martinet <exa@elou.world>
8 years ago
Lunny Xiao
e4c0c3bbd0
Add dingtalk webhook ( #2777 )
* add dingtalk webhook type
* add vendor
* some fixes
* fix name check
* fix name check & improvment
8 years ago
David Schneiderbauer
75bb4887b6
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>
8 years ago
Ethan Koenig
e4e41c4830
Webhooks for repo creation/deletion ( #1663 )
* Webhooks for repo creation/deletion
* add createHookTask
* Add handles for GetSlackPayload and GetDiscordPayload
8 years ago
Lunny Xiao
4a6aedf41c
fix webhook test ( #2415 )
* fix webhook test
* fix error message
* fix typo
8 years ago
Lunny Xiao
5539562312
fix missing orgnization discord webhook ( #2414 )
8 years ago
Lunny Xiao
3d63ae00ae
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
8 years ago
Rémy Boulanouar
971024dd63
Add Gitea Webhook ( #1755 )
* Replace Gogs by Gitea
* Fix missing changes
* Create Gitea webhook and put Gogs webhook apart.
9 years ago
Lunny Xiao
301dcd4876
update code.gitea.io/git ( #450 )
9 years ago
Ethan Koenig
2872b66e89
Bug fixes for repo permissions in API
Also move duplicated code into repo.APIFormat(..)
9 years ago
Bwko
fcde7de425
Fixes typos
9 years ago
Lunny Xiao
e134836804
golint fixed for routers ( #208 )
9 years ago
Sandro Santilli
827c85ad85
Fix import path of go-sdk ( #141 )
From code.gitea.io/go-sdk/gitea
To code.gitea.io/sdk/gitea
9 years ago
Sandro Santilli
cb1b3cc148
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
9 years ago
Sandro Santilli
f5ceddc42d
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"
9 years ago
Sandro Santilli
0daccd049a
And others
9 years ago
Sandro Santilli
d092b29641
More MixedCase consts
9 years ago
Sandro Santilli
8212aa70ba
Use MixedCase constant names
See https://github.com/golang/go/wiki/CodeReviewComments#mixed-caps
9 years ago
Thomas Boerger
a2f2fa9326
Replaced go-gogs-client with go-sdk imports
9 years ago
Thomas Boerger
54a9e8c1c4
Fixed links to sdk docs
9 years ago
Sandro Santilli
3c9693defb
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)
9 years ago
Rémy Boulanouar
9712d5ee89
Change import reference to match gitea instead of gogs ( #37 )
9 years ago
Unknwon
38c02e6ece
#2246 add HTMLURL to webhook type
- Fill Milestone and Assignee field when available in webhook payload
9 years ago
Unknwon
559cbcdc6f
Fix empty repository panic on send test webhook
9 years ago
Unknwon
6e37e3f3d7
Replace convert.To with APIFormat calls
9 years ago
Unknwon
f60f4fc56e
#2246 fully support of webhooks for pull request
9 years ago
lstahlman
3bc40ec99b
Add committer information to API and Webhooks. Also fixes #3271 ( #3414 )
9 years ago
Unknwon
3b42ab0e57
Refactor User.Id to User.ID
9 years ago
Unknwon
9bdf738b7e
models/webhook: restrict deletion to be explicitly with repo and org ID
9 years ago
Unknwon
cb5bfbcc5f
#3274 fix can't get webhook detail of organization
9 years ago
Unknwon
bc2448daaa
models/repo: remove redundant info for some repo methods
RepoLink -> Link, RepoRelLink -> RelLink, FullRepoLink -> FullLink
9 years ago
Unknwon
7270678853
#3057 retrieve webhook with repo_id
This prevents user retrieve arbitrary webhook by changing URL to
access webhook from other unauthorized repositories.
9 years ago
Unknwon
574a4d69e8
Rename module: middleware -> context
10 years ago
Unknwon
1464e1dee0
#2639 add branch prefix for test webhook
10 years ago
Unknwon
88484a73ec
#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.
10 years ago
Unknwon
88640fafd6
fix wrong slack webhook payload URL
10 years ago
Unknwon
442f027ad1
fix #2105 and fix #1857
10 years ago