mirror of
https://gitea.com/Lydanne/issues-helper.git
synced 2025-10-14 15:53:55 +08:00
perf: optimize duplicate (#24)
* perf: optimize mark duplicate * add * add * add * add * add
This commit is contained in:
@@ -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>
|
||||
|
||||

|
||||
|
||||
## `open-issue`
|
||||
|
||||
|
Reference in New Issue
Block a user