feat: add yes option to init command - #9514
Merged
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
astrbot-docs | 69a753b | Commit Preview URL Branch Preview URL |
Aug 02 2026, 02:50 PM |
Soulter
marked this pull request as ready for review
August 2, 2026 14:52
📄 Knowledge reviewDosu skipped reviewing this PR because your organization has used its |
Contributor
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- Changing the Click command function signature from
init()toinit(yes: bool)may break any internal callers that invokecmd_init.init()directly; consider givingyesa default value or introducing a separate internal helper so existing non-CLI usages remain compatible.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Changing the Click command function signature from `init()` to `init(yes: bool)` may break any internal callers that invoke `cmd_init.init()` directly; consider giving `yes` a default value or introducing a separate internal helper so existing non-CLI usages remain compatible.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
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
-y/--yestoastrbot initMotivation
This enables unattended AstrBot deployments that cannot respond to the installation confirmation prompt.
Closes #9498
Testing
ruff format .ruff check .python -m pytest(2073 passed)Summary by Sourcery
Add a non-interactive initialization option to the AstrBot CLI init command and add regression coverage for it.
New Features:
Tests: