Skip to content

tekktrik/issue-labeled-ping

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Issue Labeled Ping

Notify a user when an issue gets a specific label applied.

Usage

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!