Add configurable project quality-gate policies

未关闭
#237 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 4 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
typescript
领域
devtools

调研方向

No files or test paths are named; first read the existing merge-readiness and structured-findings implementation, then trace the project settings and merge-dialog entry points. The dependencies listed are advisory merge summaries, structured findings, and coverage deltas. Done means configured policies evaluate deterministically, report failed rules and overrides accessibly, and have unit tests covering the stated acceptance criteria.

由索引模型根据 Issue 内容生成。

描述

enhancement ux

Context

After merge readiness and structured findings are available, projects should be able to decide which signals are informational and which must pass before merging.

GitHub Code Quality uses ruleset thresholds and supports gradual evaluation before enforcement:
https://docs.github.com/en/code-security/how-tos/maintain-quality-code/set-pr-thresholds

Dependencies

  • Advisory “Ready to merge?” summary
  • Structured quality findings
  • Coverage deltas for coverage-based rules

Scope

  • Add per-project policy modes: Off, Advisory, and Block merge.
  • Allow policy rules for:
    • required structured verification
    • PR checks
    • maximum unresolved finding severity
    • minimum coverage and maximum coverage regression
  • Default existing projects to Advisory.
  • Show exactly which policy rule failed in the merge dialog.
  • Provide an explicit, auditable override path where policy allows overrides.

Non-goals

  • Organization-level administration
  • Cloud policy synchronization
  • Opaque aggregate quality scores
  • Letting subjective AI-only notes block merges by default

Acceptance criteria

  • Existing projects retain current merge behavior after upgrade.
  • Advisory mode never disables merge but clearly reports failures.
  • Blocking mode disables merge only for configured, evaluated rules.
  • Missing/unavailable signals have an explicit configurable treatment.
  • Policy evaluation is deterministic and unit tested.
  • Settings and merge UI are keyboard accessible and explain overrides.
主要语言
TypeScript
星标
1k
派生
144
平均合并
4 天 19 小时
30 天内合并 PR
28

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

johannesjo/parallel-code 的其他 Issue

查看 johannesjo/parallel-code 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。