ci: add auto changelog and version update workflows#50
Draft
Copilot wants to merge 2 commits into
Draft
Conversation
Copilot created this pull request from a session on behalf of
yCodeTech
June 18, 2026 06:29
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ports the automated changelog and version-bump pipeline from
auto-comment-blocksto valet-windows, adapted for a PHP/Composer project.Workflows
changelog-ci.yml— On PR merge, maps the conventional commit type in the PR title to a changelog section (feat→Added,fix→Fixed, etc.) and appends an entry under## [Unreleased]inCHANGELOG.md. Opens (or updates) adocs: Update changelogPR. Skips PRs labelledskip-changelog,release,auto version bump,dependencies, or typedchore/ci/docs/test/etc.release.yml— On GitHub release (pre/full): validates semver tag, bumps version incli/version.phpviased, renames## [Unreleased]to a versioned heading (## [3.5.0](.../tree/v3.5.0) - YYYY-MM-DD), opens a release PR with auto-merge, waits for merge, then moves the tag to the merge commit.setup-labels.yml— Syncs global + local labels on dispatch or file change.Scripts (invoked via
actions/github-script)update-changelog.mjs— Parses PR title, builds and inserts the changelog entry; handles duplicate detection and[Unreleased]section creation.check-changelog-exclusions.mjs— Gates the changelog update by inspecting PR labels and commit type before any file is touched.Config
.github/config/labels.json— Definesskip-changelogandauto version bumplabels required by the workflows.Adaptations from
auto-comment-blocksauto-comment-blockspackage.jsonvianpm versioncli/version.phpviased.../releases/tag/vX.Y.Z.../tree/vX.Y.Z(matches existing CHANGELOG style)[Unreleased]heading## [Unreleased]## [Unreleased](url)variant already in the filehttps://github.com${{ github.server_url }}