Label resolver: one of its three head comparisons does not fold case, and edited PRs never reconcile

Ouverte
#2,655 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 3 jours

Personne n'a encore pris cette issue.

Évaluation

Difficulté
2/5
Temps estimé
Moins d'une heure
Accessibilité débutants
25/100
Type d'issue
Bug
Clarté
Clairement spécifiée
Activité
Active
Stack technique
github-actions, typescript
Domaine
ci-cd

Piste de recherche

The pull_request_target types are listed in label-pr-review-state.yml (lines 21-33), and the head-branch comparison is in the resolver those tests exercise. Read pr-review-state-workflow.test.ts (around lines 4398-4410) and fork-review-followup-workflow.test.ts (around lines 216-230). Done means both case-insensitive matching and the edited type are covered by passing tests. Open PR #2489 already carries the resolver fix and awaits approval, so coordinate there first.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

What happens

  1. The resolver that decides whether a workflow_run belongs to a PR compares head branch, head SHA and base repository; two fold case and pr.head?.ref === run.head_branch does not. A run whose branch differs only in case resolves to "no PR", and that PR never learns its checks finished.

  2. Reconcile never runs when a PR's title or body is edited. The pull_request_target types are opened, reopened, ready_for_review, converted_to_draft, synchronize, review_requested, review_request_removed, labeled, unlabeled (label-pr-review-state.yml:21-33) - no edited. A description fix does not refresh the labels a maintainer reads.

Evidence

  • Case: two CI-run tests in #2489 - pr-review-state-workflow.test.ts:4398-4410 and fork-review-followup-workflow.test.ts:216-230.
  • edited: the trigger block above, read at head 2b70528c00; no edited appears under pull_request_target.
  • is:issue is:open workflow_run reconcile labels returns nothing, and #1707, #2046, #2086 and #2133 - cited by these workflows' comments - are all closed. Nothing open tracks either defect, which is why #2489 says "Closes: # none".

Where the fix is

#2489 carries the resolver fix (4 files, +433/-17; 23/23 checks success at 18:30Z) and waits on a human approval. Adding edited to that same trigger block is a one-line change and is not part of that PR.

Limits

  • Not a claim that the label service fails generally: it reconciles on push, review and comment events plus the hourly sweep. The gaps are case-sensitive branch matching and the missing edited type.
  • A fork account cannot label, merge or edit a workflow file; this states only what the files say.
Langage dominant
TypeScript
Étoiles
2k
Forks
301
Merge moyen
3 j 14 h
PR mergées (30 j)
103

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de Zoo-Code-Org/Zoo-Code

Toutes les issues de Zoo-Code-Org/Zoo-Code

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.