Repository navigation
🐛 [fix] github-read, approval: diff line splitting and non-default-base links - #67
Merged
Merged
Conversation
- validate() split with splitlines(), which also breaks on VT, FF, FS/GS/RS, NEL, U+2028/9, so valid diffs read as 'diff hunk data missing' and halted the board - read() ran gh with text=True; universal newlines turned a lone \r into \n; decode stdout/stderr by hand instead - regression test: a diff whose changed lines hold those characters and a lone CR is complete evidence Closes #62 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- GitHub fills closingIssuesReferences only for PRs into the default branch, so a done reply on a PR into e.g. staging was refused as 'request issue is not linked to this PR' - read baseRefName, body and defaultBranchRef in the same head-pinned snapshot; off the default base, also take same-repo close/fix/resolve #N references from the body - other-repo references are ignored; trust, permission, pinned-head and newest-request checks are unchanged - regression tests for body keywords, no keyword, other-repo refs and default-base behaviour; GraphQL stubs carry the new fields Closes #63 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
⏳ In review · round 1 · ✅ 4/4 AC · Closes #62 · Closes #63
Problem
scripts/super-board-github-read.py(diff reads) andscripts/super-board-approval.py(human approval)\rstaging)diff hunk data missing, and after 3 attempts the board halts (exit 79)donenever counts; approval answersrequest issue is not linked to this PRSolution
\nonly;splitlines()also broke on VT, FF, U+2028 and friendsghoutput by hand;text=Trueuniversal newlines turned a lone\rinto\nbaseRefName,bodyanddefaultBranchRefin the same head-pinned snapshotclose/fix/resolve #Nreferences from the body; other-repo refs are ignoredAcceptance criteria
↳
tests/test_github_reads.pytest_diff_lines_with_line_like_characters_are_complete_evidence(fails on main)Closes #Nin its body approves↳
tests/test_approval.pytest_non_default_base_takes_closing_keywords_from_body(fails on main)↳
tests/test_approval.pyGitHubTestsnon-default/default-base cases↳
bash tests/run-safety.sh→ PASS: 57 safety suitesIteration history
bfbef1c#62 ·9802af6#63Risk
🟢 Low · diff validation only gets more permissive about in-line characters; approval adds a body fallback only when base differs from default, all other checks unchanged. Closing-keyword parsing still exists separately in the merge gate and pre-flight (not unified here).
Closes #62
Closes #63
🤖 Generated with Claude Code