erik
71141a5ff3
WIP Refactoring and solving (adding) ToDos
2024-04-12 14:33:47 +02:00
erik
af0d0f7745
Merge branch 'forgejo' into forgejo-federated-star
2024-04-09 15:38:11 +02:00
erik
97343470bc
Merge branch 'forgejo' into forgejo-federated-star
2024-04-09 10:42:42 +02:00
Zettat123
87870ade49
Remove scheduled action tasks if the repo is archived ( #30224 )
...
Fix #30220
(cherry picked from commit 1ef2eb50d82d07b1e4ff312ef58953d1bba2437a)
2024-04-07 15:40:31 +02:00
oliverpool
04a398a1af
[REFACTOR] webhook shared code to prevent import cycles
2024-04-04 08:24:33 +02:00
Clemens
2b7a22afb3
renamed FederatedRepo to FollowingRepo
2024-04-03 12:26:33 +02:00
erik
daccaed157
Rename federatedRepo to followingRepo
2024-04-03 12:08:44 +02:00
Clemens
d240a9bc90
trim trailing semicolon
2024-04-03 10:25:40 +02:00
Clemens
5671566df6
adjust fed repo splitting
2024-04-03 09:53:19 +02:00
erik
5edf7d0e61
Also trim whitespaces within the list items
2024-04-02 17:33:32 +02:00
Clemens
8b56159042
prevent error when setting no fed repos
2024-04-02 11:13:50 +02:00
Earl Warren
ec091b59af
Merge pull request '[FEAT] Configure if protected branch rule should apply to admins' ( #2867 ) from gusted/forgejo-protectedbranch-admins into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/2867
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
2024-04-01 19:28:29 +00:00
oliverpool
69115baf41
[REFACTOR] use Icon from interface in webhook list
2024-03-30 16:00:06 +01:00
oliverpool
120fa61a0a
[REFACTOR] add Icon to webhook.Interface
2024-03-30 15:59:56 +01:00
Gusted
79b7089360
[FEAT] Configure if protected branch rule should apply to admins
...
- Currently protected branch rules do not apply to admins, however in
some cases (like in the case of Forgejo project) you might also want to
apply these rules to admins to avoid accidental merges.
- Add new option to configure this on a per-rule basis.
- Adds integration tests.
- Resolves #65
2024-03-29 00:21:49 +01:00
Michael Jerger
4d5c8b5563
refactor services
2024-03-28 15:00:55 +01:00
Earl Warren
1684f0e5bf
Merge pull request '[PERFORMANCE] git check-attr on bare repo if supported' ( #2763 ) from oliverpool/forgejo:check_attr_bare into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/2763
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
2024-03-28 11:14:52 +00:00
oliverpool
3c81f7478c
[PERFORMANCE] git check-attr on bare repo if supported
2024-03-28 10:52:51 +01:00
oliverpool
bc36f85b5f
[REFACTOR] webhook repo naming consistency
2024-03-27 22:26:55 +01:00
oliverpool
9c3611ec50
[REFACTOR] simplify checkHookType
2024-03-27 22:26:55 +01:00
oliverpool
635230ca5d
[TESTS] webhook forms keep submitted data when invalid
2024-03-27 22:26:55 +01:00
oliverpool
1e050d01c0
[REFACTOR] merge once-called functions
2024-03-27 22:26:54 +01:00
oliverpool
4ab341e971
[REFACTOR] webhook gogs endpoint
2024-03-27 15:38:39 +01:00
oliverpool
dce754cde1
[REFACTOR] webhook packagist endpoint
2024-03-27 15:38:39 +01:00
oliverpool
36a1d37532
[REFACTOR] webhook wechatwork endpoint
2024-03-27 15:38:39 +01:00
oliverpool
6b719f08d0
[REFACTOR] webhook feishu endpoint
2024-03-27 15:38:39 +01:00
oliverpool
97f0ad49ff
[REFACTOR] webhook msteams endpoint
2024-03-27 15:38:39 +01:00
oliverpool
46b71ec709
[REFACTOR] webhook telegram endpoint
2024-03-27 15:38:39 +01:00
oliverpool
9dff719523
[REFACTOR] webhook dingtalk endpoint
2024-03-27 15:38:39 +01:00
oliverpool
c3f8e6ed60
[REFACTOR] webhook discord endpoint
2024-03-27 15:38:39 +01:00
oliverpool
6f00821f3d
[REFACTOR] webhook slack endpoints
2024-03-27 15:38:38 +01:00
oliverpool
7e0965b02c
[REFACTOR] webhook forgejo/gitea endpoints
2024-03-27 15:38:38 +01:00
oliverpool
8dfbbfef07
[REFACTOR] webhook matrix endpoints
2024-03-27 15:38:38 +01:00
Earl Warren
e41e18f87e
Merge pull request '[REFACTOR] webhook.Handler interface' ( #2758 ) from oliverpool/forgejo:webhook_2_interface into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/2758
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
2024-03-27 13:45:04 +00:00
Earl Warren
ac672fc3ff
Merge pull request '[ACTIONS] port scheduled actions from Gitea' ( #2826 ) from earl-warren/forgejo:wip-gitea-schedule into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/2826
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
2024-03-27 06:23:56 +00:00
Earl Warren
a117dfd2b1
[ACTIONS] port scheduled actions from Gitea
...
Refs: https://codeberg.org/forgejo/forgejo/issues/2798
2024-03-26 16:51:56 +01:00
Gusted
0f79122053
[BUG] Detect protected branch on branch rename
...
- If a branch cannot be renamed due to a protected branch rule, show
this error in the UI instead of throwing an internal server error.
- Add integration test (also simplify the existing one).
- Resolves #2751
2024-03-26 15:58:52 +01:00
erik
35d3fc199c
Rename to StoreFederatedRepo*
2024-03-25 16:35:35 +01:00
erik
ca7d1c6f78
Localize error messages
2024-03-25 16:30:02 +01:00
Lunny Xiao
3b3747ffe8
Fix schedule tasks bugs ( #28691 )
...
Fix #28157
This PR fix the possible bugs about actions schedule.
- Move `UpdateRepositoryUnit` and `SetRepoDefaultBranch` from models to
service layer
- Remove schedules plan from database and cancel waiting & running
schedules tasks in this repository when actions unit has been disabled
or global disabled.
- Remove schedules plan from database and cancel waiting & running
schedules tasks in this repository when default branch changed.
(cherry picked from commit 97292da960
)
Conflicts:
modules/actions/github.go
routers/web/repo/setting/default_branch.go
routers/web/repo/setting/setting.go
services/repository/branch.go
services/repository/setting.go
tests/integration/actions_trigger_test.go
2024-03-25 16:25:02 +01:00
oliverpool
702152bfde
[REFACTOR] webhook.Handler interface
2024-03-24 10:35:06 +01:00
oliverpool
33a3ee1955
[TESTS] webhook forms creation and edition
2024-03-23 23:02:06 +01:00
Michael Jerger
950dcd959e
implement storage of federated_repo
2024-03-22 20:14:20 +01:00
erik
0f27f0a05b
Add discussion ToDo
2024-03-22 17:49:29 +01:00
erik
288dda282c
Add more ToDos
2024-03-22 17:41:36 +01:00
Michael Jerger
4938d38e39
more review
2024-03-22 08:08:54 +01:00
erik
84f2aab570
Add todo
2024-03-21 14:42:38 +01:00
erik
f327c0da24
Cap max size of federated repo list at 2048 bytes
2024-03-21 12:18:29 +01:00
erik
6055b4fca0
Add todo
2024-03-21 11:42:12 +01:00
erik
d1190423bb
Implement single Repo validation and saving POC
2024-03-20 13:21:17 +01:00