fregante/Title Replacer

Replaces and formats keywords in titles of issues and PRs.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
patternWhat to search in titles. Comma-separated or line-separated, surrounding spaces are ignored. If it starts with a /, it is treated as a regular expression. (example: fix, bug, feat)
pattern-pathThe path to read the patterns from. It can be a file (comma-separated or line-separated) or a directory, where all the file *names* will be used (without the extension)
replacementWhat to replace the pattern with. Use $0 for the matched pattern, or $1, $2, etc. if you're using a regular expression with groups. (example: '`$0`') Note that if you use this action to wrap keywords like '`$0`', you should also use `trim-wrappers: true` or else keywords will be wrapped twice. ""
trim-wrappersThe surrounding characters to trim when replacing the pattern, for example the replacement can drop the quotes in `"hippo"` when the pattern is just hippo. Example: '[]{}"' Example: 'true' means ()[]{}"'`<> ""
uppercase-first-letterWhether to uppercase the first letter of the titletrue
dry-runIf true, show what changes would be made without actually making themfalse
allow-overrideIf true, reduces frequency at which it tries to apply the replacements, in order to allow the user to set a specific title even if it matches the pattern. This avoids frustrating user/action loops. NOT WORKING YETfalse
tokenThe automatically-generated token, set this to \$\{\{ secrets.GITHUB_TOKEN \}\}
namedescription
changedWhether the title was changed
titleThe title after the replacements or the original title if unchanged