feat(init): prompt for + persist a Discord username during setup#106
Merged
barnabasbusa merged 1 commit intoMay 13, 2026
Merged
Conversation
Adds an optional Discord username step to `panda init` so build-completion DMs work out of the box without ever passing --discord-dm. The value lands in config.user.yaml under notifications.discord.username, which `panda build` already reads as its default target. - Interactive: prompts on a TTY after auth, unless --skip-discord is set or a username is already configured. - Non-interactive: --discord-username <value> sets it directly; --skip-discord silences the prompt entirely. Stdin not a TTY ⇒ no prompt, no failure. - Persists via the same config.SaveUserConfig path used by `panda build`'s auto-save behavior, so the flows produce identical YAML.
9 tasks
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.
Summary
Stacked on top of #105. Adds an optional Discord username step to `panda init` so build-completion DMs work without ever having to remember the `--discord-dm` flag.
Why
You asked for the username to be remembered after setup so `panda build geth` notifies you without flag plumbing. #105 already auto-saves on first `--discord-dm` use; this PR also gives you a chance to set it up front during `panda init`.
Stack
Base: `bbusa/discord-dm-on-build` (PR #105). Please merge #105 first; this PR will then retarget to `master` automatically.
Test plan