Skip to content

fix: restore CHANGELOG.md when reusing release branch - #50

Merged
patrickschaper merged 6 commits into
mainfrom
development
May 20, 2026
Merged

fix: restore CHANGELOG.md when reusing release branch#50
patrickschaper merged 6 commits into
mainfrom
development

Conversation

@patrickschaper

Copy link
Copy Markdown
Owner

Summary

  • restore CHANGELOG.md alongside VERSION in the branch_exists path of the Release workflow
  • prevents the git switch from failing with "local changes would be overwritten by checkout"

Merges development → main.

patrickschaper and others added 2 commits May 20, 2026 09:04
- also restore CHANGELOG.md alongside VERSION in the branch-exists path
- prevents 'local changes would be overwritten by checkout' error

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
## Summary
- restore `CHANGELOG.md` alongside `VERSION` in the `branch_exists` path
of the Release workflow
- prevents the `git switch` from failing with "local changes would be
overwritten by checkout"

## Root cause
The "Update CHANGELOG" step modifies `CHANGELOG.md` before the "Create
or reuse release branch" step. When a release branch already existed,
only `VERSION` was restored — leaving `CHANGELOG.md` dirty — causing
`git switch -C` to abort.
@patrickschaper
patrickschaper enabled auto-merge May 20, 2026 07:25
patrickschaper and others added 3 commits May 20, 2026 09:28
- merges to main only via development or release/* branches
- releases triggered via the Release GitHub Actions workflow

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
## Summary
- merges to `main` only via `development` or `release/*` branches
- releases triggered via the Release GitHub Actions workflow
- requires PRs to main to come from development or release/v* branches

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
## Summary
- commits the `branch-policy.yml` workflow that was only present locally
- enforces that PRs to `main` must come from `development` or
`release/v*`
- fixes the perpetually-pending "Check source branch" status check on PR
#50
@patrickschaper
patrickschaper merged commit 52474ea into main May 20, 2026
3 checks passed
Comment on lines +10 to +27
name: Check source branch
runs-on: ubuntu-latest
steps:
- name: Require development or release branch
shell: bash
run: |
set -euo pipefail

source="${{ github.head_ref }}"
echo "Source branch: ${source}"

if [[ "${source}" == "development" || "${source}" == release/v* ]]; then
echo "Branch '${source}' is allowed to merge into main."
else
echo "Branch '${source}' is not allowed to merge into main." >&2
echo "Only 'development' and 'release/v*' branches may open PRs targeting main." >&2
exit 1
fi
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