Cornel
ebc35f2b2e
Fix comments webhook panic (#12046)
* Fix webhook comment handling type cast panic
* Handle HookIssueReviewed action in webhook
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 yıl önce
Sijmen Schoon
66a9ef9036
Fix ref links in issue overviews for tags (#8742)
* Properly generate ref URLs
Tags used to not generate correct URLs (src/branch/tags/1.0.0 instead of
src/tags/1.0.0).
Also cleans up some code around it with the created helper functions.
* Fix formatting and create migration
* Add copyright head to utils_test
* Use a raw query for the ref migration
* Remove semicolon
* Quote column and table names in migration SQL
* Change || to CONCAT, since MSSQL does not support ||
* Make migration engine aware
* Add missing import
* Move ref EndName and URL to the issue service
* Fix tests
* Add test for commit refs
* Update issue.go
* Use the right command for building JavaScript bundles
* Prepare for merge
* Check for refs/* before prepending in migration
* Update services/issue/issue_test.go
* Update modules/git/utils_test.go
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: techknowlogick <matti@mdranta.net>
4 yıl önce
John Olheiser
3f1c0841cb
Granular webhook events (#9626)
* Initial work
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add PR reviews and API coverage
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Split up events
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add migration and locale
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Format
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Revert IsPull
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix comments
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix tests
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix PR reviews
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix issue_comment
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Make fmt
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Migrations
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Backwards compatible API
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix feishu
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Move session commit
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
4 yıl önce
John Olheiser
38a6b11015
Fix RocketChat (#9908)
* Fix RocketChat??
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Don't send attachment for repo create/delete
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Make fmt
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
4 yıl önce
John Olheiser
5b2d9333f1
Add HTML URL to API Issues (#9654)
* Add HTML URL to API Issues
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Swagger
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
4 yıl önce
John Olheiser
fb3a6aba7d
Only show sender if it makes sense (#9601)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
4 yıl önce
Cornel
81e63d0714
Refactor webhooks to reduce code duplication (#9422)
* Start webhook refactoring to reduce code duplication
* More webhook refactoring
* Unify webhook release messages
* Fix webhook release link
* Remove sql import
* More webhook refactoring
* More webhook refactoring
* Webhook tests extended
* Fixed issue opened webhook
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: techknowlogick <matti@mdranta.net>
4 yıl önce
Cornel
04ab1138f6
Fix Slack webhook payload title generation to work with Mattermost (#9378)
* Fix Slack webhook payload title generation to work with Mattermost by using a markdown link instead of html
* Fix Slack webhook attachment title and title link handling
4 yıl önce
Lauris BH
8f8c250ddb
Make consistent links to repository in the Slack/Mattermost notificiations (#9205)
4 yıl önce
Lunny Xiao
a966a0298e
Move more webhook codes from models to webhook module (#8802)
* Move more webhook codes from models to webhook module
4 yıl önce
WGH
28c5ae27d6
Fix Slack webhook fork message (#7774)
The order of forkee and fork was mixed up.
4 yıl önce
Lunny Xiao
34eee25bd4
Move sdk structs to modules/structs (#6905)
* move sdk structs to moduels/structs
* fix tests
* fix fmt
* fix swagger
* fix vendor
5 yıl önce
Lunny Xiao
d578b71d61
move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364)
* move code.gitea.io/git to code.gitea.io/gitea/modules/git
* fix imports
* fix fmt
* fix misspell
* remove wrong tests data
* fix unit tests
* fix tests
* fix tests
* fix tests
* fix tests
* fix tests
* enable Debug to trace the failure tests
* fix tests
* fix tests
* fix tests
* fix tests
* fix tests
* comment commit count tests since git clone depth is 50
* fix tests
* update from code.gitea.io/git
* revert change to makefile
5 yıl önce
zeripath
11e316654e
Fix deadlock in webhook PullRequest (#6102)
Signed-off-by: Andrew Thornton <art27@cantab.net>
5 yıl önce
Lanre Adelowo
746cf22d8a
handle milestone events for issues and PR (#5947)
5 yıl önce
Lanre Adelowo
945804f800
Webhook for Pull Request approval/rejection (#5027)
5 yıl önce
Lunny Xiao
6bdc556b7f
Fix some webhooks bugs (#3981)
* fix some webhooks bugs
* update vendor
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* fix test
* fix clearlabels
* fix pullrequest webhook bug fix #3492
* update release webhook description
* remove unused code
* fix push webhook in pull request
* small changes
6 yıl önce
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
6 yıl önce
kolaente
95f2e2b57b
Multiple assignees (#3705)
6 yıl önce
Ethan Koenig
513375c429
Make URL scheme unambiguous (#2408)
* Make URL scheme unambiguous
Redirect old routes to new routes
* Fix redirects to new URL scheme, and update template
* Fix branches/_new endpoints, and update integration test
6 yıl önce
Ethan Koenig
b689bb6180
Webhooks for repo creation/deletion (#1663)
* Webhooks for repo creation/deletion
* add createHookTask
* Add handles for GetSlackPayload and GetDiscordPayload
6 yıl önce
Ethan Koenig
1207bda94b
Fix typos in models/ (#576)
7 yıl önce
Kim "BKC" Carlbäcker
42ec5ce740
Fix breakage from vendor-update
7 yıl önce
Lunny Xiao
94da472717
Golint fixed for modules/setting (#262)
* golint fixed for modules/setting
* typo fixed and renamed UNIXSOCKET to UnixSocket
7 yıl önce
Bwko
33a2ac3830
Lint models/update.go & webhook_slack.go
7 yıl önce
Sandro Santilli
a1c5f02444
Fix import path of go-sdk (#141)
From code.gitea.io/go-sdk/gitea
To code.gitea.io/sdk/gitea
7 yıl önce
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
7 yıl önce
Sandro Santilli
80eea77953
Use MixedCase constant names
See https://github.com/golang/go/wiki/CodeReviewComments#mixed-caps
7 yıl önce
Thomas Boerger
4c6c16f358
Replaced go-gogs-client with go-sdk imports
7 yıl önce
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)
7 yıl önce
Rémy Boulanouar
2d68bd1ef9
Change import reference to match gitea instead of gogs (#37)
7 yıl önce
Unknwon
dccb0c15b9
Replace convert.To with APIFormat calls
7 yıl önce
Unknwon
3f7f4852ef
#2246 fully support of webhooks for pull request
7 yıl önce
Unknwon
19423957b1
rename import path
8 yıl önce
Unknwon
9a2e43bff2
move out git module and #1573 send push hook
8 yıl önce
Unknwon
76d4b9288b
#2045 have fallback but empty value
8 yıl önce
Unknwon
05ba8622f0
#2045 move fallback to empty string
8 yıl önce
Unknwon
e0bae9547a
more fixes on #2045
8 yıl önce
Unknwon
834d38a8fb
#2045 add short version as fallback to Slack payload
8 yıl önce
Unknwon
55ddf225bb
webhook APIs
8 yıl önce
Unknwon
8e92d4352f
slack JSON indent
8 yıl önce
Unknwon
f509c59ac1
new create webhook event
8 yıl önce
Unknwon
4217c2333c
new create webhook UI
8 yıl önce
Christopher Brickley
3794111460
update slack hook to use new format
9 yıl önce
Christopher Brickley
af0741da07
handle initial commit for compareUrl
9 yıl önce
Christopher Brickley
00a864e693
add commit compare functionality
9 yıl önce
Christopher Brickley
2bce24068d
add Slack API webhook support
9 yıl önce