Skip to content

fix(ci): use comma-separated FILE_PATHS for commit-action - #485

Merged
c-vigo merged 5 commits into
devfrom
bugfix/483-prepare-release-file-paths
Apr 5, 2026
Merged

c-vigo merged 5 commits into
devfrom
bugfix/483-prepare-release-file-paths

Conversation

@c-vigo

@c-vigo c-vigo commented Apr 5, 2026

Copy link
Copy Markdown
Contributor

Description

Fix FILE_PATHS delimiter mismatch in prepare-release.yml and release.yml workflows. The commit-action splits on commas, but FILE_PATHS was passed as space-separated values, causing both commit steps to silently no-op with "No files to commit." This PR switches all FILE_PATHS values to comma-separated so commit-action correctly commits both CHANGELOG.md and assets/workspace/.devcontainer/CHANGELOG.md.

Type of Change

  • feat -- New feature
  • fix -- Bug fix
  • docs -- Documentation only
  • chore -- Maintenance task (deps, config, etc.)
  • refactor -- Code restructuring (no behavior change)
  • test -- Adding or updating tests
  • ci -- CI/CD pipeline changes
  • build -- Build system or dependency changes
  • revert -- Reverts a previous commit
  • style -- Code style (formatting, whitespace)

Modifiers

  • Breaking change (!) -- This change breaks backward compatibility

Changes Made

  • .github/workflows/prepare-release.yml (+3 −3)
    • Change FILE_PATHS from space-separated to comma-separated in all three commit-action steps (freeze changelog on dev, strip changelog on release branch, rollback on failure)
  • .github/workflows/release.yml (+1 −1)
    • Change tr '\n' ' ' to tr '\n' ',' in the "Collect finalization files" step so commit-action receives comma-delimited paths
  • tests/bats/just.bats (+10)
    • Add BATS test asserting prepare-release.yml does not use space-separated FILE_PATHS for multi-file values
    • Add BATS test asserting release.yml joins finalization file paths with commas
  • CHANGELOG.md (+3)
  • assets/workspace/.devcontainer/CHANGELOG.md (+3)
    • Mirror CHANGELOG entry

Changelog Entry

Fixed

  • Prepare-release changelog commits silently skipped due to FILE_PATHS delimiter mismatch (#483)
    • Change FILE_PATHS from space-separated to comma-separated in all commit-action steps of prepare-release.yml so the action correctly commits both CHANGELOG.md and assets/workspace/.devcontainer/CHANGELOG.md
    • Join finalization changed files with commas in release.yml (Collect finalization files) so commit-action receives multiple paths correctly

Testing

  • Tests pass locally (just test)
  • Manual testing performed (describe below)

Manual Testing Details

N/A

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly (edit docs/templates/, then run just docs)
  • I have updated CHANGELOG.md in the [Unreleased] section (and pasted the entry above)
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

N/A

Refs: #483

c-vigo added 4 commits April 5, 2026 11:56
commit-action splits on commas, not spaces. The space-separated values
caused both changelog commit steps to silently no-op.

Refs: #483
commit-action splits on commas; join git diff paths with commas.

Refs: #483
@c-vigo c-vigo self-assigned this Apr 5, 2026
@c-vigo
c-vigo requested a review from Copilot April 5, 2026 10:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Fixes a delimiter mismatch in release-related GitHub Actions workflows so vig-os/commit-action correctly commits multiple files (notably both repo and workspace devcontainer changelogs), and adds regression tests to prevent reintroduction.

Changes:

  • Switch FILE_PATHS to comma-separated values in .github/workflows/prepare-release.yml commit-action steps.
  • Join finalization file paths with commas in .github/workflows/release.yml before passing to commit-action.
  • Add BATS assertions to validate the above workflow formatting; add matching changelog entries.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
.github/workflows/prepare-release.yml Updates commit-action FILE_PATHS to comma-delimited for multi-file commits.
.github/workflows/release.yml Joins CHANGED_FILES with commas so commit-action receives a proper multi-path list.
tests/bats/just.bats Adds regression tests ensuring comma-delimited file path lists are used.
CHANGELOG.md Records the fix under Unreleased/Fixed.
assets/workspace/.devcontainer/CHANGELOG.md Mirrors the changelog entry in the workspace devcontainer changelog.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests/bats/just.bats Resolved
Comment thread tests/bats/just.bats Resolved
@c-vigo
c-vigo enabled auto-merge April 5, 2026 11:21
@c-vigo
c-vigo merged commit 8d81ab3 into dev Apr 5, 2026
11 checks passed
@c-vigo
c-vigo deleted the bugfix/483-prepare-release-file-paths branch April 5, 2026 11:27
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.

2 participants