Files
gitea/gitea-publisher/cordis.patch.yml
T

19 lines
1.3 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# @local/gitea-publisher 的 bundle 补丁:装载宿主插件行。
# 接入信息(baseUrl/token/owner/repo)默认留空 —— 未配置时按钮显示「未配置」,不会误发。
# 配置可以写在安装后的 profile cordis.patch.yml 里覆盖同 id 行的 config,无需改这里。
- insert:
- id: gitea-publisher
name: "@local/gitea-publisher"
config:
gitea:
baseUrl: "" # 例如 http://127.0.0.1:3000(不带结尾斜杠)
username: "" # 填了就走 Basic 认证(账号密码);留空则按个人访问令牌
token: "" # 个人访问令牌,或 username 对应的账号密码
owner: "" # 目标 owner:组织名(如 XH)或个人用户名;留空 = 令牌/账号所属用户
repo: "" # 目标仓库名(不存在时可自动创建,见 createIfMissing)
branch: "main" # 推送到的分支
createIfMissing: true # 仓库不存在时自动创建(owner 是组织则建到组织下)
private: false # 自动创建时可见性:false=完全公开(默认),true=私有
force: false # true = 用快照历史强推分支(覆盖远端历史)
maxFileBytes: 31457280 # 单文件超过 30 MiB 跳过不提交