Skip to content

Commit a1a05ed

Browse files
authored
fix: handle EOF (#255)
* feat(issue-auto-implement): add .comment_body for no-change and request-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 * fix(issue-auto-implement): use unique heredoc delimiters for pr_title/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
1 parent 6670f9e commit a1a05ed

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/actions/issue-auto-implement/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,8 @@ runs:
234234
if [ "$VERIFY_EXIT" -eq 0 ]; then
235235
# Pass PR meta to Create PR step via outputs (files are Claude handoff only; do not re-read in next step)
236236
PR_DIR=".github/actions/issue-auto-implement"
237-
if [ -f "$PR_DIR/.pr_title" ]; then echo "pr_title<<EOF" >> $GITHUB_OUTPUT; cat "$PR_DIR/.pr_title" >> $GITHUB_OUTPUT; echo "EOF" >> $GITHUB_OUTPUT; else echo "pr_title=Implement issue #${ISSUE_NUMBER}" >> $GITHUB_OUTPUT; fi
238-
if [ -f "$PR_DIR/.pr_body" ]; then echo "pr_body<<EOF" >> $GITHUB_OUTPUT; cat "$PR_DIR/.pr_body" >> $GITHUB_OUTPUT; echo "EOF" >> $GITHUB_OUTPUT; else echo "pr_body=Closes #${ISSUE_NUMBER}" >> $GITHUB_OUTPUT; fi
237+
if [ -f "$PR_DIR/.pr_title" ]; then echo "pr_title<<PR_TITLE_DELIM" >> $GITHUB_OUTPUT; cat "$PR_DIR/.pr_title" >> $GITHUB_OUTPUT; echo "PR_TITLE_DELIM" >> $GITHUB_OUTPUT; else echo "pr_title=Implement issue #${ISSUE_NUMBER}" >> $GITHUB_OUTPUT; fi
238+
if [ -f "$PR_DIR/.pr_body" ]; then echo "pr_body<<PR_BODY_DELIM" >> $GITHUB_OUTPUT; cat "$PR_DIR/.pr_body" >> $GITHUB_OUTPUT; echo "PR_BODY_DELIM" >> $GITHUB_OUTPUT; else echo "pr_body=Closes #${ISSUE_NUMBER}" >> $GITHUB_OUTPUT; fi
239239
echo "verified=true" >> $GITHUB_OUTPUT
240240
echo "changes_pushed=$CHANGES_PUSHED" >> $GITHUB_OUTPUT
241241
exit 0

0 commit comments

Comments
 (0)