Skip to content

fix: sync workflow safe defaults and configurable inputs for post-release - #54

Merged
c-vigo merged 3 commits into
devfrom
bugfix/52-post-release-dev-protection
Feb 27, 2026
Merged

c-vigo merged 3 commits into
devfrom
bugfix/52-post-release-dev-protection

Conversation

@c-vigo

@c-vigo c-vigo commented Feb 27, 2026

Copy link
Copy Markdown
Contributor

Description

Post-release hardening for the sync-issues workflow: add configurable output-dir and commit-msg inputs, use safe defaults (target-branch || 'dev', commit message input), pin the workflow to action ref v0.2.2 instead of local checkout, and simplify the cache-delete step (use github.token; stop passing force-update to the action, use only updated-since when applicable).

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/sync-issues.yml
    • New workflow inputs: output-dir (default docs), commit-msg (default chore: sync issues and PRs)
    • Checkout and commit step use target-branch || 'dev' and commit-msg so defaults apply when inputs are omitted
    • Workflow uses pinned action ref (v0.2.2) instead of local checkout
    • Cache delete step uses github.token; force-update no longer passed to action (only updated-since used when provided)
  • CHANGELOG.md
    • Unreleased: Added (configurable output-dir and commit-msg), Changed (safe defaults and pinned action ref)

Changelog Entry

Added

  • Sync workflow: configurable output-dir and commit-msg (#52)
    • New workflow inputs output-dir (default docs) and commit-msg (default chore: sync issues and PRs) for dispatch runs

Changed

  • Sync workflow: safe defaults and pinned action ref (#52)
    • Checkout and commit step use target-branch || 'dev' and commit-msg input so defaults apply when inputs are omitted
    • Workflow uses pinned action ref (v0.2.2) instead of local checkout
    • Cache delete step uses github.token; force-update no longer passed to action (only updated-since used)

Testing

  • Tests pass locally (npm run test:all)

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: #52

- Updated CHANGELOG to link version tag 0.2.2

Refs: #52
- Added `output-dir` and `commit-msg` inputs to allow customization of the output directory and commit message for synced issues and PRs.
- Updated the workflow to use default values for `target-branch` and `output-dir` if not provided.
- Improved handling of the `GH_TOKEN` to ensure proper authentication during commits.
- Updated CHANGELOG

Refs: #52
@c-vigo c-vigo self-assigned this Feb 27, 2026
@c-vigo
c-vigo merged commit d8c34f8 into dev Feb 27, 2026
27 of 29 checks passed
@c-vigo
c-vigo deleted the bugfix/52-post-release-dev-protection branch February 27, 2026 09:21
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.

1 participant