perf: optimize duplicate (#24)

* perf: optimize mark duplicate

* add

* add

* add

* add

* add
This commit is contained in:
xrkffgg
2020-12-30 15:17:26 +08:00
committed by GitHub
parent 1cf278b531
commit da1f8da3d4
10 changed files with 114 additions and 26 deletions

View File

@@ -231,14 +231,14 @@ jobs:
## `mark-duplicate`
Quickly mark duplicate issue.
Quickly mark duplicate questions, only for issue new comments.
```yml
name: Issue Mark Duplicate
on:
issue_comment:
types: [created, edited]
types: [created]
jobs:
mark-duplicate:
@@ -255,10 +255,20 @@ jobs:
| -- | -- | -- | -- | -- |
| actions | Action type | string | ✔ | v1.5 |
| token | [Token explain](/en-US/guide/ref#-token) | string | ✔ | v1.5 |
| duplicate-command | Operation command, default is `/d` | string | ✖ | v1.5 |
| duplicate-command | Simple commands can be set, such as: `/d` | string | ✖ | v1.6 |
| duplicate-labels | Add additional labels to this issue | string | ✖ | v1.5 |
| labels | Replace the labels of the issue | string | ✖ | v1.5 |
| contents | Add [reaction](/en-US/guide/ref#-reactions-type) for this comment | string | ✖ | v1.5 |
| close-issue | Whether to close the issue at the same time | string | ✖ | v1.6 |
- `duplicate-command`: When setting concise commands, while still supporting the original `Duplicate of`
- `close-issue`: Both `true` or `'true'` can take effect
<Alert>
Note: Duplicate created with the concise command does not display the content of the red box in the figure below. But in fact this has no effect.
</Alert>
![](../public/duplicate.png)
## `open-issue`