Skip to content

fix: handle EOF#255

Merged
leggetter merged 2 commits into
mainfrom
refactor/issue-auto-implement-comment-body
Mar 16, 2026
Merged

fix: handle EOF#255
leggetter merged 2 commits into
mainfrom
refactor/issue-auto-implement-comment-body

Conversation

@leggetter

Copy link
Copy Markdown
Collaborator

This pull request enhances the "issue-auto-implement" GitHub Action to support scenarios where no code changes are made in response to a review or issue. It introduces a .comment_body file for Claude to communicate no-change rationales or requests for clarification, updates documentation and workflow logic to handle this new flow, and ensures that PR comments accurately reflect whether code changes were made.

Support for no-change/clarification scenarios:

  • Added support for Claude to write a .comment_body file when no code changes are needed (e.g., reviewer feedback is a question, current approach is preferred, or clarification is required). The workflow now posts this comment on the PR instead of creating a commit or PR when appropriate. (.github/actions/issue-auto-implement/.gitignore, .github/actions/issue-auto-implement/assess/src/implement.ts, [1] [2] [3] [4] [5]

Workflow and output logic updates:

  • Modified the workflow to distinguish between code changes and no-change scenarios, using a changes_pushed output and posting the appropriate PR comment based on whether code changes were made. (.github/actions/issue-auto-implement/action.yml, [1] [2]

Documentation improvements:

  • Updated AGENTS.md to explain the difference between requesting more information and providing a comment body from implement, and clarified the implement step flow for both code change and no-change cases. (.github/actions/issue-auto-implement/AGENTS.md, [1] [2]

…st-clarification PR comments

- When implement makes no code changes, Claude writes the PR comment body to .comment_body (no-change rationale or request for clarification). Workflow posts it on the PR instead of claiming 'commit(s) pushed'.
- Track changes_pushed in implement-verify loop; use conditional PR comment (Claude's text or generic fallback when no .comment_body).
- Implement prompt: optional path to write .comment_body for (a) no-change scenarios or (b) when more information is needed.
- ensureMetaFiles: skip defaults when .comment_body exists. Reset .comment_body in git so it is never committed.
- .gitignore and AGENTS.md: document .comment_body and Request more info vs comment body from implement.

Made-with: Cursor
…/pr_body to avoid EOF in content

GitHub Actions fails with 'Matching delimiter not found EOF' when .pr_title or .pr_body
contains a line that is exactly 'EOF'. Use PR_TITLE_DELIM and PR_BODY_DELIM instead.

Made-with: Cursor
@leggetter leggetter merged commit a1a05ed into main Mar 16, 2026
9 checks passed
@leggetter leggetter deleted the refactor/issue-auto-implement-comment-body branch March 16, 2026 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant