feat(github-comment): add self-documenting media hint#331
Conversation
The managed uploads-sh[bot] attachments comment now ends with a short "Add media" line pointing readers at `uploads put <file> --pr <N> --comment` (or `--issue <N>`) plus the docs, so anyone viewing the comment can learn how to contribute media without prior knowledge of the CLI. Mirrored in both the api and CLI renderers and covered by the golden fixtures. Fixes #298
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughManaged GitHub attachment comments now include an “Add media” command with a documentation link. Both renderers and their golden fixtures reflect the updated footer, and a package changeset records the patch release. ChangesGitHub attachment comment guidance
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 Checkov (3.3.8)test/fixtures/github-comment-golden-cap.jsonTraceback (most recent call last): test/fixtures/github-comment-golden.jsonTraceback (most recent call last): Comment |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
uploads-api | a182a09 | Commit Preview URL Branch Preview URL |
Jul 21 2026, 11:39 AM |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
uploads-auth | a182a09 | Commit Preview URL Branch Preview URL |
Jul 21 2026, 11:39 AM |
|
CodeRabbit (@coderabbitai) review |
✅ Action performedReview finished.
|
Summary
uploads-sh[bot]attachments comment now ends with a short "Add media" hint so anyone reading it can learn how to add to it themselves, without needing prior context on the CLI.apps/api/src/github-comment-render.tsandpackages/uploads/src/github.ts) and covered bytest/fixtures/github-comment-golden.json/github-comment-golden-cap.json.https://uploads.sh/docs/github-appfor more detail.Copy added
Renders as:
It's a new final line in the comment footer, after the existing "Maintained by uploads.sh" line — so it doesn't interfere with the 16-image inline cap or the
<details>overflow block, which both render above it regardless of comment length.Before / after (golden fixture body)
Before:
After:
Test plan
pnpm --filter @uploads/api test— 812 tests passedpnpm --filter @buildinternet/uploads test— 608 tests passedpnpm -r typecheck— cleanpatchchangeset for@buildinternet/uploads(the CLI-side renderer changed)Fixes #298
Summary by CodeRabbit
New Features
Documentation
Tests