https://github.com/bytecodealliance/label-messager-action
Automatically leave a message when an issue or pull request has a certain label
https://github.com/bytecodealliance/label-messager-action
Last synced: 7 months ago
JSON representation
Automatically leave a message when an issue or pull request has a certain label
- Host: GitHub
- URL: https://github.com/bytecodealliance/label-messager-action
- Owner: bytecodealliance
- License: mit
- Created: 2022-02-14T23:36:43.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-16T17:33:04.000Z (almost 4 years ago)
- Last Synced: 2025-06-04T21:15:02.399Z (8 months ago)
- Language: JavaScript
- Size: 452 KB
- Stars: 0
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```yaml
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:
```json
{
"my-label": "path/to/message.md"
}
```
## Contributing
See [`CONTRIBUTING.md`](./CONTRIBUTING.md).