Skip to content

πŸ”– branchMatchRegex 3.0.0

Choose a tag to compare

@iampekka058-s-bot iampekka058-s-bot released this 07 Nov 18:30
· 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.js are gone.
  • Container-based action – runs from ghcr.io/michisec/branchmatchregex and 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:
    uses: michisec/branchMatchRegex@v3.0.0
    There is no moving v3 alias. 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.0

No 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-githubactions and gopkg.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