0
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-01-29 19:50:13 +01:00
Commit graph

4 commits

Author SHA1 Message Date
wxiaoguang
f6e50abd65
Fix data-race during testing ()
Fix 

(cherry picked from commit 47accfebbd69e5f47d1b97a3e39cf181fab7e597)

Conflicts:
	models/unit/unit.go
	trivial context conflict because of
	e07b0e75ff Add a direct link from repo header to unit settings
2024-05-26 18:28:26 +02:00
Lunny Xiao
7ff1f2527c
Make actions default enabled for newly created repository if global configuraion enabled () 2023-10-10 14:45:31 +00:00
Lunny Xiao
e5a8ebc0ed
Require at least one unit to be enabled ()
Don't remember why the previous decision that `Code` and `Release` are
non-disable units globally. Since now every unit include `Code` could be
disabled, maybe we should have a new rule that the repo should have at
least one unit. So any unit could be disabled.

Fixes 
Fixes 

---------

Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: yp05327 <576951401@qq.com>
2023-05-06 17:39:06 +08:00
Jason Song
d67e40684f
Improve LoadUnitConfig to handle invalid or duplicate units ()
The old code just parses an invalid key to `TypeInvalid` and uses it as
normal, and duplicate keys will be kept.

So this PR will ignore invalid key and log warning and also deduplicate
valid units.
2023-04-03 16:42:38 +08:00