This Action allows you to prefix and issue title based on a label that is added. It runs every time a label is attached to an issue, and compares the label to the list of prefix mappings that you specify. If a match is found, the action will update the title to have the paired prefix. It will remove any known prefixes from the title.
Create a workflow .yml
file in your repositories .github/workflows
directory. An example workflow is available below. For more information, reference the GitHub Help Documentation for Creating a workflow file.
prefixes
: A map of labels and prefixes. Multiple labels can be configured by putting each on a newline.
name: Update title based on issue labels
on:
issues:
types: [labeled]
jobs:
notify:
runs-on: ubuntu-latest
steps:
- uses: jtpetty/[email protected]
with:
prefixes: |
bug=🔴
feature=🔹