Skip to content

Automatically leave a message when an issue or pull request has a certain label

License

Notifications You must be signed in to change notification settings

bytecodealliance/label-messager-action

Repository files navigation

Label Messager Action

Leave a message on issues and comments when they are labeled with a specific label.

Usage

Add a .github/workflows/label-messager.yml file to your repository:

name: "Label Messager"
on:
  issues:
    types: ["labeled"]
  schedule:
    # Run pull request triage every 5 minutes. Ideally, this would be on
    # "labeled" types of pull request events, but that doesn't work if the pull
    # request is from another fork. For example, see
    # https://github.com/actions/labeler/issues/12
    - cron: '*/5 * * * *'
jobs:
  triage:
    runs-on: ubuntu-latest
    steps:
    - uses: bytecodealliance/label-messager-action@v1
      with:
        repo-token: "${{ secrets.GITHUB_TOKEN }}"

Then configure what messages to add when issues or pull requests are labeled with which label by adding entries to the .github/label-messager.json configuration file:

{
  "my-label": "path/to/message.md"
}

Contributing

See CONTRIBUTING.md.

About

Automatically leave a message when an issue or pull request has a certain label

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •