# Gitea 仓库设置
repository:
  name: mgmt
  description: "基础设施管理项目 - OpenTofu + Ansible + Nomad + Podman"
  website: ""
  default_branch: main
  
  # 功能开关
  has_issues: true
  has_wiki: true
  has_projects: true
  has_actions: true
  
  # 权限设置
  private: false
  allow_merge_commits: true
  allow_squash_merge: true
  allow_rebase_merge: true
  delete_branch_on_merge: true

# Actions 设置
actions:
  enabled: true
  allow_fork_pull_request_run: true
  default_actions_url: "https://gitea.com"

# 分支保护
branch_protection:
  main:
    enable_push: false
    enable_push_whitelist: true
    push_whitelist_usernames: ["ben"]
    require_signed_commits: false
    enable_merge_whitelist: true
    merge_whitelist_usernames: ["ben"]
    enable_status_check: true
    status_check_contexts: ["validate", "plan"]
    enable_approvals_whitelist: false
    approvals_whitelist_usernames: []
    block_on_rejected_reviews: true
    dismiss_stale_approvals: true
    require_signed_commits: false
