Skip to content

v3.7.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 21 Jul 22:46

Capture group support

This release introduces support for referencing capture groups in substitution-based rules:

extends: substitution
message: "Use '%s' instead of '%s'."
ignorecase: true
swap:
  "within the (.*)?directory": in the $1 directory

The $1 will be replaced by the contents captured within (.*) in the regular expression. You can reference multiple capture groups by incrementing the index (such as $2 for a second one, etc.).

Action results now populate the message key

The results of your custom actions will now be inserted into the relevant rule's message key, allowing you to create dynamic, script-based suggestions using the CLI.

Changelog

  • fea611f refactor: display action results in message (#851)
  • 7f2c55e feat: add capture group support to substitution (#612)
  • 906c544 refactor: support capture groups in substitution
  • 42a341e fix: handle conatenating nested lists
  • 157b755 chore: fix version in .goreleaser.yml (#868)