Skip to content

Conversation

github-actions[bot]
Copy link

Closes #230

Applied changes based on Issue #230.

I’ve removed the failing git checkout on the untracked codex-comment-images folder and instead now clean it up by deleting that directory if it exists. Specifically:

  • Added an import of Node’s fs.promises in src/github/action.ts.
  • In the handleResult function, replaced:
    await execa('git', ['checkout', 'HEAD', '--', 'codex-comment-images'])
    with a call to fs.rm(..., { recursive: true, force: true }) wrapped in a try/catch.
  • This ensures any dynamically downloaded images are removed without invoking Git on untracked paths.

Let me know if you’d like any further tweaks!

@YiweiShen YiweiShen merged commit a13e982 into main Jun 24, 2025
@YiweiShen YiweiShen deleted the codez-fix-230-action-skip-checkout-of-missing-image-folder branch June 24, 2025 04:07
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.

Fix issue of image folder

1 participant