Skip to content
This repository was archived by the owner on Oct 31, 2026. It is now read-only.

One pull request comment with the stacks of a repository (0.18.0) - #34

Merged
nicu-chiciuc merged 1 commit into
mainfrom
nicu-stack-comment
Oct 31, 2026
Merged

nicu-chiciuc merged 1 commit into
mainfrom
nicu-stack-comment

Conversation

@nicu-chiciuc

@nicu-chiciuc nicu-chiciuc commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Why

Each repository of the standard declares its own GitHub.Comment. A stack sees only itself, so the comment shows one stack as plain text, and each repository copies it.

Summary

  • alchemy-convex stack-comment runs after the deploys, reads each stack of the repository at the stage of the pull request, and keeps one comment with a card for each stack.
  • The run record gives the repository and the pull request, so with a team access token the command needs no argument.
  • A card shows the folder, the address, the last run, and the Convex deployments, Workers, and R2 buckets. A stack without the stage has no card.
  • The icons are in assets/stack-comment, so a repository needs no image host. GitHub does not proxy raw.githubusercontent.com, so an icon change needs no cache purge.
  • src/StackComment.ts names the reason for each choice of the markup. Each one comes from the real page of a pull request.

Release 0.18.0: the merge publishes it to npm.

Validation

  • pnpm run check: 141 tests pass. pnpm run build: publint and attw pass.
  • New tests read recorded rows of real stages. A scan finds no secret in the fixtures.
  • Ran the built CLI with the environment of GitHub Actions on v2203: Show every preview in one pull request comment samebase#1829. It found the comment by its marker and edited it in place, with two cards from the live store. The icons pointed at this branch for that run, because main does not have them yet.
  • Checked that page in Chromium in light mode, dark mode, and at 390px.
  • The same read gives the right rows for samebase/scout, with R2 buckets, and samebase/base-alchemy.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

…tory (0.18.0)

A stack sees only itself, so a comment that a stack declares cannot show the
other stacks of a repository. This command runs after the deploys, reads
each stack of the repository at the stage of the pull request from the
store, and keeps one comment with a card for each.

The markup and its reasons come from a test on the real page of a pull
request. The icons live in this repository, so a repository that uses the
command needs no image host.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nicu-chiciuc
nicu-chiciuc merged commit 1a14b67 into main Oct 31, 2026
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant