Repository navigation
·
25 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
β¨ Highlights
- Rewritten in Go β the Node/TypeScript implementation and bundled
dist/index.jsare gone. - Container-based action β runs from
ghcr.io/michisec/branchmatchregexand is pulled automatically by GitHub Actions. - RE2 regex engine β predictable, linear-time matching without catastrophic backtracking.
- Automated PR comments β You can now configure the action to post a comment on the pull request if the check fails (disabled by default).
β οΈ Breaking changes
- Linux runners only. This is a Docker container action; Windows and macOS runners are not supported.
- Non-blocking by default. Unlike the previous version, the action no longer automatically fails the workflow if the branch name does not meet the rules. You must explicitly configure it to fail if desired.
- RE2 instead of V8. Lookarounds (
(?=...),(?<=...)), backreferences (\1), and other V8-specific regex features are not supported. Such patterns now fail with an explicit::error::. - Exact version pinning required. Use a full release tag:
There is no moving
uses: michisec/branchMatchRegex@v3.0.0
v3alias. Minor and patch upgrades require updating the tag.
π Upgrading from v2
Change the version reference:
# before
uses: michisec/branchMatchRegex@v2
# after
uses: michisec/branchMatchRegex@v3.0.0No input changes are required. If you use advanced regex patterns, verify them before upgrading:
with:
patterns: |
feature/.*
fix/.*
release/v[0-9]+\.[0-9]+Wildcard mode works as before:
with:
useWildcardPatterns: true
patterns: |
feature/*
fix/*π οΈ Under the hood
- Go 1.25 with
github.com/sethvargo/go-githubactionsandgopkg.in/yaml.v3 - Multi-stage Docker build; runtime image is
scratch - Repository moved to
michisec/branchMatchRegex(old URLs redirect)
Full Changelog: v2.2.1...v3.0.0