Skip to content

Fix bash array expansion in workflow files to pass prompts as single argument#18969

Merged
harupy merged 2 commits intomasterfrom
copilot/update-review-and-resolve-args
Nov 22, 2025
Merged

Fix bash array expansion in workflow files to pass prompts as single argument#18969
harupy merged 2 commits intomasterfrom
copilot/update-review-and-resolve-args

Conversation

Copy link
Contributor

Copilot AI commented Nov 22, 2025

Related Issues/PRs

#xxx

What changes are proposed in this pull request?

Changed bash array expansion from "${ARGS[@]}" to "${ARGS[*]}" in review.yml and resolve.yml workflow files.

Behavior change:

  • "${ARGS[@]}" expands each array element as separate arguments → claude cmd '/pr-review' 'Please review the code' (2 args)
  • "${ARGS[*]}" expands all elements as single argument → claude cmd '/pr-review Please review the code' (1 arg)

This ensures user prompts with spaces are passed intact to the claude CLI rather than being word-split.

Files changed:

  • .github/workflows/review.yml line 111
  • .github/workflows/resolve.yml line 150

How is this PR tested?

  • Manual tests

Does this PR require documentation update?

  • No. You can skip the rest of this section.

Release Notes

Is this a user-facing change?

  • No. You can skip the rest of this section.

What component(s), interfaces, languages, and integrations does this PR affect?

Components

  • area/build: Build and test infrastructure for MLflow

How should the PR be classified in the release notes? Choose one:

  • rn/none - No description will be included. The PR will be mentioned only by the PR number in the "Small Bugfixes and Documentation Updates" section

Should this PR be included in the next patch release?

  • Yes (this PR will be cherry-picked and included in the next patch release)
  • No (this PR will be included in the next minor release)
Original prompt

Update review.yml and resolve.yml to use "${ARGS[*]}" instead of "${ARGS[@]}" to pass it as a single argument, not multiple arguments


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@harupy harupy marked this pull request as ready for review November 22, 2025 01:59
@github-actions
Copy link
Contributor

@Copilot Thank you for the contribution! Could you fix the following issue(s)?

⚠ Invalid PR template

This PR does not appear to have been filed using the MLflow PR template. Please copy the PR template from here and fill it out.

Co-authored-by: harupy <17039389+harupy@users.noreply.github.com>
Copilot AI changed the title [WIP] Update review.yml and resolve.yml to use "${ARGS[*]}" Fix bash array expansion in workflow files to pass prompts as single argument Nov 22, 2025
Copilot AI requested a review from harupy November 22, 2025 02:06
@github-actions github-actions bot added area/build Build and test infrastructure for MLflow rn/none List under Small Changes in Changelogs. labels Nov 22, 2025
@harupy harupy added this pull request to the merge queue Nov 22, 2025
Merged via the queue into master with commit f349062 Nov 22, 2025
66 of 89 checks passed
@harupy harupy deleted the copilot/update-review-and-resolve-args branch November 22, 2025 03:00
Tian-Sky-Lan pushed a commit to Tian-Sky-Lan/mlflow that referenced this pull request Nov 24, 2025
…argument (mlflow#18969)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: harupy <17039389+harupy@users.noreply.github.com>
Signed-off-by: Tian Lan <sky.blue266000@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build Build and test infrastructure for MLflow rn/none List under Small Changes in Changelogs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants