aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2023-09-15 14:43:39 +0800
committerGitHub <noreply@github.com>2023-09-15 06:43:39 +0000
commite5ec57cd608a81be6e0a6b897b165e9b322ceab4 (patch)
treed99fd9a4377134cebbcb2edbf4897037acd3bc9f
parent3cd719a63d3ef8125eff87f4759f2be2c7a1ec92 (diff)
downloadgitea-e5ec57cd608a81be6e0a6b897b165e9b322ceab4.tar.gz
gitea-e5ec57cd608a81be6e0a6b897b165e9b322ceab4.zip
Actions are no longer experimental, so enable them by default (#27054)
This PR makes the actions enabled by default, so people will find it easier to enable actions in repository setting.
-rw-r--r--custom/conf/app.example.ini2
-rw-r--r--docs/content/administration/config-cheat-sheet.en-us.md2
-rw-r--r--docs/content/administration/config-cheat-sheet.zh-cn.md2
-rw-r--r--modules/setting/actions.go2
4 files changed, 4 insertions, 4 deletions
diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini
index f0b0cc298b..cd6b2a914d 100644
--- a/custom/conf/app.example.ini
+++ b/custom/conf/app.example.ini
@@ -2562,7 +2562,7 @@ LEVEL = Info
; [actions]
;; Enable/Disable actions capabilities
-;ENABLED = false
+;ENABLED = true
;;
;; Default platform to get action plugins, `github` for `https://github.com`, `self` for the current Gitea instance.
;DEFAULT_ACTIONS_URL = github
diff --git a/docs/content/administration/config-cheat-sheet.en-us.md b/docs/content/administration/config-cheat-sheet.en-us.md
index acfb6ce77e..aa29f8be4b 100644
--- a/docs/content/administration/config-cheat-sheet.en-us.md
+++ b/docs/content/administration/config-cheat-sheet.en-us.md
@@ -1384,7 +1384,7 @@ PROXY_HOSTS = *.github.com
## Actions (`actions`)
-- `ENABLED`: **false**: Enable/Disable actions capabilities
+- `ENABLED`: **true**: Enable/Disable actions capabilities
- `DEFAULT_ACTIONS_URL`: **github**: Default platform to get action plugins, `github` for `https://github.com`, `self` for the current Gitea instance.
- `STORAGE_TYPE`: **local**: Storage type for actions logs, `local` for local disk or `minio` for s3 compatible object storage service, default is `local` or other name defined with `[storage.xxx]`
- `MINIO_BASE_PATH`: **actions_log/**: Minio base path on the bucket only available when STORAGE_TYPE is `minio`
diff --git a/docs/content/administration/config-cheat-sheet.zh-cn.md b/docs/content/administration/config-cheat-sheet.zh-cn.md
index b3e7d1024a..2849752c0a 100644
--- a/docs/content/administration/config-cheat-sheet.zh-cn.md
+++ b/docs/content/administration/config-cheat-sheet.zh-cn.md
@@ -1331,7 +1331,7 @@ PROXY_HOSTS = *.github.com
## Actions (`actions`)
-- `ENABLED`: **false**:启用/禁用操作功能
+- `ENABLED`: **true**:启用/禁用操作功能
- `DEFAULT_ACTIONS_URL`: **github**:获取操作插件的默认平台,`github`表示`https://github.com`,`self`表示当前的 Gitea 实例。
- `STORAGE_TYPE`: **local**:用于操作日志的存储类型,`local`表示本地磁盘,`minio`表示与S3兼容的对象存储服务,默认为`local`,或者使用定义为`[storage.xxx]`的其他名称。
- `MINIO_BASE_PATH`: **actions_log/**:Minio存储桶上的基本路径,仅在`STORAGE_TYPE`为`minio`时可用。
diff --git a/modules/setting/actions.go b/modules/setting/actions.go
index bfc502c0cb..28c84f0149 100644
--- a/modules/setting/actions.go
+++ b/modules/setting/actions.go
@@ -19,7 +19,7 @@ var (
Enabled bool
DefaultActionsURL defaultActionsURL `ini:"DEFAULT_ACTIONS_URL"`
}{
- Enabled: false,
+ Enabled: true,
DefaultActionsURL: defaultActionsURLGitHub,
}
)