close-potential-duplicates/action.yml
bubkoo 393ab50fe8 fix: 🐛 typos
keyworld => keyword

re #14
2021-01-22 09:14:37 +08:00

42 lines
1.3 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: Potential Duplicates
description: Search for potential issue duplicates using DamerauLevenshtein algorithm..
author: bubkoo <bubkoo.wy@gmail.com>
inputs:
GITHUB_TOKEN:
description: Your GitHub token for authentication.
required: true
filter:
description: Filter issues by title.
required: false
exclude:
description: Exclude keywords in title before detecting.
required: false
label:
description: Label to set, when potential duplicates are detected.
default: potential-duplicate
required: false
state:
description: "Get issues with state to compare. Supported state: 'all', 'closed', 'open'"
default: all
required: false
threshold:
description: Label color to set, when potential duplicates are detected.
default: 0.6
required: false
comment:
description: Comment to post when potential duplicates are detected.
default: |
Potential duplicates: {{#issues}}
- [#{{ number }}] {{ title }} ({{ accuracy }}%)
{{/issues}}
required: false
reactions:
description: Reactions to be add to comment when potential duplicates are detected.
required: false
runs:
using: node12
main: dist/index.js
branding:
icon: type
color: yellow # gray-dark purple red orange green blue yellow black white