Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/raulriera/triage-action
Automatically triage GitHub issues
https://github.com/raulriera/triage-action
Last synced: 1 day ago
JSON representation
Automatically triage GitHub issues
- Host: GitHub
- URL: https://github.com/raulriera/triage-action
- Owner: raulriera
- License: mit
- Created: 2021-03-31T13:33:19.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-05-01T19:18:00.000Z (over 3 years ago)
- Last Synced: 2024-04-23T19:38:05.839Z (7 months ago)
- Language: JavaScript
- Size: 339 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
[![CI](https://github.com/raulriera/triage-action/actions/workflows/ci.yml/badge.svg)](https://github.com/raulriera/triage-action/actions/workflows/ci.yml)
# Triage Issues
Automatically check that issues labelled with 'Bug' are correctly labelled. In the following example, the bot will check that all bug issues have any of these labels `Priority 0`, `Priority 1`, or `Priority 2`. Plus, a team specific label. So the resulting issue should be triaged as: `Bug`, `Priority 2`, `Team: Backend`.
## Usage
```yaml
name: "Issue triage"
on:
issue_comment:
types: [created]
issues:
types: [labeled]jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: raulriera/triage-action@main
with:
globs: |
Priority [0-2]
Team:*
message: |
**⚠️ Missing information**
Please see our CONTRIBUTING.md for more information.
When you are ready, please comment to this issue with `/triaged`
```The bot will check that your issue's labels matches all of the globs. Additionally, the bot will check again when there is a new comment with the words `/triaged`.
## Inputs
Every available option.
| Input | Description |
| - | - |
| `repo-token` | Token to use to authorize label changes. Typically the GITHUB_TOKEN secret. |
| `globs` | List of [minimatch](https://github.com/isaacs/minimatch) globs to match against labels. |
| `message` | Comment to apply to the issue when it does not meet the glob requirements |