Repository navigation
fix: unstick cases wrongly waiting on a maintainer, and allow partial fixes - #8
Merged
Merged
Conversation
…and show check annotations in ci_log An issue close was ignored whenever the case had a published pull request, so a case reopened after its pull request merged stayed in needs-human forever. Now the close is ignored only while that pull request is open. ci_log returned nothing for checks without an Actions log, such as CodeQL, leaving the author unable to see the alert. It now returns the check run's annotations instead.
…ssue Every pull request closed its issue, so the author could not land a coherent part of a large report. submit_candidate and review now require resolves: fully or partly, with remaining for partly. There is no default, so the issue link cannot be left out by omission. Trusted code writes the only link line (Closes #N, or Part of #N with what remains) and turns GitHub closing keywords in the title, summary, description and commit messages into "addresses", so author text never closes an issue. Reviewers check the declaration as a claim. When a later candidate changes it, the publisher rewrites the link on the open pull request. When a partial pull request merges, the issue's comment says what remains and the issue stays open. Candidates sealed before this still close their issue.
Agent worktrees under .claude/worktrees hold other checkouts' tests, which ran against this checkout's build and failed, and slowed the real suite enough to time it out.
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.
Several production cases showed "Needs a maintainer" or "Changes requested" when nothing a person could do would move them on. This fixes the three causes found, and adds partial-fix pull requests.
Changes
Issue closes after the pull request has closed. A closed issue was ignored whenever the case had a published pull request, on the assumption that the pull request's own close would end the case. On emdash-cms/emdash#4313 the pull request had merged weeks earlier, the case was reopened by relabelling, and the later issue close left it stuck. Now an issue close is ignored only while the pull request is still open. When it has closed, the case ends (and is marked merged if it was).
Check annotations in
ci_log. CodeQL and similar checks have no Actions log, soci_logreturned nothing and the author handed off asking a maintainer for the alert (emdash-cms/emdash#3991). It now returns the check run's annotations (file, line, level, message) when there's no log.New
update_from_branchtool. The author's checkout always restores from its own last candidate. Commits others push to the branch were only folded in at publication, so the author couldn't read or build on them (emdash-cms/emdash#4194 handed off for this). The tool merges the pull request's current head into the work, leaving conflict markers to resolve, and the next candidate builds on top. It refuses while an unpublished default-branch merge is pending. The "Branch updated" message now mentions it.Partial fixes.
submit_candidateandreviewnow requireresolves: fullyorpartly(withremaining). Trusted code writes the only issue link (Closes #NorPart of #N) and neutralises closing keywords in author text, so a partial pull request leaves its issue open and says what remains.Tests.
.claudeis excluded from the suite, so agent worktrees' copies of the tests don't run against this build.Testing
ci_log,update_from_branchbuilding on a maintainer's push, plus partial-fix coveragepnpm checkandpnpm testpass locally