Skip to main content

使用GitHub大规模提高代码质量

不一致的代码质量会降低每个团队的速度,并增加你不容易看到的风险。 GitHub Code Quality 在合并问题并报告整个组织中的代码运行状况之前,会捕获问题。 遵循此采用路径来评估该功能、运行试点、证明其价值并大规模推出。

1

Phase 1: Evaluate and build your business case

3 文章1-2 hours

Evaluate Code Quality alongside other code quality tools to determine whether it meets your organization's needs and build a business case. Review its use cases, supported languages, quality findings, and code coverage reporting. Learn how usage is billed and which cost controls are available before you plan your budget.

  1. GitHub 代码质量
  2. GitHub Code Quality 计费
  3. 查看和管理 GitHub Code Quality 成本
2

Phase 2: Plan your pilot

2 文章2-4 hours

Select a small, active group of repositories for your pilot and decide how you'll measure success. Identify the teams and repository owners who will provide feedback, prepare them for the findings they'll see on pull requests, and plan how you'll communicate remediation options, gather feedback, and monitor costs during the pilot.

  1. 面向各类组织和企业的代码质量赋能
  2. 防止默认分支上出现代码质量问题
3

Phase 3: Launch your pilot

4 文章1-2 hours

Allow Code Quality for your enterprise, then enable it for your pilot repositories. Configure thresholds for Code Quality findings and code coverage. Start the ruleset in evaluate mode to see which pull requests would be blocked, adjust the thresholds based on the results, then enable enforcement.

  1. 允许在您的企业中使用 GitHub Code Quality
  2. 启用 GitHub Code Quality
  3. 为拉取请求设置代码质量阈值
  4. 为拉取请求设置代码覆盖率阈值
4

Phase 4: Assess the pilot and decide

4 文章1-2 weeks

Compare the pilot results with the success measures you defined. Review code health at the repository and organization level, monitor costs, and gather feedback from developers. Use what you learn to decide whether to expand, adjust, or stop the rollout.

  1. 探索组织中的 GitHub 代码质量结果
  2. 解读存储库的代码质量评估结果
  3. 查看和管理 GitHub Code Quality 成本
  4. 禁用 GitHub Code Quality
5

Phase 5: Scale and optimize

3 文章Ongoing

Expand Code Quality to more repositories based on what you learned from the pilot. As you expand, adjust organization-level enablement and enforcement, and continue to monitor code health, license usage, GitHub Actions minutes, and GitHub AI Credits usage.

  1. 大规模推出 GitHub Code Quality
  2. 探索组织中的 GitHub 代码质量结果
  3. 查看和管理 GitHub Code Quality 成本
1

Phase 1: Evaluate and build your business case

3 文章1-2 hours

Evaluate Code Quality alongside other code quality tools to determine whether it meets your organization's needs and build a business case. Review its use cases, supported languages, quality findings, and code coverage reporting. Learn how usage is billed and which cost controls are available before you plan your budget.

  1. GitHub 代码质量
  2. GitHub Code Quality 计费
  3. 查看和管理 GitHub Code Quality 成本
2

Phase 2: Plan your pilot

2 文章2-4 hours

Select a small, active group of repositories for your pilot and decide how you'll measure success. Identify the teams and repository owners who will provide feedback, prepare them for the findings they'll see on pull requests, and plan how you'll communicate remediation options, gather feedback, and monitor costs during the pilot.

  1. 面向各类组织和企业的代码质量赋能
  2. 防止默认分支上出现代码质量问题
3

Phase 3: Launch your pilot

4 文章1-2 hours

Allow Code Quality for your enterprise, then enable it for your pilot repositories. Configure thresholds for Code Quality findings and code coverage. Start the ruleset in evaluate mode to see which pull requests would be blocked, adjust the thresholds based on the results, then enable enforcement.

  1. 允许在您的企业中使用 GitHub Code Quality
  2. 启用 GitHub Code Quality
  3. 为拉取请求设置代码质量阈值
  4. 为拉取请求设置代码覆盖率阈值
4

Phase 4: Assess the pilot and decide

4 文章1-2 weeks

Compare the pilot results with the success measures you defined. Review code health at the repository and organization level, monitor costs, and gather feedback from developers. Use what you learn to decide whether to expand, adjust, or stop the rollout.

  1. 探索组织中的 GitHub 代码质量结果
  2. 解读存储库的代码质量评估结果
  3. 查看和管理 GitHub Code Quality 成本
  4. 禁用 GitHub Code Quality
5

Phase 5: Scale and optimize

3 文章Ongoing

Expand Code Quality to more repositories based on what you learned from the pilot. As you expand, adjust organization-level enablement and enforcement, and continue to monitor code health, license usage, GitHub Actions minutes, and GitHub AI Credits usage.

  1. 大规模推出 GitHub Code Quality
  2. 探索组织中的 GitHub 代码质量结果
  3. 查看和管理 GitHub Code Quality 成本