Compare commits

...

4 Commits

Author SHA1 Message Date
元凛
adce2a7049 docs: update changelog 2022-08-31 21:54:52 +08:00
元凛
2b3835f42e docs: update mui url 2022-08-31 21:53:17 +08:00
xrkffgg
3cc206fdcb fix: mark-duplicate labels invalid (#116)
* test

* test

* fix labels length
2022-08-31 21:50:32 +08:00
元凛
293fb5e353 docs: fix typo 2022-08-26 16:43:12 +08:00
7 changed files with 24 additions and 18 deletions

View File

@@ -7,6 +7,12 @@
🛠 refactor 🛠 refactor
--> -->
## v3.2.1
`2022.08.31`
- 🐞 fix: mark-duplicate labels invalid. [#116](https://github.com/actions-cool/issues-helper/pull/116)
## v3.2.0 ## v3.2.0
`2022.08.26` `2022.08.26`

View File

@@ -100,8 +100,8 @@ Please leave a message at [**here**](https://github.com/actions-cool/issues-help
<td align="center" width="180"><a href="https://github.com/vuejs/jsx-next">jsx-next</a></td> <td align="center" width="180"><a href="https://github.com/vuejs/jsx-next">jsx-next</a></td>
</tr><tr> </tr><tr>
<td align="center" width="180"> <td align="center" width="180">
<a href="https://github.com/mui-org/material-ui"> <a href="https://github.com/mui/material-ui">
<img src="https://avatars2.githubusercontent.com/u/33663932?s=200&v=4" width="46"/> <img src="https://avatars.githubusercontent.com/u/33663932?s=200&v=4" width="46"/>
</a> </a>
</td> </td>
<td align="center" width="180"> <td align="center" width="180">
@@ -121,7 +121,7 @@ Please leave a message at [**here**](https://github.com/actions-cool/issues-help
</td> </td>
</tr> </tr>
<tr> <tr>
<td align="center" width="180"><a href="https://github.com/mui-org/material-ui">material-ui</a></td> <td align="center" width="180"><a href="https://github.com/mui/material-ui">material-ui</a></td>
<td align="center" width="180"><a href="https://github.com/TuSimple/naive-ui">naive-ui</a></td> <td align="center" width="180"><a href="https://github.com/TuSimple/naive-ui">naive-ui</a></td>
<td align="center" width="180"><a href="https://github.com/jdf2e/nutui">nutui</a></td> <td align="center" width="180"><a href="https://github.com/jdf2e/nutui">nutui</a></td>
<td align="center" width="180"><a href="https://github.com/prettier/prettier">prettier</a></td> <td align="center" width="180"><a href="https://github.com/prettier/prettier">prettier</a></td>

View File

@@ -100,8 +100,8 @@
<td align="center" width="180"><a href="https://github.com/vuejs/jsx-next">jsx-next</a></td> <td align="center" width="180"><a href="https://github.com/vuejs/jsx-next">jsx-next</a></td>
</tr><tr> </tr><tr>
<td align="center" width="180"> <td align="center" width="180">
<a href="https://github.com/mui-org/material-ui"> <a href="https://github.com/mui/material-ui">
<img src="https://avatars2.githubusercontent.com/u/33663932?s=200&v=4" width="46"/> <img src="https://avatars.githubusercontent.com/u/33663932?s=200&v=4" width="46"/>
</a> </a>
</td> </td>
<td align="center" width="180"> <td align="center" width="180">
@@ -121,7 +121,7 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td align="center" width="180"><a href="https://github.com/mui-org/material-ui">material-ui</a></td> <td align="center" width="180"><a href="https://github.com/mui/material-ui">material-ui</a></td>
<td align="center" width="180"><a href="https://github.com/TuSimple/naive-ui">naive-ui</a></td> <td align="center" width="180"><a href="https://github.com/TuSimple/naive-ui">naive-ui</a></td>
<td align="center" width="180"><a href="https://github.com/jdf2e/nutui">nutui</a></td> <td align="center" width="180"><a href="https://github.com/jdf2e/nutui">nutui</a></td>
<td align="center" width="180"><a href="https://github.com/prettier/prettier">prettier</a></td> <td align="center" width="180"><a href="https://github.com/prettier/prettier">prettier</a></td>
@@ -773,7 +773,7 @@ jobs:
- `issue-assignee`:不支持多人。不填或输入 * 时,查询所有。输入 `none` 会查询未添加指定人的 issues - `issue-assignee`:不支持多人。不填或输入 * 时,查询所有。输入 `none` 会查询未添加指定人的 issues
- `inactive-day`:当输入时,会筛选 issue 更新时间早于当前时间减去非活跃天数。不填时,会查询所有 - `inactive-day`:当输入时,会筛选 issue 更新时间早于当前时间减去非活跃天数。不填时,会查询所有
- `inactive-label`:默认为 `inactive`,可自定义其他。当项目未包含该 label 时,会自动新建 - `inactive-label`:默认为 `inactive`,可自定义其他。当项目未包含该 label 时,会自动新建
- `exclude-labels`: 设置包含 `$exclude-empty` 时,可排除无 label issue - `exclude-labels`设置包含 `$exclude-empty` 时,可排除无 label issue
⏫ [返回列表](#列-表) ⏫ [返回列表](#列-表)
@@ -862,7 +862,7 @@ jobs:
- `labels`:为多个时,会查询同时拥有多个。不填时,会查询所有 - `labels`:为多个时,会查询同时拥有多个。不填时,会查询所有
- `issue-assignee`:不支持多人。不填或输入 * 时,查询所有。输入 `none` 会查询未添加指定人的 issues - `issue-assignee`:不支持多人。不填或输入 * 时,查询所有。输入 `none` 会查询未添加指定人的 issues
- `inactive-day`:当输入时,会筛选 issue 更新时间早于当前时间减去非活跃天数。不填时,会查询所有 - `inactive-day`:当输入时,会筛选 issue 更新时间早于当前时间减去非活跃天数。不填时,会查询所有
- `exclude-labels`: 设置包含 `$exclude-empty` 时,可排除无 label issue - `exclude-labels`设置包含 `$exclude-empty` 时,可排除无 label issue
⏫ [返回列表](#列-表) ⏫ [返回列表](#列-表)
@@ -943,7 +943,7 @@ jobs:
- `direction` 默认为升序,只有设置 `desc` 时,会返回降序 - `direction` 默认为升序,只有设置 `desc` 时,会返回降序
- 返回数组中 `created` `updated`,由所处环境决定,会是 UTC +0 - 返回数组中 `created` `updated`,由所处环境决定,会是 UTC +0
- `exclude-labels`: 设置包含 `$exclude-empty` 时,可排除无 label issue - `exclude-labels`设置包含 `$exclude-empty` 时,可排除无 label issue
⏫ [返回列表](#列-表) ⏫ [返回列表](#列-表)
@@ -992,7 +992,7 @@ jobs:
- `issue-state`:默认为 `open`。可选值 `all` `closed`,非这 2 项时,均为 `open` - `issue-state`:默认为 `open`。可选值 `all` `closed`,非这 2 项时,均为 `open`
- `issue-assignee`:不支持多人。不填或输入 * 时,查询所有。输入 `none` 会查询未添加指定人的 issues - `issue-assignee`:不支持多人。不填或输入 * 时,查询所有。输入 `none` 会查询未添加指定人的 issues
- `inactive-day`:当输入时,会筛选 issue 更新时间早于当前时间减去非活跃天数。不填时,会查询所有 - `inactive-day`:当输入时,会筛选 issue 更新时间早于当前时间减去非活跃天数。不填时,会查询所有
- `exclude-labels`: 设置包含 `$exclude-empty` 时,可排除无 label issue - `exclude-labels`设置包含 `$exclude-empty` 时,可排除无 label issue
⏫ [返回列表](#列-表) ⏫ [返回列表](#列-表)

View File

@@ -31,8 +31,8 @@ const users = [
logo: 'https://user-images.githubusercontent.com/29775873/129506134-55044c85-24cd-47d3-81ef-dba842214d71.png' logo: 'https://user-images.githubusercontent.com/29775873/129506134-55044c85-24cd-47d3-81ef-dba842214d71.png'
}, },
{ {
url: 'https://github.com/mui-org/material-ui', url: 'https://github.com/mui/material-ui',
logo: 'https://avatars2.githubusercontent.com/u/33663932?s=200&v=4' logo: 'https://avatars.githubusercontent.com/u/33663932?s=200&v=4'
}, },
{ {
url: 'https://github.com/lijinke666/react-music-player', url: 'https://github.com/lijinke666/react-music-player',

2
dist/index.js vendored
View File

@@ -14934,7 +14934,7 @@ function doMarkDuplicate(comment, closeReason, labels, emoji) {
if (duplicateLabels) { if (duplicateLabels) {
newLabels = [...newLabels, ...(0, actions_util_1.dealStringToArr)(duplicateLabels)]; newLabels = [...newLabels, ...(0, actions_util_1.dealStringToArr)(duplicateLabels)];
} }
if (labels) { if (labels === null || labels === void 0 ? void 0 : labels.length) {
newLabels = [...labels]; newLabels = [...labels];
} }
if (newLabels.length > 0) { if (newLabels.length > 0) {

View File

@@ -344,7 +344,7 @@ export async function doMarkDuplicate(
if (duplicateLabels) { if (duplicateLabels) {
newLabels = [...newLabels, ...dealStringToArr(duplicateLabels)]; newLabels = [...newLabels, ...dealStringToArr(duplicateLabels)];
} }
if (labels) { if (labels?.length) {
newLabels = [...labels]; newLabels = [...labels];
} }
if (newLabels.length > 0) { if (newLabels.length > 0) {

View File

@@ -51,7 +51,7 @@ jobs:
- `issue-assignee`:不支持多人。不填或输入 * 时,查询所有。输入 `none` 会查询未添加指定人的 issues - `issue-assignee`:不支持多人。不填或输入 * 时,查询所有。输入 `none` 会查询未添加指定人的 issues
- `inactive-day`:当输入时,会筛选 issue 更新时间早于当前时间减去非活跃天数。不填时,会查询所有 - `inactive-day`:当输入时,会筛选 issue 更新时间早于当前时间减去非活跃天数。不填时,会查询所有
- `inactive-label`:默认为 `inactive`,可自定义其他。当项目未包含该 label 时,会自动新建 - `inactive-label`:默认为 `inactive`,可自定义其他。当项目未包含该 label 时,会自动新建
- `exclude-labels`: 设置包含 `$exclude-empty` 时,可排除无 label issue - `exclude-labels`设置包含 `$exclude-empty` 时,可排除无 label issue
## `check-issue` ## `check-issue`
@@ -136,7 +136,7 @@ jobs:
- `labels`:为多个时,会查询同时拥有多个。不填时,会查询所有 - `labels`:为多个时,会查询同时拥有多个。不填时,会查询所有
- `issue-assignee`:不支持多人。不填或输入 * 时,查询所有。输入 `none` 会查询未添加指定人的 issues - `issue-assignee`:不支持多人。不填或输入 * 时,查询所有。输入 `none` 会查询未添加指定人的 issues
- `inactive-day`:当输入时,会筛选 issue 更新时间早于当前时间减去非活跃天数。不填时,会查询所有 - `inactive-day`:当输入时,会筛选 issue 更新时间早于当前时间减去非活跃天数。不填时,会查询所有
- `exclude-labels`: 设置包含 `$exclude-empty` 时,可排除无 label issue - `exclude-labels`设置包含 `$exclude-empty` 时,可排除无 label issue
## `find-comments` ## `find-comments`
@@ -213,7 +213,7 @@ jobs:
- `direction` 默认为升序,只有设置 `desc` 时,会返回降序 - `direction` 默认为升序,只有设置 `desc` 时,会返回降序
- 返回数组中 `created` `updated`,由所处环境决定,会是 UTC +0 - 返回数组中 `created` `updated`,由所处环境决定,会是 UTC +0
- `exclude-labels`: 设置包含 `$exclude-empty` 时,可排除无 label issue - `exclude-labels`设置包含 `$exclude-empty` 时,可排除无 label issue
## `lock-issues` ## `lock-issues`
@@ -260,7 +260,7 @@ jobs:
- `issue-state`:默认为 `all`。可选值 `open` `closed`,非这 2 项时,均为 `all` - `issue-state`:默认为 `all`。可选值 `open` `closed`,非这 2 项时,均为 `all`
- `issue-assignee`:不支持多人。不填或输入 * 时,查询所有。输入 `none` 会查询未添加指定人的 issues - `issue-assignee`:不支持多人。不填或输入 * 时,查询所有。输入 `none` 会查询未添加指定人的 issues
- `inactive-day`:当输入时,会筛选 issue 更新时间早于当前时间减去非活跃天数。不填时,会查询所有 - `inactive-day`:当输入时,会筛选 issue 更新时间早于当前时间减去非活跃天数。不填时,会查询所有
- `exclude-labels`: 设置包含 `$exclude-empty` 时,可排除无 label issue - `exclude-labels`设置包含 `$exclude-empty` 时,可排除无 label issue
## `mark-assignees` ## `mark-assignees`