Repository navigation
notify: say how to start when notifications or a kind are missing - #41
Merged
Merged
Conversation
A typetorch.json with no "notifications" section (templates, templates set, push) now gets a minimal ready-to-paste block naming the kind asked for, valid as it is, and a link to the docs' Kinds section; templates set on a kind that isn't declared names it and shows its stub. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
typetorch notify templates set test <id>in a repo with nonotificationssection used to say onlytypetorch.json has no "notifications" section. Now:notificationssection (templates,templates set,push): the error prints a minimal block you can paste in as is. It hasdailyCap,quietAfterLeaveMinutes,lapse,unopenedBackoff, andkindswith the kind you asked for: its text placeholder,priority,repeatandsend. It ends with a link to the docs' Kinds section.templates set): the error names the kind, lists the declared ones, and shows a stub to paste undernotifications.kinds, plus the same link.Nothing is written to
typetorch.jsonin either case.Test plan
test/notify.test.tschecks:validateNotificationsas is, and names the requested kind;pushandtemplatesshow the same hint;tsc --noEmitclean.bun test test/notify.test.ts: 83/0.bun test: 859 pass, 1 fail. The failure is the knownbackend blessfull-run one, which also fails on main.CLI CHANGELOG (gitignored), for the next patch: "notify templates / templates set / push: a missing
notificationssection or kind prints a ready-to-paste block and the Kinds docs link."No release.
🤖 Generated with Claude Code