Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
ccch1mneyyy
dsh-TUI
Repository navigation
Code
Issues
109
(109)
Pull requests
18
(18)
Discussions
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
dsh-TUI
/
.mergify.yml
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
43 lines (40 loc) · 2.24 KB
main
Breadcrumbs
dsh-TUI
/
.mergify.yml
Copy path
Top
File metadata and controls
Code
Blame
43 lines (40 loc) · 2.24 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
# Mergify 合并队列——`main` 的合并由它执行。
#
# 为什么需要队列:`main` 的 ruleset 要求「分支必须最新」,两个 PR 各自绿了也会
# 互相顶掉,现在靠人工 update-branch → 等 CI → 点合并。队列把这条流水线自动化:
# 更新到最新 main → 在临时 PR 上重跑 CI → 合并。
#
# 只有一条车道:PR 拿到 1 个 approving review 后自动入队。合并条件由 base 分支上
# 的 ruleset 注入(批准、ci-gate、评论已解决、批准最后一次推送),与手动合并同一
# 把尺。队列不放水,也不做任何绕过批准的通道——急修走 `gh pr merge --admin`,
# 只有 admin 能做,留痕在 PR 上。
#
# 公开仓库走 Mergify 的 Open Source 档($0,含 Merge Queue)。
merge_protections_settings:
# 自动入队。`#` 开头的条件在 YAML 里必须加引号,否则会被当成注释。
# 生效前提:在 Mergify dashboard 里为这个仓库打开 Merge Protections。
auto_merge_conditions:
- "#approved-reviews-by >= 1"
merge_queue:
# 一次只跑一条:CI 重(build + 四个回归组 + platform smoke),串行最省、
# 也最接近现在的人工合并节奏。想提速再抬 max_parallel_checks。
mode: serial
max_parallel_checks: 1
queue_rules:
- name: approved
merge_method: squash # 与仓库既有习惯一致:一个 PR 一个提交
batch_size: 1 # 不做批量合并(batch_size > 1 是付费档能力,这里也不需要)
# 队列 CI 跑在临时 PR 上,不改 PR 自己的分支:in-place 会挡掉 dependabot
# 与改 workflow 的 fork PR,也会因为推分支而让批准失效。max_checks_retries
# 大于 0 正好关掉 in-place;顺带让队列里 CI 红一次先自动重跑(0 = 关闭)。
max_checks_retries: 1
queue_conditions:
- base = main
- -draft
- -conflict
- check-success = ci-gate # PR 自己先绿,再排进队列
- label != on hold # 批准了但想先别合:打这个标签
merge_conditions:
# ruleset 注入的批准 / 评论已解决 / 批准最后一次推送会叠加在这里;
# 显式写一遍 ci-gate,是为了「CI 绿」不依赖注入的实现细节。
- check-success = ci-gate
You can’t perform that action at this time.