Repository navigation
Attach PR evidence with gh instead of evidence branches - #896
Conversation
Evidence was published to evidence/<issue> branches through scripts/publish-evidence.sh, which agents kept following. gh 2.102+ attaches images to PR and issue comments directly (--attach), so the branch and the script are no longer needed. Co-Authored-By: Claude Haiku 5.5 <[email protected]>
There was a problem hiding this comment.
Automated review: 1 finding(s) that 2+ of 3 passes agreed on.
3 finding(s) from a single pass, not posted
AGENTS.md:191low: Mandatory sips resize has no Linux fallback (muse-spark-1.3-contributor).agents/skills/feature/SKILL.md:95low: Relative ./ image paths resolve from the caller's cwd, not from the scratch body file (deepseek-v4.1-flash).agents/skills/publish-ui-snapshots/SKILL.md:35low: sips -Z 1000 is macOS-only and blocks Android snapshot publishing on Linux (deepseek-v4.1-flash)
opencode pr-review · passes: muse-spark-1.3-contributor, glm-5.3-flash, deepseek-v4.1-flash · $0.028
| e.g. `$(brew --prefix)/bin/gh`; check `gh pr comment --help` lists | ||
| `--attach`): write a Markdown table in a scratch `--body-file` that | ||
| references the files as ``, and run | ||
| `gh pr comment <pr> --body-file <file>`. `gh` uploads each referenced file |
There was a problem hiding this comment.
medium: Documented gh command never passes --attach, so the screenshots are not uploaded
The new guidance tells the agent to verify gh pr comment --help lists --attach, but the invocation it gives is only gh pr comment <pr> --body-file <file>; no attachment flag and no file paths are ever passed. The body keeps literal relative links such as , so the comment is posted without uploading anything and GitHub resolves those paths against the PR page. The same omission appears in .agents/skills/feature/SKILL.md and .agents/skills/publish-ui-snapshots/SKILL.md, and it contradicts the PR's stated gh pr comment --attach usage.
Failure scenario: An agent records ios-01-home.png through android-03-answer.png, writes the table into /evidence/comment.md, and runs exactly gh pr comment 42 --body-file <scratchpad>/evidence/comment.md -> the flag that enables uploading is never used, the comment contains broken image links (e.g. github.com/opencode-mobile/opencode-mobile/pull/ios-01-home.png) and the PR has no visible evidence.
Found by 2 of 3 passes.
Summary
gh pr comment --attach(gh 2.102+) instead of publishingevidence/<issue>branches.scripts/publish-evidence.sh, which was the only thing creating those branches.Checks
Risks / Follow-ups
gh --attachis not yet exercised end to end. The first real evidence post will confirm it.origin/evidence/879still exists; delete it separately if wanted.🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need.