-
Notifications
You must be signed in to change notification settings - Fork 1
fix: remove overly broad acceptance heading pattern #1653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
6adb1b2
0ed5e38
12f059d
a373a6e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -860,7 +860,6 @@ function countCheckboxes(markdown) { | |
| // must be independently verified, not auto-checked by parent cascade. | ||
| const ACCEPTANCE_HEADING_PATTERNS = [ | ||
| /acceptance\s*criteria/i, | ||
| /acceptance/i, | ||
| /definition\s*of\s*done/i, | ||
| /done\s*criteria/i, | ||
|
Comment on lines
861
to
864
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Dropping the broad acceptance pattern also removes detection of the supported Useful? React with 👍 / 👎. |
||
| ]; | ||
|
|
@@ -3583,10 +3582,12 @@ async function updateKeepaliveLoopSummary({ github: rawGithub, context, core, in | |
| : {}; | ||
| if (tasksUnchecked > 0) { | ||
| verification = {}; | ||
| } else if (reason === 'verify-acceptance') { | ||
| } else if (reason === 'verify-acceptance' || reason === 'fix-verification-gaps') { | ||
| const previousAttemptCount = toNumber(verification?.attempt_count, 0); | ||
| verification = { | ||
| status: runResult === 'success' ? 'done' : 'failed', | ||
|
Comment on lines
+3585
to
3588
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This change now treats Useful? React with 👍 / 👎. |
||
| iteration: nextIteration, | ||
| attempt_count: previousAttemptCount + 1, | ||
| last_result: runResult || '', | ||
| updated_at: new Date().toISOString(), | ||
| }; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR description states that the removed pattern was
/^acceptance$/i(with anchors), but the actual removed pattern shown in the diff and code history is/acceptance/i(without anchors). The pattern without anchors is actually MORE overly broad than the description suggests, since it matches "acceptance" anywhere in the heading text, not just as an exact match. While the fix is correct, the PR description should be updated to accurately reflect which pattern was removed.