feat(github): open on-host images so they draw inline #91
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/87-github-inline-images"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
On GitHub, an image hosted on github.com that sits alone in its own paragraph of a PR or issue body (
github.com/user-attachments/assets/…) now draws inline in the Details pane, as it already does on Forgejo. This works for public repos. A private repo's image stays an🖼 altlink. design.md → Images already says that's what happens when an image fails to load.Refs #87 (part of #83)
Live check (recorded on #87)
On 2026-10-09, an attachment from a public repo answered with a redirect to signed Amazon S3 storage, with or without a token. Following the redirect returned the file. I couldn't test a private repo live because no private repo on the test account has an attachment. GitHub is widely reported to serve those only to a signed-in browser.
Security
Verification
make checkafter merging develop:shellcheckisn't installed locally. No shell files changed, and CI runs it.The three
forgetest.RunContractOpenAsset cases now run and pass on GitHub. Before this change they were skipped.Mutation checks:
Review
Three fresh reviewers ran: standards, comments and spec. Standards and spec passed. I reworded two comments.
Dismissed: sending the token to any path on github.com, not just
/user-attachments/. It's the same origin and the same party, which matches the gitea adapter's rule.Docs
ADR 0017 gains an Images bullet.
architecture.mdanddesign.mdare unchanged.🤖 Generated with Claude Code
https://claude.ai/code/session_01QhCwUhPRAFrAziCumaEa67