The review pass links the wrong issue when a PR body quotes an issue reference #498
Labels
No labels
Agent
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No assignees
1 participant
Notifications
Total time spent: 7 minutes 53 seconds
Due date
igor
7 minutes 53 seconds
No due date set.
Dependencies
No dependencies set
Reference
joshtronic/igor#498
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
review_closed_issue_number(lib/review.sh:55) takes the firstclose/fix/resolve +
#Nmatch anywhere in the PR body:On PR #497 that picked up #490 -- a README/Mirrors docs ticket -- because
the body's root-cause trace quotes the example phrase "This PR fixes #490 by
adding the missing guard" many lines above the actual
Part of #496line.The shadow reviewer then read #490's text as the requirement and said so
explicitly: it could not verify the PR's deliverables against the real ticket.
It only bites PRs whose body discusses an issue reference rather than only
declaring one, which is rare but not exotic -- any fix to the closing-keyword
machinery is going to quote one. Two directions, both cheap:
Closes #Nline goes at the bottom, so it would win over prose above it.<!-- agent-issue=N -->marker at PR open and read thatfirst, falling back to the keyword scan.
(2) is unambiguous; (1) is a one-word change. Which do you want, or is this
not worth spending on?
Filed from the #497 rework round -- no code change made there.
#Nmatch, not the first, when the shadow reviewer resolves a PR's linked issue #500#Nmatch, not the first, when the shadow reviewer resolves a PR's linked issue #500