Skip to content

chore: adds version update during docker build#2784

Merged
stalniy merged 2 commits intomainfrom
chore/build-version
Feb 19, 2026
Merged

chore: adds version update during docker build#2784
stalniy merged 2 commits intomainfrom
chore/build-version

Conversation

@stalniy
Copy link
Copy Markdown
Contributor

@stalniy stalniy commented Feb 19, 2026

Why

To let apps work and expose version as they did before

What

Summary by CodeRabbit

  • Chores
    • Updated CI workflows and bumped the checkout action.
    • Added environment variables for app path and version in the build image job.
    • Added a build step to propagate app version into package metadata and adjusted the build invocation to pass registry/tag/app details.
    • Removed an automated PR-approval workflow.
    • Extended ignore patterns to exclude test workflow YAML files.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Feb 19, 2026

📝 Walkthrough

Walkthrough

Upgrades the reusable build workflow (checkout v4→v6); adds APP_PATH and APP_VERSION env vars and a Node.js one-liner to update package version fields before invoking the build script (with quoted args); removes an automated PR-approval workflow and adds .github/workflows/test*.yml to .gitignore.

Changes

Cohort / File(s) Summary
Reusable build workflow
.github/workflows/reusable-build-image.yml
Bumps actions/checkout from v4v6; introduces APP_PATH and APP_VERSION environment variables; injects a Node.js one-liner to update package.json/package-lock.json version fields for the app and root lockfile; modifies build.sh invocation to pass quoted args for registry, tag, app, and tag-latest.
Removed PR approval workflow
.github/workflows/test-composite.yml
Deletes the workflow that performed multi-criteria automated PR approvals (fork/bot detection, label/title checks, file-change analysis) and conditional gh pr review approval.
Git ignore
.gitignore
Adds pattern .github/workflows/test*.yml to ignore test-prefixed workflow YAML files.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Poem

🐰 I nudged the YAML, hopped a bit higher,
Gave versions a nudge and lit a small fire.
Old approvals tucked under a leaf,
Test files hidden — quiet relief.
Pipelines prance on, chasing the wire.

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Description check ❓ Inconclusive The PR description is incomplete. The 'What' section is left blank with only the template comment, lacking explanation of the specific changes made. Complete the 'What' section by describing the specific changes: workflow file updates, version update implementation via Node script, removed test-composite.yml, and gitignore addition.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: adding version update logic during Docker build in the workflow file.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/build-version

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

Auto-approved: meets auto-approval criteria.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.github/workflows/reusable-build-image.yml:
- Around line 133-137: The npm version step is using the raw inputs.tag ("${{
inputs.tag }}") which contains prefixes like "console-api/v1.2.3" and is not
valid semver; update the npm version invocation to use the cleaned semver stored
in env.tag (replace references to inputs.tag with env.tag) so the
--workspace="apps/${{ env.app }}" npm version command receives a valid version
string generated earlier (see the env.tag setup around lines 116-118).

Comment thread .github/workflows/reusable-build-image.yml Outdated
@stalniy stalniy force-pushed the chore/build-version branch from e77456c to 1901f4e Compare February 19, 2026 09:52
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

Auto-approved: meets auto-approval criteria.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
.gitignore (1)

101-101: Consider a more specific pattern or add documentation.

The broad pattern .github/workflows/test*.yml will ignore all workflow files starting with "test", which could accidentally prevent legitimate test workflows (e.g., test-integration.yml, test-e2e.yml) from being committed.

Consider either:

  1. Using a more specific pattern if only temporary/local test files should be ignored (e.g., .github/workflows/test-local*.yml)
  2. Adding an inline comment explaining why test workflows should be ignored
📝 Proposed improvement with documentation
 
 .claude/settings.local.json
+# Ignore temporary test workflow files (use test-local* prefix for experiments)
 .github/workflows/test*.yml

Or with a more specific pattern:

 
 .claude/settings.local.json
-.github/workflows/test*.yml
+# Ignore local/temporary test workflow files
+.github/workflows/test-local*.yml
+.github/workflows/test-temp*.yml
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.gitignore at line 101, The .gitignore entry `.github/workflows/test*.yml`
is too broad and may hide legitimate workflows; update this by either narrowing
the glob to the intended files (e.g., change the pattern to
`.github/workflows/test-local*.yml` or another precise prefix) or keep the
existing pattern but add an inline comment above it explaining exactly which
temporary/local test workflow files should be ignored and why so reviewers
understand the intent; locate the current entry `.github/workflows/test*.yml`
and apply one of these changes.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In @.gitignore:
- Line 101: The .gitignore entry `.github/workflows/test*.yml` is too broad and
may hide legitimate workflows; update this by either narrowing the glob to the
intended files (e.g., change the pattern to `.github/workflows/test-local*.yml`
or another precise prefix) or keep the existing pattern but add an inline
comment above it explaining exactly which temporary/local test workflow files
should be ignored and why so reviewers understand the intent; locate the current
entry `.github/workflows/test*.yml` and apply one of these changes.

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

Auto-approved: meets auto-approval criteria.

@stalniy stalniy force-pushed the chore/build-version branch from 7d0d04d to 9aedc0e Compare February 19, 2026 11:10
@stalniy stalniy enabled auto-merge February 19, 2026 11:11
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

Auto-approved: meets auto-approval criteria.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.github/workflows/reusable-build-image.yml:
- Around line 135-143: Replace the single-quoted node one-liner that triggers
ShellCheck SC2016 (the node -e '...' block referencing process.env.APP_PATH and
process.env.APP_VERSION and reading/writing package-lock.json and package.json)
with a heredoc that feeds the JavaScript to node (e.g., use node <<'NODE' ...
NODE or cat <<'NODE' | node with a quoted delimiter) so the script is not
wrapped in single quotes and shellcheck/actionlint stop flagging SC2016; keep
the same logic (reading package-lock.json and
./${process.env.APP_PATH}/package.json, updating versions, and writing files)
but place it inside the heredoc block.

Comment thread .github/workflows/reusable-build-image.yml
@stalniy stalniy added this pull request to the merge queue Feb 19, 2026
Merged via the queue into main with commit 86d5dbc Feb 19, 2026
45 checks passed
@stalniy stalniy deleted the chore/build-version branch February 19, 2026 11:51
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

Auto-approved: meets auto-approval criteria.

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

Auto-approved: meets auto-approval criteria.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants