RafaelKr / olive-issue-triage-bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Triage Action

Automatically label and comment to an issue.

Usage

See action.yml For comprehensive list of options.

Basic:

name: "Triage Issue"
on:
  issues:
    types: [opened]

jobs:
  stale:
    runs-on: ubuntu-latest
    steps:
    - uses: DeMoorJasper/triage-bot@master
      with:
        repo-token: ${{ secrets.GITHUB_TOKEN }}

Configuration

Place the config file in .github/triage_bot_config.json

Note: Multiple comments get concatenated into one comment

Example Config:

{
  "labels": [
    {
      "label": ":raising_hand_woman: Feature", // Label to be used
      "globs": [ // Globs to match in the issue body
        "*# Feature*",
        "request"
      ]
    },
    {
      "label": ":bug: Bug",
      "globs": [
        "*# Bug*"
      ],
      "comment": "Thank you for creating a bug report, if you haven't already please ensure you have provided context on the bug and a minimal repo where we can reproduce the issue." // Comment on an issue with this label
    }
  ],
  "comment": "Thank you for issue, please ensure no duplicate issues already exist and have a look at our docs site if you haven't already.", // Comment on any new issue that just got labelled
  "no_label_comment": "We could not automatically detect a matching label for this issue, please use the provided issue templates."  // Comment on an issue if the bot could not auto-detect a label for it
}

About

License:MIT License


Languages

Language:TypeScript 93.9%Language:JavaScript 6.1%