summaryrefslogtreecommitdiffstats
path: root/models/unit
diff options
context:
space:
mode:
authorJason Song <i@wolfogre.com>2023-04-03 12:05:37 +0800
committerGitHub <noreply@github.com>2023-04-03 00:05:37 -0400
commit977ef215fab05c79bd3fcd9bf3679976a0210015 (patch)
treefffbef412151ab838fea9fc71e97d960b439f3c5 /models/unit
parentc2ff2a472435c9735b8fef78c3797e54b99c73ad (diff)
downloadgitea-977ef215fab05c79bd3fcd9bf3679976a0210015.tar.gz
gitea-977ef215fab05c79bd3fcd9bf3679976a0210015.zip
Rename actions unit to `repo.actions` and add docs for it (#23733)
I neglected that the `NameKey` of `Unit` is not only for translation, but also configuration. So it should be `repo.actions` to maintain consistency. ## :warning: BREAKING :warning: If users already use `actions.actions` in `DISABLED_REPO_UNITS` or `DEFAULT_REPO_UNITS`, it will be treated as an invalid unit key.
Diffstat (limited to 'models/unit')
-rw-r--r--models/unit/unit.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/unit/unit.go b/models/unit/unit.go
index a2a9079dc2..883f443cbe 100644
--- a/models/unit/unit.go
+++ b/models/unit/unit.go
@@ -312,7 +312,7 @@ var (
UnitActions = Unit{
TypeActions,
- "actions.actions",
+ "repo.actions",
"/actions",
"actions.unit.desc",
7,