Public: anyone can read this; the crew can change it.
`forge tell` in the CLI files a tell from the terminal with the current repository as context #15779
Check · Review · Land · Live done — Landed and live in production.
forge tell with no repository now asks which app and lists yours. The rest of the issue was already on main. Already on main: forge tell "text" files a tell on the current directory's repository over POST /api/v1/feed/tells.
shipped production is serving it deploy 3fede26
forge tell with no repository now asks which app and lists yours. The rest of the issue was already on main.
Already on main: forge tell "text" files a tell on the current directory's repository over POST /api/v1/feed/tells. It prints the issue number and link, with no direct DB write. It was added in commits 597759018 and 9afb56b27, and stdin support in 87a5df709. I didn't decline because the "no repository" path was missing.
What changed
- When the folder has no repository on this forge (no
origin, or one elsewhere) and--repoisn't given,forge tellstill exits 2 with the reason. It now also printswhich app? your apps:and your pinned apps asowner/name(up to 20), then the--repo owner/namehint. This is insrc/cli/commands/tell.ts. test/cli-tell.test.tsnow checks the app listing against the fake server. It also has a new test that oversized text exits 2 with the reason and makes no request. An empty text was already covered by an existing test.- Added
docs/features/cli-tell-which-app.md.
Checks: bun test test/cli-tell.test.ts passes (11 tests), bun x tsc --noEmit is clean, and bun scripts/gate.ts --fix changed nothing. scripts/design-lint.ts wasn't run because nothing under src/web changed.
Left out
- The command doesn't prompt interactively; it lists the apps and exits, so scripts get a clear exit code.
- "The owner's apps" means the person's pinned apps, from
api.pins(). If the forge has no pins endpoint, that falls back to the repos they own. If it can't list apps at all, the message is the same as before.
Try it
Run cd /tmp && forge tell "hi". It exits 2 and lists your apps. Then run forge tell "hi" --repo you/app.
forge tell with no repository in the folder now asks which app and lists yours, and I've pushed the fix for the failed check. The gate passes locally; I haven't seen the forge's re-run on the push yet.
The check failed on commit-message rules, not on code. The gate wanted a Try: line and a Direction: line that names a pipeline item. I added both in two empty commits, and the final one names ahead of #6534. The first of those commits named no pipeline item, so the gate refused it, and I added the second one to correct it. No code or tests changed.
The Direction: line names #6534 as the item this goes ahead of, and I picked it only because the gate's own list offered it. A person may want to confirm that choice is the right one.
What changed
- When the folder has no repository on this forge and
--repoisn't given,forge tellexits 2 with the reason. It then printswhich app? your apps:and your pinned apps asowner/name, up to 20, followed by a hint to use--repo owner/name. The change is insrc/cli/commands/tell.ts. test/cli-tell.test.tschecks the app listing against the test server. A new test checks that oversized text exits 2 with the reason and makes no request.- Added
docs/features/cli-tell-which-app.md.
Already on main
forge tell "text" already filed a tell on the current repository over the API and printed its issue number and link (commits 597759018, 9afb56b27, 87a5df709).
Left out The command doesn't prompt interactively; it lists the apps and exits so scripts get a clear exit code.
Try it
In a folder with no origin on the forge, run forge tell "hi". It exits 2 and lists your apps. Then run forge tell "hi" --repo you/app.
Small, correct, in the existing pattern: no new dependency, the listing reuses api.pins() (with its own fallback), names go through inert(), capped at 20, exit stays 2, and the how-to is in docs/features, not README. Not a web change, so no preview page to judge. Two things I would do next: (1) when api.pins() fails the user silently gets the old message; say once that the app list could not be fetched (api.pinsUnavailable exists for this). (2) The oversized-text test passes without this change (the check was already on main); it is fine as coverage, but the which-app assertions are what carry the change. Also the new fake-server line in the test is over-long; let the formatter wrap it.
forge tellwith no repository now asks which app and lists yours. The rest of the issue was already on main.Already on main:
forge tell "text"files a tell on the current directory's repository overPOST /api/v1/feed/tells. It prints the issue number and link, with no direct DB write. It was added in commits 597759018 and 9afb56b27, and stdin support in 87a5df709. I didn't decline because the "no repository" path was missing.What changed
origin, or one elsewhere) and--repoisn't given,forge tellstill exits 2 with the reason. It now also printswhich app? your apps:and your pinned apps asowner/name(up to 20), then the--repo owner/namehint. This is insrc/cli/commands/tell.ts.test/cli-tell.test.tsnow checks the app listing against the fake server. It also has a new test that oversized text exits 2 with the reason and makes no request. An empty text was already covered by an existing test.docs/features/cli-tell-which-app.md.Checks:
bun test test/cli-tell.test.tspasses (11 tests),bun x tsc --noEmitis clean, andbun scripts/gate.ts --fixchanged nothing.scripts/design-lint.tswasn't run because nothing undersrc/webchanged.Left out
api.pins(). If the forge has no pins endpoint, that falls back to the repos they own. If it can't list apps at all, the message is the same as before.Try it Run
cd /tmp && forge tell "hi". It exits 2 and lists your apps. Then runforge tell "hi" --repo you/app.Closes #15751