bug: 固定更新分支从当前检出重建并强推,覆盖已打开 PR 的未合并 guidance

Aperta
#364 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
65/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
bash, git, github-actions, python
Ambito
ci-cd

Direzione di ricerca

Start by reading .github/workflows/update-triage.yml around lines 220–224 and 455–459, then compare the git switch and push steps in update-dedupe and update-pr-review. Check how reruns behave when an open PR already has commits, and add coverage for that case. Done means rerunning an update preserves earlier guidance and review commits in the PR branch.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

问题位置

.github/workflows/update-triage.yml:221

触发条件

feat/update-triage 已有上一次运行创建的 open PR,随后再次 dispatch,且本次只修改一个允许文件或未重新生成上一次的另一个文件。

实际影响

远端分支被重置到当前默认分支的单次提交并强制推送,上一轮 PR 的其它 guidance 改动或人工 review 提交从 PR 中消失,更新结果不再累计。

核实依据

第 220 行把远端分支 fetch 到 refs/remotes/origin/feat/update-triage,但第 221 行 git switch -C "$branch" 未指定 origin/$branch,因此从当前默认分支 HEAD 重建本地分支;第 223-224 行提交后 push --force-with-lease 替换远端分支。第 455-459 行的 Claude 发布路径重复相同逻辑,update-dedupe 和 update-pr-review 也使用同一模式;测试没有覆盖已有开放 PR 时再次运行的行为。

扫描提交:e777f60106e401b086925270af317a4b36722be0;扫描日期:2026-11-20(北京时间);轮巡分片:50/90。

Lingua principale
Python
Stelle
171
Fork
24
Merge medio
3h 13m
PR unite (30g)
13

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Terry-Mao/AICodingFlow

Tutte le issue di Terry-Mao/AICodingFlow

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.