-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgit-workflow.yaml
More file actions
139 lines (128 loc) · 2.89 KB
/
Copy pathgit-workflow.yaml
File metadata and controls
139 lines (128 loc) · 2.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# Git Workflow Umbrella Skill 配置
# ── 通过 GIT_WORKFLOW_CONFIG 环境变量指定路径,或放在脚本同目录
# ── Copyright (c) 2026 Pu Junhan
# 推送管理配置
push:
# 是否启用预检
precheck: true
# 推送超时时间(秒)
timeout: 300
# 重试次数
retry_count: 3
# 推送失败时是否使用PR回退
pr_fallback: true
# 分支管理配置
branch:
# 保护分支列表
protection:
- main
- master
- develop
- release
- production
# 是否自动清理已合并分支
auto_cleanup: true
# 分支命名规范
naming:
feature: "feature/"
bugfix: "bugfix/"
hotfix: "hotfix/"
release: "release/"
# 分支清理选项
cleanup:
# 是否交互式清理
interactive: true
# 不实际删除分支
dry_run: false
# 过期天数
expire_days: 30
# 是否清理远程跟踪引用
clean_remote: true
# 是否清理已合并分支
clean_merged: true
# 排除的分支
exclude:
- main
- master
- develop
- release
- production
- gh-pages
# Worktree 管理配置
worktree:
# 是否强制隔离
isolation: true
# Worktree 基础路径
base_path: "~/.local/share/git-workflow/worktrees"
# 是否自动清理
auto_cleanup: true
# 是否保护主worktree
main_protection: true
# 发版预检配置
release:
# 是否启用预检
precheck: true
# 是否要求测试通过
required_tests: true
# 是否要求文档完整
required_docs: true
# 是否要求构建成功
required_build: true
# 安全审查配置
security:
# 是否启用审计
audit: true
# 是否记录操作
log_operations: true
# 是否监控异常
monitor_anomalies: true
# 敏感操作是否需要确认
sensitive_operations_confirm: true
# 清理工具配置
cleanup:
# 是否自动清理
auto_cleanup: true
# 清理间隔(天)
cleanup_interval: 7
# 临时分支保留天数
temp_branch_retention: 30
# Worktree保留天数
worktree_retention: 30
# 历史管理配置 (v2.0 新增)
history:
# 撤销前是否自动备份
auto_backup: true
# 撤销操作是否需要确认
backup_on_undo: true
# 日志配置
logging:
# 日志目录
log_dir: "~/.local/share/git-workflow/logs"
# 日志级别: DEBUG, INFO, WARN, ERROR
log_level: "INFO"
# 是否详细输出
verbose: false
# 日志保留天数
retention_days: 30
# 备份配置
backup:
# 备份目录
backup_dir: "~/.local/share/git-workflow/backups"
# 是否自动备份
auto_backup: true
# 备份保留天数
retention_days: 30
# 通知配置
notification:
enabled: true
# 通知方式
methods:
- console
- log
# 通知级别
levels:
- error
- warning
- success
# 版本号
version: "2.0.0"