Skip to content

Add directory property to RunShell - #1193

Open
cvgaviao wants to merge 1 commit into
open-workflow-specification:mainfrom
cvgaviao:main
Open

cvgaviao wants to merge 1 commit into
open-workflow-specification:mainfrom
cvgaviao:main

Conversation

@cvgaviao

Copy link
Copy Markdown

Please specify parts of this PR update:

  • Specification
  • Schema
  • Examples
  • Extensions
  • Use Cases
  • Community
  • CTK
  • Other

#1191

What this PR does:
Added property directory to RunShell

Additional information:

Copilot AI lite review requested due to automatic review settings September 18, 2026 22:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The change is a small, additive, backwards-compatible schema extension that matches the linked issue’s request.

Review effort: Lite
Findings: None

What changed in this PR

This PR updates the workflow JSON Schema to support specifying a working directory for RunShell, addressing issue #1191 so shell commands can execute with an explicit working directory rather than inheriting the workflow application’s startup directory.

Changes:

  • Adds an optional directory string property to the RunShell.shell configuration object.
  • Documents the new property as the working directory used when running the shell command.
File Description
schema/​workflow.yaml Extends the RunShell schema to allow an optional working-directory (directory) for shell execution.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@ricardozanini ricardozanini linked an issue Sep 28, 2026 that may be closed by this pull request
Copilot AI review requested due to automatic review settings September 28, 2026 14:44
@ricardozanini

Copy link
Copy Markdown
Collaborator

@cvgaviao can you please also add a description of this new property to the dsl-reference.md and any other doc related to it?

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

No blocking issues were identified; remaining feedback is a minor documentation nit.

Review effort: Lite
Findings: None

@cdavernas cdavernas left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Cheers!

@ricardozanini

Copy link
Copy Markdown
Collaborator

@cvgaviao one more thing, you must commit with verified signatures.

@cvgaviao

Copy link
Copy Markdown
Author

@ricardozanini , ok I will do it tonight.

Copilot AI lite review requested due to automatic review settings September 29, 2026 19:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The example uses tab indentation and fails YAML validation.

Review effort: Lite
Findings: 1 High severity

Open (1)

Comment thread examples/run-shell-stdin-and-arguments.yaml
Copilot AI lite review requested due to automatic review settings September 29, 2026 19:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

All reviewed changes are documented and no blocking issues were identified.

Review effort: Lite
Findings: None

Resolved since last review (1)

Copilot AI lite review requested due to automatic review settings September 29, 2026 19:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Add the schema property and replace tab indentation with spaces.

Review effort: Lite
Findings: 2 High severity

Open (2)

Comment thread dsl-reference.md
| command | `string` | `yes` | The shell command to run |
| stdin | `string` | `no` | A runtime expression, if any, to the shell command as standard input (stdin).|
| arguments | `string[]` | `no` | A list of the arguments, if any, of the shell command to run |
| directory | `string` | `no` | The working directory, if any, in which to run the shell command. |
- Bar
- Foo
- Bar
directory: /tmp
Copilot AI lite review requested due to automatic review settings September 29, 2026 20:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

Replace tab indentation in the example so it parses as valid YAML.

Review effort: Lite
Findings: 2 High severity

Open (2)

Signed-off-by: Cristiano Gavião <cvgaviao@gmail.com>
@cvgaviao

Copy link
Copy Markdown
Author

@cvgaviao one more thing, you must commit with verified signatures.

It seems to be ok now. I will need to sign the other commits too.

@ricardozanini
ricardozanini requested a lite review from Copilot October 6, 2026 13:15
@ricardozanini

Copy link
Copy Markdown
Collaborator

@cvgaviao can you have a look at the CI?

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

Replace tab indentation in the YAML example before approval.

Review effort: Lite
Findings: 2 High severity

Open (2)

This branch has not been deployed

No deployments
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.

Add missing optional directory property on the RunShell

4 participants