-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Updated CLI to permit force deploy #95
base: main
Are you sure you want to change the base?
Conversation
How to use the Graphite Merge QueueAdd the label graphite/merge to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
WalkthroughThe pull request introduces a new Changes
Assessment against linked issues
Possibly related PRs
Suggested reviewers
Tip 🌐 Web search-backed reviews and chat
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (1)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
cmd/world/forge/forge.go (1)
295-296
: Consider enhancing the flag description.The current description is good but could be more explicit about the impact of force deployment.
- deployCmd.Flags().Bool("force", false, - "Start the deploy even if one is currently running. Cancels current running deploy.") + deployCmd.Flags().Bool("force", false, + "Force start a new deployment even if one is currently running. WARNING: This will cancel any currently running deployment.")
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
cmd/world/forge/deployment.go
(1 hunks)cmd/world/forge/forge.go
(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (4)
- GitHub Check: Unit & Coverage
- GitHub Check: Unit & Coverage
- GitHub Check: Go
- GitHub Check: Analyze (go)
🔇 Additional comments (2)
cmd/world/forge/deployment.go (1)
59-61
: LGTM!The implementation correctly handles force deployment by modifying the URL parameter. The approach is clean and maintains backward compatibility with existing deployment types.
cmd/world/forge/forge.go (1)
220-225
: LGTM!The implementation correctly handles the force flag and sets the appropriate deployment type. The code is clean and maintains the existing deployment flow.
Closes: PLAT-88
world forge deployment deploy
now supports a flag--force
. When used, any currently running deployment will be cancelled and the new one started. Without that flag, the deploy will fail if there is a currently running deployment that is less than an hour oldSummary by CodeRabbit
New Features
--force
flag to the deployment command.Improvements