Bo-Yi Wu and GitHub
167b0f46ef
chore(models): rewrite code format. ( #14754 )
...
* chore: rewrite format.
* chore: update format
Signed-off-by: Bo-Yi Wu <[email protected] >
* chore: update format
Signed-off-by: Bo-Yi Wu <[email protected] >
* chore: Adjacent parameters with the same type should be grouped together
* chore: update format.
2021-03-14 19:52:12 +01:00
f0e15250b9
Migrate to use jsoniter instead of encoding/json ( #14841 )
...
* Migrate to use jsoniter
* fix tests
* update gitea.com/go-chi/binding
Signed-off-by: Andrew Thornton <[email protected] >
Co-authored-by: 6543 <[email protected] >
2021-03-01 22:08:10 +01:00
Brad Albright and GitHub
a598877fdf
Cron job to cleanup hook_task table ( #13080 )
...
Close **Prune hook_task Table (#10741 )**
Added a cron job to delete webhook deliveries in the hook_task table. It can be turned on/off and the schedule controlled globally via app.ini. The data can be deleted by either the age of the delivery which is the default or by deleting the all but the most recent deliveries _per webhook_.
Note: I had previously submitted pr #11416 but I closed it when I realized that I had deleted per repository instead of per webhook. Also, I decided allowing the settings to be overridden via the ui was overkill. Also this version allows the deletion by age which is probably what most people would want.
2021-01-26 22:02:42 +01:00
42354dfe45
Move webhook type from int to string ( #13664 )
...
* Move webhook type from int to string
* rename webhook_services
* finish refactor
* Fix merge
* Ignore unnecessary ci
Co-authored-by: 6543 <[email protected] >
Co-authored-by: zeripath <[email protected] >
2020-12-08 11:41:14 +01:00
3f1c0841cb
Granular webhook events ( #9626 )
...
* Initial work
Signed-off-by: jolheiser <[email protected] >
* Add PR reviews and API coverage
Signed-off-by: jolheiser <[email protected] >
* Split up events
Signed-off-by: jolheiser <[email protected] >
* Add migration and locale
Signed-off-by: jolheiser <[email protected] >
* Format
Signed-off-by: jolheiser <[email protected] >
* Revert IsPull
Signed-off-by: jolheiser <[email protected] >
* Fix comments
Signed-off-by: jolheiser <[email protected] >
* Fix tests
Signed-off-by: jolheiser <[email protected] >
* Fix PR reviews
Signed-off-by: jolheiser <[email protected] >
* Fix issue_comment
Signed-off-by: jolheiser <[email protected] >
* Make fmt
Signed-off-by: jolheiser <[email protected] >
* Migrations
Signed-off-by: jolheiser <[email protected] >
* Backwards compatible API
Signed-off-by: jolheiser <[email protected] >
* Fix feishu
Signed-off-by: jolheiser <[email protected] >
* Move session commit
Signed-off-by: jolheiser <[email protected] >
Co-authored-by: Lauris BH <[email protected] >
Co-authored-by: guillep2k <[email protected] >
2020-03-06 07:10:48 +02:00
1f01f53c53
API add/generalize pagination ( #9452 )
...
* paginate results
* fixed deadlock
* prevented breaking change
* updated swagger
* go fmt
* fixed find topic
* go mod tidy
* go mod vendor with go1.13.5
* fixed repo find topics
* fixed unit test
* added Limit method to Engine struct; use engine variable when provided; fixed gitignore
* use ItemsPerPage for default pagesize; fix GetWatchers, getOrgUsersByOrgID and GetStargazers; fix GetAllCommits headers; reverted some changed behaviors
* set Page value on Home route
* improved memory allocations
* fixed response headers
* removed logfiles
* fixed import order
* import order
* improved swagger
* added function to get models.ListOptions from context
* removed pagesize diff on unit test
* fixed imports
* removed unnecessary struct field
* fixed go fmt
* scoped PR
* code improvements
* code improvements
* go mod tidy
* fixed import order
* fixed commit statuses session
* fixed files headers
* fixed headers; added pagination for notifications
* go mod tidy
* go fmt
* removed Private from user search options; added setting.UI.IssuePagingNum as default valeu on repo's issues list
* Apply suggestions from code review
Co-Authored-By: 6543 <[email protected] >
Co-Authored-By: zeripath <[email protected] >
* fixed build error
* CI.restart()
* fixed merge conflicts resolve
* fixed conflicts resolve
* improved FindTrackedTimesOptions.ToOptions() method
* added backwards compatibility on ListReleases request; fixed issue tracked time ToSession
* fixed build error; fixed swagger template
* fixed swagger template
* fixed ListReleases backwards compatibility
* added page to user search route
Co-authored-by: techknowlogick <[email protected] >
Co-authored-by: 6543 <[email protected] >
Co-authored-by: zeripath <[email protected] >
2020-01-24 14:00:29 -05:00
Lunny Xiao and zeripath
a966a0298e
Move more webhook codes from models to webhook module ( #8802 )
...
* Move more webhook codes from models to webhook module
2019-11-03 22:13:25 +00:00
Lunny Xiao and zeripath
0e7f7df3cf
Move webhook to a standalone package under modules ( #8747 )
...
* Move webhook to a standalone package under modules
* fix test
* fix comments
2019-11-01 22:51:22 +00:00
WGH and Lauris BH
6ddd3b0b47
Implement webhook branch filter ( #7791 )
...
* Fix validate() function to handle errors in embedded anon structs
* Implement webhook branch filter
See #2025 , #3998 .
2019-09-09 08:48:21 +03:00
Lunny Xiao and GitHub
34eee25bd4
Move sdk structs to modules/structs ( #6905 )
...
* move sdk structs to moduels/structs
* fix tests
* fix fmt
* fix swagger
* fix vendor
2019-05-11 18:21:34 +08:00
techknowlogick and GitHub
56da256853
Telegram webhook ( #4227 )
2019-04-18 22:45:02 -04:00
Lunny Xiao and GitHub
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 <[email protected] >
* load attributes when created release
* update comparsion doc
2018-05-16 22:01:55 +08:00
Morlinest and Lauris BH
8e61823ec4
Fix tests code to prevent some runtime errors ( #2381 )
...
* Fix tests code to prevent some runtime errors
* Reduce nesting
2017-08-28 12:17:45 +03:00
Rémy Boulanouar and Bo-Yi Wu
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
Ethan Koenig and Lunny Xiao
0934d1b1ea
Bug fixes and unit tests for models/webhook ( #751 )
2017-01-25 18:37:35 +08:00