Jason Song
5e9d4f7b9c
Merge branch 'main' into feature/bots
2023-01-09 10:42:38 +08:00
Jason Song
6135359a04
Always reuse transaction ( #22362 )
2023-01-08 09:34:58 +08:00
Jason Song
4b1d3c75d5
fix: ignore events caused by actions for actions notifier only
2023-01-06 17:21:07 +08:00
Jason Song
53afbcecad
Merge branch 'main' into feature/bots
2023-01-03 09:43:23 +08:00
delvh
0f4e1b9ac6
Restructure webhook
module ( #22256 )
...
Previously, there was an `import services/webhooks` inside
`modules/notification/webhook`.
This import was removed (after fighting against many import cycles).
Additionally, `modules/notification/webhook` was moved to
`modules/webhook`,
and a few structs/constants were extracted from `models/webhooks` to
`modules/webhook`.
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2023-01-01 23:23:15 +08:00
Jason Song
ec020563ae
refactor: mv modules/notification/actions to services/actions
2022-12-29 16:05:00 +08:00
Jason Song
c84094011e
fix: import
2022-12-29 15:02:10 +08:00
Jason Song
f11a31e54e
Merge branch 'main' into feature/bots
2022-12-29 14:51:21 +08:00
KN4CK3R
a35749893b
Move convert
package to services ( #22264 )
...
Addition to #22256
The `convert` package relies heavily on different models which is
[disallowed by our definition of
modules](https://github.com/go-gitea/gitea/blob/main/CONTRIBUTING.md#design-guideline ).
This helps to prevent possible import cycles.
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-12-29 10:57:15 +08:00
Jason Song
7a34d37aad
fix: use ctx
2022-12-12 11:05:22 +08:00
Jason Song
dbef504584
fix: truncated title
2022-12-12 10:54:28 +08:00
Jason Song
22203eeb38
Update modules/notification/actions/helper.go
...
Co-authored-by: a1012112796 <1012112796@qq.com>
2022-12-12 10:48:32 +08:00
Jason Song
d378a78c79
Merge branch 'main' into feature/bots
2022-12-09 16:20:28 +08:00
KN4CK3R
3c59d31bc6
Add API management for issue/pull and comment attachments ( #21783 )
...
Close #14601
Fix #3690
Revive of #14601 .
Updated to current code, cleanup and added more read/write checks.
Signed-off-by: Andrew Thornton <art27@cantab.net>
Signed-off-by: Andre Bruch <ab@andrebruch.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Norwin <git@nroo.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-12-09 14:35:56 +08:00
Jason Song
223782ca4c
refactor: rename to actions
2022-12-06 15:16:25 +08:00
Jason Song
56368f3963
refactor: use ctx in models
2022-12-06 14:15:48 +08:00
Jason Song
c07d0c1768
refactor: rename model
2022-12-06 13:48:09 +08:00
Jason Song
67c5c8868b
refactor: rename import alias
2022-12-05 15:57:45 +08:00
Jason Song
5f74b35377
refactor: rename files
2022-12-05 15:52:32 +08:00
Jason Song
704f72017d
refactor: rename packages
2022-12-05 15:45:38 +08:00
Jason Song
fdd3444c52
fix: add missing ctx
2022-12-05 14:46:34 +08:00
Jason Song
bd1af5b7f8
Merge branch 'main' into feature/bots
2022-12-05 14:31:00 +08:00
Lunny Xiao
0a7d3ff786
refactor some functions to support ctx as first parameter ( #21878 )
...
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
Co-authored-by: Lauris BH <lauris@nix.lv>
2022-12-03 10:48:26 +08:00
Jason Song
b0d6c7b86e
chore: use SPDX-License-Identifier
2022-12-02 22:25:31 +08:00
Jason Song
ab69fdc6fe
feat: more notifications
2022-12-01 14:13:22 +08:00
Jason Song
4487f04b14
feat: new way to notify
2022-11-30 18:24:47 +08:00
Jason Song
3793d55eca
fix: commit status
2022-11-29 18:48:00 +08:00
Jason Song
04d72d3500
refactor: rename tables to bot_*
2022-11-29 12:34:23 +08:00
Jason Song
6f5c3feb2d
fix: register bots notifier when enabled only
2022-11-28 18:24:09 +08:00
Jason Song
e37b3911d8
fix: use ref in options
2022-11-28 18:21:49 +08:00
Jason Song
66b558017f
Merge branch 'main' into feature/bots
2022-11-28 17:23:53 +08:00
flynnnnnnnnnn
e81ccc406b
Implement FSFE REUSE for golang files ( #21840 )
...
Change all license headers to comply with REUSE specification.
Fix #16132
Co-authored-by: flynnnnnnnnnn <flynnnnnnnnnn@github>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
2022-11-27 18:20:29 +00:00
Jason Song
ef4b3673dd
chore: golang lint
2022-11-26 22:12:52 +08:00
Jason Song
0bd9553219
chore: golang lint
2022-11-26 20:14:03 +08:00
Jason Song
1886156329
chore: remove outdated todos
2022-11-25 17:48:48 +08:00
Jason Song
fdd3c0434e
feat: add IsForkPullRequest
2022-11-25 17:48:48 +08:00
Lunny Xiao
3e8de17db3
permission
2022-11-25 17:48:48 +08:00
Lunny Xiao
2ecb59c092
rename builds -> bots
2022-11-25 17:48:48 +08:00
Lunny Xiao
88b0ab89d0
Gitea bot will not fire the events otherwise it may causes a forever loop
2022-11-25 17:48:48 +08:00
Jason Song
9b021500b0
feat: ignore bots events of repo with disabled builds
2022-11-25 17:48:47 +08:00
Jason Song
5e7adf2004
chore: add extra fields to Run and RunJob
2022-11-25 17:48:47 +08:00
Lunny Xiao
0bc995889f
Finish bots events notifications
2022-11-25 17:48:46 +08:00
Jason Song
dee4f2470b
feat: inner build view UI
2022-11-25 17:48:46 +08:00
Jason Song
d6e100f6be
fix: update run status
2022-11-25 17:48:46 +08:00
Jason Song
feab4b1601
feat: update task status
2022-11-25 17:48:45 +08:00
Lunny Xiao
f75a4abc5d
build UI
2022-11-25 17:48:45 +08:00
Lunny Xiao
482832da76
delete unused structs
2022-11-25 17:48:45 +08:00
Jason Song
f355188e12
feat: parse workflows
2022-11-25 17:48:44 +08:00
Jason Song
5093d6b48e
chore: fix mods
2022-11-25 17:48:44 +08:00
Bo-Yi.Wu
fb738c4192
chore(runner): support fetch detail stage data
...
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
2022-11-25 17:48:44 +08:00