跳到主内容
精选75GitHub Changelog云与平台

GitHub 新增:自动将分支保护规则迁移为仓库规则集

Automatically migrate branch protection rules to repository rulesets

原文
推荐理由

GitHub 用户注意了:现在可以直接把分支保护规则一键迁移到规则集,省去手动重建的麻烦。建议在仓库设置里试试这个转换工具,尤其是管理多个仓库的团队,能显著提升策略管理效率。

You can now convert your existing branch protection rules to repository rulesets directly from your repository settings. This helps you migrate to GitHub’s more flexible and scalable policy framework without manually recreating each rule.

As we continue investing in rulesets as the foundation for repository governance on GitHub, this tool makes it easy to bring your existing policies forward.

How it works

Navigate to Settings → Branches in your repository, find the classic rule under Branch protection rules, and click Convert to ruleset. GitHub maps your existing branch protection configuration including required reviews, status checks, and push restrictions into equivalent ruleset rules.

Why migrate to rulesets?

Rulesets offer several advantages over classic branch protections:

  • Apply rules across multiple branches with pattern matching.
  • Layer multiple rulesets for granular policy control.
  • Manage rulesets at the organization or enterprise level.
  • Configure fine-grained bypass permissions for users, teams, and apps.

Availability

This feature is available for all repositories where rulesets are available. Learn more about repository rulesets.

Join the discussion within GitHub Community.

The post Automatically migrate branch protection rules to repository rulesets appeared first on The GitHub Blog.

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

另一事件,读法相近