Notify a user when an issue gets a specific label applied.
The default message is '{user} - {label} label was applied.'. If the message does include '{user}', the message will automatically start with '{user} - ' and then include the provided message.
Note that a token with write permissions for issues is required.
name: Notify users based on issue labels
on:
issues:
types: [labeled]
jobs:
notify:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: tekktrik/issue-labeled-ping@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
user: tekktrik
label: wontfix
message: Hey {user} - the "{label}" label was applied!