Fix PR-comment poster never posting (artifact extracted to wrong path) - #150
Merged
Conversation
`dawidd6/action-download-artifact` with a single `name:` extracts the artifact's contents into the workspace root, so `comment.md`, `header.txt` and `pr_number.txt` landed at `./` — not under `pr-comment/`. The metadata step's `[ -f pr-comment/comment.md ] || exit 0` therefore always bailed and no comment was ever posted. Add `path: pr-comment` to the download step so the files land where the rest of the workflow expects them. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
|
please add debug logging as well |
Log the downloaded artifact contents and distinguish "no artifact" from "artifact present but no comment body" so a future path/artifact mismatch is visible in the run output rather than silently posting nothing. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
mashehu
approved these changes
Jun 23, 2026
Merged
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.
Follow-up fix to #148. The consolidated
pr-comment.ymlposter was triggering correctly but never actually posting a comment.Note
Opened against
mainrather thandev, matching #148.The bug
dawidd6/action-download-artifact, when given a singlename:, extracts the artifact's contents into the workspace root (Local path: ./). So the producer files landed as./comment.md,./header.txt,./pr_number.txt— not under./pr-comment/.The metadata step starts with:
That path never existed, so the step silently exited 0 (
postleft unset) and the "Post PR comment" step was always skipped. Confirmed in run 28020783610 — the artifact downloaded fine (inflating: comment.mdat root), butsteps.meta.outputs.postevaluated tonull.The fix
Add
path: pr-commentto the download step so the files land underpr-comment/, where the rest of the workflow already looks for them. No other changes needed.🤖 Generated with Claude Code