Skip to content

Add workflow list and run commands - #56

Merged
kwent merged 3 commits into
masterfrom
agent/workflow-list-run
Aug 13, 2026
Merged

Add workflow list and run commands#56
kwent merged 3 commits into
masterfrom
agent/workflow-list-run

Conversation

@kwent

@kwent kwent commented Aug 13, 2026

Copy link
Copy Markdown
Member

Summary

  • add rootly workflows list with the same pagination, sorting, filtering, and output conventions as other resource commands
  • add rootly workflows run <workflow-id-or-slug> --incident=<incident-id>
  • resolve workflow slugs and incident display IDs to the UUIDs required by the workflow-run endpoint
  • expose API-backed --immediate and --check-conditions controls
  • cover list, resolution, run payloads, and command output with tests

Closes #51

Testing

  • go test ./...

@kwent

kwent commented Aug 13, 2026

Copy link
Copy Markdown
Member Author

@greptileai

@greptile-apps

greptile-apps Bot commented Aug 13, 2026

Copy link
Copy Markdown

Greptile Summary

Adds workflow discovery and execution commands, including identifier resolution and incident-scoped API requests.

  • Adds paginated, sortable, and filterable workflow listing with table, JSON, and YAML output.
  • Adds workflow execution with slug resolution, incident normalization, and condition/timing controls.
  • Registers the workflow command group and adds API and command-level tests.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
internal/api/client.go Adds workflow list, slug-resolution, and execution APIs; the previously reported negative-pagination issue is now fixed with explicit validation.
internal/api/client_workflows_test.go Covers workflow listing, negative pagination validation, slug resolution, UUID passthrough, and workflow-run payloads.
internal/cmd/workflows/list.go Implements workflow filtering, pagination, and output formatting through the new API client method.
internal/cmd/workflows/run.go Implements incident resolution, workflow resolution, execution controls, and formatted command output.
internal/cmd/workflows/workflows.go Defines the workflow command group and constructs its authenticated API client.
internal/cmd/workflows_register.go Registers the workflow command group with the root command.

Reviews (4): Last reviewed commit: "validate workflow pagination" | Re-trigger Greptile

Comment thread internal/api/client.go
@kwent

kwent commented Aug 13, 2026

Copy link
Copy Markdown
Member Author

@greptileai

@kwent

kwent commented Aug 13, 2026

Copy link
Copy Markdown
Member Author

@greptileai

@kwent
kwent marked this pull request as ready for review August 13, 2026 04:07
@kwent
kwent merged commit 14c8081 into master Aug 13, 2026
7 checks passed
@kwent
kwent deleted the agent/workflow-list-run branch August 13, 2026 04:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: trigger and list workflows from the CLI

1 participant