Skip to content

fix: in order to support changes not only on dedicatd values.yaml file#70

Merged
andibeuge merged 1 commit intomainfrom
fix/support-chart-value-changes-outside-values-file
Jan 30, 2026
Merged

fix: in order to support changes not only on dedicatd values.yaml file#70
andibeuge merged 1 commit intomainfrom
fix/support-chart-value-changes-outside-values-file

Conversation

@andibeuge
Copy link
Contributor

portal deviates from this approach

Copilot AI review requested due to automatic review settings January 30, 2026 10:35
@andibeuge andibeuge requested a review from a team as a code owner January 30, 2026 10:35
@github-actions github-actions bot added the ci label Jan 30, 2026
@andibeuge andibeuge merged commit 576e24e into main Jan 30, 2026
8 checks passed
@andibeuge andibeuge deleted the fix/support-chart-value-changes-outside-values-file branch January 30, 2026 10:36
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a bug in the Kubernetes deployment workflow where the git add command used a hardcoded path that didn't match the actual file being modified. The change makes the workflow more flexible to support different deployment repository structures.

Changes:

  • Changed git add ".chart/$ENV/values.yaml" to git add . to support dynamic file paths rather than a hardcoded structure

git config user.email "$GIT_USER_EMAIL"
git config user.name "$GIT_USER_NAME"
git add ".chart/$ENV/values.yaml"
git add .
Copy link

Copilot AI Jan 30, 2026

Choose a reason for hiding this comment

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

Spelling error in PR title: "dedicatd" should be "dedicated"

Copilot uses AI. Check for mistakes.
git config user.email "$GIT_USER_EMAIL"
git config user.name "$GIT_USER_NAME"
git add ".chart/$ENV/values.yaml"
git add .
Copy link

Copilot AI Jan 30, 2026

Choose a reason for hiding this comment

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

Using git add . adds all modified files in the remote directory, which is more flexible than the previous hardcoded path but less explicit. Consider the following:

  1. The commit message on line 205 specifically mentions "set $ENV image tag to $VERSION", which may not accurately describe all changes if multiple files are modified
  2. While the change fixes the mismatch between the hardcoded path and the actual file being modified (line 193), using git add . could inadvertently commit unintended files if the workflow is modified in the future to create additional temporary files

If this flexibility is intentional to support different deployment structures (as suggested by the PR description), consider updating the commit message to be more generic, or adding a comment explaining why all files are being added rather than just the modified values.yaml file.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants