Commit Graph

184 Commits

Author SHA1 Message Date
53afbcecad Merge branch 'main' into feature/bots 2023-01-03 09:43:23 +08:00
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
ec020563ae refactor: mv modules/notification/actions to services/actions 2022-12-29 16:05:00 +08:00
c84094011e fix: import 2022-12-29 15:02:10 +08:00
f11a31e54e Merge branch 'main' into feature/bots 2022-12-29 14:51:21 +08:00
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
7a34d37aad fix: use ctx 2022-12-12 11:05:22 +08:00
dbef504584 fix: truncated title 2022-12-12 10:54:28 +08:00
22203eeb38 Update modules/notification/actions/helper.go
Co-authored-by: a1012112796 <1012112796@qq.com>
2022-12-12 10:48:32 +08:00
d378a78c79 Merge branch 'main' into feature/bots 2022-12-09 16:20:28 +08:00
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
223782ca4c refactor: rename to actions 2022-12-06 15:16:25 +08:00
56368f3963 refactor: use ctx in models 2022-12-06 14:15:48 +08:00
c07d0c1768 refactor: rename model 2022-12-06 13:48:09 +08:00
67c5c8868b refactor: rename import alias 2022-12-05 15:57:45 +08:00
5f74b35377 refactor: rename files 2022-12-05 15:52:32 +08:00
704f72017d refactor: rename packages 2022-12-05 15:45:38 +08:00
fdd3444c52 fix: add missing ctx 2022-12-05 14:46:34 +08:00
bd1af5b7f8 Merge branch 'main' into feature/bots 2022-12-05 14:31:00 +08:00
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
b0d6c7b86e chore: use SPDX-License-Identifier 2022-12-02 22:25:31 +08:00
ab69fdc6fe feat: more notifications 2022-12-01 14:13:22 +08:00
4487f04b14 feat: new way to notify 2022-11-30 18:24:47 +08:00
3793d55eca fix: commit status 2022-11-29 18:48:00 +08:00
04d72d3500 refactor: rename tables to bot_* 2022-11-29 12:34:23 +08:00
6f5c3feb2d fix: register bots notifier when enabled only 2022-11-28 18:24:09 +08:00
e37b3911d8 fix: use ref in options 2022-11-28 18:21:49 +08:00
66b558017f Merge branch 'main' into feature/bots 2022-11-28 17:23:53 +08:00
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
ef4b3673dd chore: golang lint 2022-11-26 22:12:52 +08:00
0bd9553219 chore: golang lint 2022-11-26 20:14:03 +08:00
1886156329 chore: remove outdated todos 2022-11-25 17:48:48 +08:00
fdd3c0434e feat: add IsForkPullRequest 2022-11-25 17:48:48 +08:00
3e8de17db3 permission 2022-11-25 17:48:48 +08:00
2ecb59c092 rename builds -> bots 2022-11-25 17:48:48 +08:00
88b0ab89d0 Gitea bot will not fire the events otherwise it may causes a forever loop 2022-11-25 17:48:48 +08:00
9b021500b0 feat: ignore bots events of repo with disabled builds 2022-11-25 17:48:47 +08:00
5e7adf2004 chore: add extra fields to Run and RunJob 2022-11-25 17:48:47 +08:00
0bc995889f Finish bots events notifications 2022-11-25 17:48:46 +08:00
dee4f2470b feat: inner build view UI 2022-11-25 17:48:46 +08:00
d6e100f6be fix: update run status 2022-11-25 17:48:46 +08:00
feab4b1601 feat: update task status 2022-11-25 17:48:45 +08:00
f75a4abc5d build UI 2022-11-25 17:48:45 +08:00
482832da76 delete unused structs 2022-11-25 17:48:45 +08:00
f355188e12 feat: parse workflows 2022-11-25 17:48:44 +08:00
5093d6b48e chore: fix mods 2022-11-25 17:48:44 +08:00
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
8255915350 chore: move core package to top folder.
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
2022-11-25 17:48:44 +08:00
1148903d79 refactor: move build status to core package 2022-11-25 17:48:44 +08:00
eac6425b2f chore(gRPC): support update stage and step method.
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
2022-11-25 17:48:44 +08:00