bug: 缩进代码块或行内代码中的 `<!--` 会吞掉后续 PR 章节
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- Medio día
- Aptitud para principiantes
- 45/100
Línea de trabajo
Start with .github/scripts/validate_pr_body.py around line 52, where strip_html_comments runs before inline or indented code is recognised, then read complete_automated_pr_body.py near lines 26 and 38. Run test_validate_pr_body.py and add a case where an inline <!-- or a four-space indented <!-- line is followed by real ## Summary and ## Testing headings. Done when those headings are parsed and the completion script no longer raises SystemExit.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
问题位置
.github/scripts/validate_pr_body.py:52
触发条件
自动指导 PR 的证据摘要包含四空格缩进代码或行内代码 <!--,例如说明仓库隐藏 marker 的写法,且该行后续没有 -->。
实际影响
校验器会把该行之后所有实际的 ## Summary、## Testing 等标题都当成 HTML 注释;自动补全器追加的默认章节仍不可见,最终抛出 SystemExit,workflow 在已推送分支后无法创建或更新 PR。
核实依据
第 52 行在识别行内代码或缩进代码前直接调用 strip_html_comments;该函数只按字符串查找 <!-- 和 -->,不会跳过反引号或四空格代码块。complete_automated_pr_body.py 第 26 行反复调用 parse_sections,并在第 38 行用同一结果执行 validate_body。实测合法正文 Intro <!-- ... 和四空格 <!-- ... 都会让补全抛出 PR body needs non-empty sections;现有 test_validate_pr_body.py 只覆盖 fenced code 中的 HTML 注释。
扫描提交:e777f60106e401b086925270af317a4b36722be0;扫描日期:2026-11-25(北京时间);轮巡分片:55/90。
- Lenguaje dominante
- Python
- Estrellas
- 171
- Forks
- 24
- Merge medio
- 3 h 13 min
- PR fusionados (30 d)
- 13
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Terry-Mao/AICodingFlow
-
area:specs area:tests area:workflow bug repro:high triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Terry-Mao/AICodingFlow#378 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug: 否定或疑问的维护者回复会被误判为 dismissAbiertoarea:tests area:workflow bug repro:high triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Terry-Mao/AICodingFlow#377 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area:tests area:workflow bug repro:high triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Terry-Mao/AICodingFlow#372 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area:tests area:workflow bug repro:high triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Terry-Mao/AICodingFlow#371 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area:tests area:workflow bug repro:high triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Terry-Mao/AICodingFlow#369 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de Terry-Mao/AICodingFlow
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 69/100
anderspitman/awesome-tunneling#330 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
521xueweihan/HelloGitHub#4676 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
Los mantenedores suelen responder en 18 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
pandas-dev/pandas-stubs#2155 ·
Los mantenedores suelen responder en 1 día
-
essreduce
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
Los mantenedores suelen responder en 1 día