-
Notifications
You must be signed in to change notification settings - Fork 90
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: expose --remote
flag to launch remote workflows on Grit Cloud
#317
Conversation
WalkthroughWalkthroughThe recent updates focus on enhancing feature management and refining function implementations in the CLI tool. Key changes include the redistribution of the "remote_workflows" feature between feature flags, introduction of a new method for handling migration payloads, and improvements in remote workflow execution logging. These modifications aim to streamline feature access and improve the usability and maintainability of the code. Changes
Recent Review DetailsConfiguration used: .coderabbit.yaml Files selected for processing (1)
Files skipped from review as they are similar to previous changes (1)
Additional Context UsedLearnings (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 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 as PR comments)
Additionally, you can add CodeRabbit Configration 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: 3
@@ -181,15 +180,32 @@ | |||
|
|||
#[cfg(feature = "remote_workflows")] | |||
pub async fn run_remote_workflow(workflow_name: String) -> Result<()> { | |||
use colored::Colorize; |
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.
Remove unused import.
- use colored::Colorize;
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.
use colored::Colorize; |
let outcome = grit_cloud_client::run_remote_workflow(settings, &auth).await?; | ||
display_workflow_outcome(outcome)?; | ||
return Ok(()); | ||
let url = grit_cloud_client::run_remote_workflow(settings, &auth).await?; |
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.
The function run_remote_workflow
is not found in grit_cloud_client
. Verify the correct import or function name.
- let url = grit_cloud_client::run_remote_workflow(settings, &auth).await?;
+ let url = run_remote_workflow(settings, &auth).await?;
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.
let url = grit_cloud_client::run_remote_workflow(settings, &auth).await?; | |
let url = run_remote_workflow(settings, &auth).await?; |
crates/cli/src/workflows.rs
Outdated
let auth = updater.get_valid_auth()?; | ||
|
||
pb.set_message("Launching workflow on Grit Cloud"); | ||
|
||
let repo = ModuleRepo::from_dir(&cwd).await; | ||
let settings = grit_cloud_client::RemoteWorkflowSettings::new(workflow_name, &repo); |
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.
The type RemoteWorkflowSettings
is not found in grit_cloud_client
. Verify the correct import or type name.
- let settings = grit_cloud_client::RemoteWorkflowSettings::new(workflow_name, &repo);
+ let settings = RemoteWorkflowSettings::new(workflow_name, &repo);
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.
let settings = grit_cloud_client::RemoteWorkflowSettings::new(workflow_name, &repo); | |
let settings = RemoteWorkflowSettings::new(workflow_name, &repo); |
Summary by CodeRabbit
New Features
Enhancements
Refactor
Style