mirror of
https://gitea.com/Lydanne/issues-helper.git
synced 2025-08-20 02:35:58 +08:00
Compare commits
9 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
6672cf5641 | ||
![]() |
68a418a2e3 | ||
![]() |
95857edf92 | ||
![]() |
99345e5b9f | ||
![]() |
0e8eacd7fd | ||
![]() |
b9d9c9bdd8 | ||
![]() |
863fd9715c | ||
![]() |
aef41a8473 | ||
![]() |
40c49147c3 |
12
CHANGELOG.md
12
CHANGELOG.md
@@ -7,6 +7,18 @@
|
||||
🛠 refactor
|
||||
-->
|
||||
|
||||
## v3.1.0
|
||||
|
||||
`2022.08.09`
|
||||
|
||||
- 🚀 feat: add reason for closing issue. [#110](https://github.com/actions-cool/issues-helper/pull/110) [@Xhofe](https://github.com/Xhofe)
|
||||
|
||||
## v3.0.1
|
||||
|
||||
`2022.08.01`
|
||||
|
||||
- 🐞 fix: check will undefined.
|
||||
|
||||
## v3.0.0
|
||||
|
||||
`2022.02.15`
|
||||
|
@@ -61,8 +61,8 @@ Please leave a message at [**here**](https://github.com/actions-cool/issues-help
|
||||
</a>
|
||||
</td>
|
||||
<td align="center" width="180">
|
||||
<a href="https://github.com/umijs/dumi">
|
||||
<img src="https://avatars1.githubusercontent.com/u/33895495?s=200&v=4" width="46"/>
|
||||
<a href="https://github.com/twbs/bootstrap">
|
||||
<img src="https://getbootstrap.com/docs/5.1/assets/brand/bootstrap-logo-shadow.png" width="46"/>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -70,8 +70,13 @@ Please leave a message at [**here**](https://github.com/actions-cool/issues-help
|
||||
<td align="center" width="180"><a href="https://github.com/ant-design/ant-design">ant-design</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/ant-design-blazor/ant-design-blazor">ant-design-blazor</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/vueComponent/ant-design-vue">ant-design-vue</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/umijs/dumi">dumi</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/twbs/bootstrap">bootstrap</a></td>
|
||||
</tr><tr>
|
||||
<td align="center" width="180">
|
||||
<a href="https://github.com/umijs/dumi">
|
||||
<img src="https://avatars1.githubusercontent.com/u/33895495?s=200&v=4" width="46"/>
|
||||
</a>
|
||||
</td>
|
||||
<td align="center" width="180">
|
||||
<a href="https://github.com/element-plus/element-plus">
|
||||
<img src="https://avatars.githubusercontent.com/u/68583457" width="46"/>
|
||||
@@ -87,18 +92,18 @@ Please leave a message at [**here**](https://github.com/actions-cool/issues-help
|
||||
<img src="https://avatars.githubusercontent.com/u/6128107?s=200&v=4" width="46"/>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" width="180"><a href="https://github.com/umijs/dumi">dumi</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/element-plus/element-plus">element-plus</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/alibaba/formily">formily</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/vuejs/jsx-next">jsx-next</a></td>
|
||||
</tr><tr>
|
||||
<td align="center" width="180">
|
||||
<a href="https://github.com/mui-org/material-ui">
|
||||
<img src="https://avatars2.githubusercontent.com/u/33663932?s=200&v=4" width="46"/>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" width="180"><a href="https://github.com/element-plus/element-plus">element-plus</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/alibaba/formily">formily</a></td>
|
||||
<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/mui-org/material-ui">material-ui</a></td>
|
||||
</tr><tr>
|
||||
<td align="center" width="180">
|
||||
<a href="https://github.com/TuSimple/naive-ui">
|
||||
<img src="https://camo.githubusercontent.com/b8ebecade711b9ae1fa306e7a1c9dd680fb56b0e2b9f015fec9cbad343570353/68747470733a2f2f6e6169766575692e6f73732d636e2d686f6e676b6f6e672e616c6979756e63732e636f6d2f6e616976656c6f676f2e737667" width="46"/>
|
||||
@@ -114,18 +119,18 @@ Please leave a message at [**here**](https://github.com/actions-cool/issues-help
|
||||
<img src="https://user-images.githubusercontent.com/29775873/129505900-ca248179-2435-429d-9fd3-779206bcd899.png" width="46"/>
|
||||
</a>
|
||||
</td>
|
||||
</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/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/prettier/prettier">prettier</a></td>
|
||||
</tr><tr>
|
||||
<td align="center" width="180">
|
||||
<a href="https://github.com/ant-design/pro-components">
|
||||
<img src="https://avatars1.githubusercontent.com/u/12101536?s=200&v=4" width="46"/>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<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/prettier/prettier">prettier</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/ant-design/pro-components">pro-components</a></td>
|
||||
</tr><tr>
|
||||
<td align="center" width="180">
|
||||
<a href="https://github.com/react-component">
|
||||
<img src="https://avatars3.githubusercontent.com/u/9441414?s=200&v=4" width="46"/>
|
||||
@@ -141,23 +146,40 @@ Please leave a message at [**here**](https://github.com/actions-cool/issues-help
|
||||
<img src="https://gw.alipayobjects.com/mdn/rms_56cbb2/afts/img/A*TI8XSK3W0EkAAAAAAAAAAAAAARQnAQ" width="46"/>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" width="180"><a href="https://github.com/ant-design/pro-components">pro-components</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/react-component">react-component</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/lijinke666/react-music-player">react-music-player</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/antvis/S2">S2</a></td>
|
||||
</tr><tr>
|
||||
<td align="center" width="180">
|
||||
<a href="https://github.com/nolimits4web/swiper">
|
||||
<img src="https://user-images.githubusercontent.com/29775873/156721728-3b0021ea-6932-4a77-a104-2e0bad97346e.png" width="46"/>
|
||||
</a>
|
||||
</td>
|
||||
<td align="center" width="180">
|
||||
<a href="https://github.com/umijs/umi">
|
||||
<img src="https://avatars1.githubusercontent.com/u/33895495?s=200&v=4" width="46"/>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" width="180"><a href="https://github.com/react-component">react-component</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/lijinke666/react-music-player">react-music-player</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/antvis/S2">S2</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/umijs/umi">umi</a></td>
|
||||
</tr><tr>
|
||||
<td align="center" width="180">
|
||||
<a href="https://github.com/vitejs/vite">
|
||||
<img src="https://avatars.githubusercontent.com/u/65625612?s=200&v=4" width="46"/>
|
||||
</a>
|
||||
</td>
|
||||
<td align="center" width="180">
|
||||
<a href="https://github.com/vitest-dev/vitest">
|
||||
<img src="https://user-images.githubusercontent.com/11247099/145112184-a9ff6727-661c-439d-9ada-963124a281f7.png" width="46"/>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" width="180"><a href="https://github.com/nolimits4web/swiper">swiper</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/umijs/umi">umi</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/vitejs/vite">vite</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/vitest-dev/vitest">vitest</a></td>
|
||||
</tr><tr>
|
||||
<td align="center" width="180">
|
||||
<a href="https://github.com/AttoJS/vue-request">
|
||||
<img src="https://user-images.githubusercontent.com/29775873/129506134-55044c85-24cd-47d3-81ef-dba842214d71.png" width="46"/>
|
||||
@@ -173,12 +195,13 @@ Please leave a message at [**here**](https://github.com/actions-cool/issues-help
|
||||
<img src="https://avatars1.githubusercontent.com/u/70757173?s=200&v=4" width="46"/>
|
||||
</a>
|
||||
</td>
|
||||
<td align="center" width="180"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" width="180"><a href="https://github.com/vitejs/vite">vite</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/AttoJS/vue-request">vue-request</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/vuepress/vuepress-next">vuepress-next</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/zoo-js/zoo">zoo</a></td>
|
||||
<td align="center" width="180"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -331,6 +354,7 @@ Close the specified issue.
|
||||
| actions | Action type | string | ✔ |
|
||||
| token | [Token explain](#token) | string | ✖ |
|
||||
| issue-number | The number of issue. When not input, it will be obtained from the trigger event | number | ✖ |
|
||||
| close-reason | Reason for closing. Default `not_planned`, another `completed` | string | ✖ |
|
||||
|
||||
⏫ [Back to list](#List)
|
||||
|
||||
@@ -833,6 +857,7 @@ jobs:
|
||||
| title-includes | Title filtering | string | ✖ |
|
||||
| inactive-day | Inactive days filtering | number | ✖ |
|
||||
| exclude-labels | Exclude labels filtering | string | ✖ |
|
||||
| close-reason | Reason for closing. Default `not_planned`, another `completed` | string | ✖ |
|
||||
|
||||
- `labels`: When there are multiple, the query will have multiple at the same time. If not entered, all
|
||||
- `issue-assignee`: Multiplayer is not supported. If you do not enter or enter *, all will be searched. Entering `none` will query issues for which the specified person is not added
|
||||
@@ -980,10 +1005,10 @@ on:
|
||||
types: [created, edited]
|
||||
|
||||
jobs:
|
||||
mark-duplicate:
|
||||
mark-assignees:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: mark-duplicate
|
||||
- name: mark-assignees
|
||||
uses: actions-cool/issues-helper@v3
|
||||
with:
|
||||
actions: 'mark-assignees'
|
||||
@@ -1039,6 +1064,7 @@ jobs:
|
||||
| emoji | Add [reaction](#emoji-types) for this comment | string | ✖ |
|
||||
| close-issue | Whether to close the issue at the same time | string | ✖ |
|
||||
| require-permission | Permission required, default is `write` | string | ✖ |
|
||||
| close-reason | Reason for closing. Default `not_planned`, another `completed` | string | ✖ |
|
||||
|
||||
- `duplicate-command`: When setting concise commands, while still supporting the original `Duplicate of`. Block content contains `?`
|
||||
- `labels`: Highest priority
|
||||
|
80
README.md
80
README.md
@@ -61,8 +61,8 @@
|
||||
</a>
|
||||
</td>
|
||||
<td align="center" width="180">
|
||||
<a href="https://github.com/umijs/dumi">
|
||||
<img src="https://avatars1.githubusercontent.com/u/33895495?s=200&v=4" width="46"/>
|
||||
<a href="https://github.com/twbs/bootstrap">
|
||||
<img src="https://getbootstrap.com/docs/5.1/assets/brand/bootstrap-logo-shadow.png" width="46"/>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -70,8 +70,13 @@
|
||||
<td align="center" width="180"><a href="https://github.com/ant-design/ant-design">ant-design</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/ant-design-blazor/ant-design-blazor">ant-design-blazor</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/vueComponent/ant-design-vue">ant-design-vue</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/umijs/dumi">dumi</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/twbs/bootstrap">bootstrap</a></td>
|
||||
</tr><tr>
|
||||
<td align="center" width="180">
|
||||
<a href="https://github.com/umijs/dumi">
|
||||
<img src="https://avatars1.githubusercontent.com/u/33895495?s=200&v=4" width="46"/>
|
||||
</a>
|
||||
</td>
|
||||
<td align="center" width="180">
|
||||
<a href="https://github.com/element-plus/element-plus">
|
||||
<img src="https://avatars.githubusercontent.com/u/68583457" width="46"/>
|
||||
@@ -87,18 +92,18 @@
|
||||
<img src="https://avatars.githubusercontent.com/u/6128107?s=200&v=4" width="46"/>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" width="180"><a href="https://github.com/umijs/dumi">dumi</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/element-plus/element-plus">element-plus</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/alibaba/formily">formily</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/vuejs/jsx-next">jsx-next</a></td>
|
||||
</tr><tr>
|
||||
<td align="center" width="180">
|
||||
<a href="https://github.com/mui-org/material-ui">
|
||||
<img src="https://avatars2.githubusercontent.com/u/33663932?s=200&v=4" width="46"/>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" width="180"><a href="https://github.com/element-plus/element-plus">element-plus</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/alibaba/formily">formily</a></td>
|
||||
<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/mui-org/material-ui">material-ui</a></td>
|
||||
</tr><tr>
|
||||
<td align="center" width="180">
|
||||
<a href="https://github.com/TuSimple/naive-ui">
|
||||
<img src="https://camo.githubusercontent.com/b8ebecade711b9ae1fa306e7a1c9dd680fb56b0e2b9f015fec9cbad343570353/68747470733a2f2f6e6169766575692e6f73732d636e2d686f6e676b6f6e672e616c6979756e63732e636f6d2f6e616976656c6f676f2e737667" width="46"/>
|
||||
@@ -114,18 +119,18 @@
|
||||
<img src="https://user-images.githubusercontent.com/29775873/129505900-ca248179-2435-429d-9fd3-779206bcd899.png" width="46"/>
|
||||
</a>
|
||||
</td>
|
||||
</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/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/prettier/prettier">prettier</a></td>
|
||||
</tr><tr>
|
||||
<td align="center" width="180">
|
||||
<a href="https://github.com/ant-design/pro-components">
|
||||
<img src="https://avatars1.githubusercontent.com/u/12101536?s=200&v=4" width="46"/>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<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/prettier/prettier">prettier</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/ant-design/pro-components">pro-components</a></td>
|
||||
</tr><tr>
|
||||
<td align="center" width="180">
|
||||
<a href="https://github.com/react-component">
|
||||
<img src="https://avatars3.githubusercontent.com/u/9441414?s=200&v=4" width="46"/>
|
||||
@@ -141,23 +146,40 @@
|
||||
<img src="https://gw.alipayobjects.com/mdn/rms_56cbb2/afts/img/A*TI8XSK3W0EkAAAAAAAAAAAAAARQnAQ" width="46"/>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" width="180"><a href="https://github.com/ant-design/pro-components">pro-components</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/react-component">react-component</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/lijinke666/react-music-player">react-music-player</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/antvis/S2">S2</a></td>
|
||||
</tr><tr>
|
||||
<td align="center" width="180">
|
||||
<a href="https://github.com/nolimits4web/swiper">
|
||||
<img src="https://user-images.githubusercontent.com/29775873/156721728-3b0021ea-6932-4a77-a104-2e0bad97346e.png" width="46"/>
|
||||
</a>
|
||||
</td>
|
||||
<td align="center" width="180">
|
||||
<a href="https://github.com/umijs/umi">
|
||||
<img src="https://avatars1.githubusercontent.com/u/33895495?s=200&v=4" width="46"/>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" width="180"><a href="https://github.com/react-component">react-component</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/lijinke666/react-music-player">react-music-player</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/antvis/S2">S2</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/umijs/umi">umi</a></td>
|
||||
</tr><tr>
|
||||
<td align="center" width="180">
|
||||
<a href="https://github.com/vitejs/vite">
|
||||
<img src="https://avatars.githubusercontent.com/u/65625612?s=200&v=4" width="46"/>
|
||||
</a>
|
||||
</td>
|
||||
<td align="center" width="180">
|
||||
<a href="https://github.com/vitest-dev/vitest">
|
||||
<img src="https://user-images.githubusercontent.com/11247099/145112184-a9ff6727-661c-439d-9ada-963124a281f7.png" width="46"/>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" width="180"><a href="https://github.com/nolimits4web/swiper">swiper</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/umijs/umi">umi</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/vitejs/vite">vite</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/vitest-dev/vitest">vitest</a></td>
|
||||
</tr><tr>
|
||||
<td align="center" width="180">
|
||||
<a href="https://github.com/AttoJS/vue-request">
|
||||
<img src="https://user-images.githubusercontent.com/29775873/129506134-55044c85-24cd-47d3-81ef-dba842214d71.png" width="46"/>
|
||||
@@ -173,12 +195,13 @@
|
||||
<img src="https://avatars1.githubusercontent.com/u/70757173?s=200&v=4" width="46"/>
|
||||
</a>
|
||||
</td>
|
||||
<td align="center" width="180"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" width="180"><a href="https://github.com/vitejs/vite">vite</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/AttoJS/vue-request">vue-request</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/vuepress/vuepress-next">vuepress-next</a></td>
|
||||
<td align="center" width="180"><a href="https://github.com/zoo-js/zoo">zoo</a></td>
|
||||
<td align="center" width="180"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -335,6 +358,7 @@ jobs:
|
||||
| actions | 操作类型 | string | ✔ |
|
||||
| token | [token 说明](#token) | string | ✖ |
|
||||
| issue-number | 指定的 issue,当不传时会从触发事件中获取 | number | ✖ |
|
||||
| close-reason | 关闭原因。默认`not_planned`未计划,`completed`完成 | string | ✖ |
|
||||
|
||||
⏫ [返回列表](#列-表)
|
||||
|
||||
@@ -832,6 +856,7 @@ jobs:
|
||||
| title-includes | 包含标题筛选 | string | ✖ |
|
||||
| inactive-day | 非活跃天数筛选 | number | ✖ |
|
||||
| exclude-labels | 排除标签筛选 | string | ✖ |
|
||||
| close-reason | 关闭原因。默认`not_planned`未计划,`completed`完成 | string | ✖ |
|
||||
|
||||
- `labels`:为多个时,会查询同时拥有多个。不填时,会查询所有
|
||||
- `issue-assignee`:不支持多人。不填或输入 * 时,查询所有。输入 `none` 会查询未添加指定人的 issues
|
||||
@@ -979,10 +1004,10 @@ on:
|
||||
types: [created, edited]
|
||||
|
||||
jobs:
|
||||
mark-duplicate:
|
||||
mark-assignees:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: mark-duplicate
|
||||
- name: mark-assignees
|
||||
uses: actions-cool/issues-helper@v3
|
||||
with:
|
||||
actions: 'mark-assignees'
|
||||
@@ -1038,6 +1063,7 @@ jobs:
|
||||
| emoji | 为该评论的增加 [emoji](#emoji-types) | string | ✖ |
|
||||
| close-issue | 是否同时关闭该 issue | string | ✖ |
|
||||
| require-permission | 要求权限,默认为 `write` | string | ✖ |
|
||||
| close-reason | 关闭原因。默认`not_planned`未计划,`completed`完成 | string | ✖ |
|
||||
|
||||
- `duplicate-command`:当设置简洁命令时,同时仍支持原有 `Duplicate of`。屏蔽内容包含 `?`
|
||||
- `labels`:优先级最高
|
||||
|
18
USERS.js
18
USERS.js
@@ -4,9 +4,9 @@
|
||||
// step3: push 3 files & open a new PR
|
||||
|
||||
/**
|
||||
* @param {string} url github地址
|
||||
* @param {string} logo logo地址
|
||||
* @param {string} width 自定义宽度,设置 auto 用于长型 logo
|
||||
* @param {string} url github repo
|
||||
* @param {string} logo logo url
|
||||
* @param {string} width auto use rectangle logo
|
||||
*/
|
||||
|
||||
const users = [
|
||||
@@ -91,6 +91,18 @@ const users = [
|
||||
url: 'https://github.com/antvis/S2',
|
||||
logo: 'https://gw.alipayobjects.com/mdn/rms_56cbb2/afts/img/A*TI8XSK3W0EkAAAAAAAAAAAAAARQnAQ',
|
||||
},
|
||||
{
|
||||
url: 'https://github.com/twbs/bootstrap',
|
||||
logo: 'https://getbootstrap.com/docs/5.1/assets/brand/bootstrap-logo-shadow.png',
|
||||
},
|
||||
{
|
||||
url: 'https://github.com/nolimits4web/swiper',
|
||||
logo: 'https://user-images.githubusercontent.com/29775873/156721728-3b0021ea-6932-4a77-a104-2e0bad97346e.png',
|
||||
},
|
||||
{
|
||||
url: 'https://github.com/vitest-dev/vitest',
|
||||
logo: 'https://user-images.githubusercontent.com/11247099/145112184-a9ff6727-661c-439d-9ada-963124a281f7.png',
|
||||
},
|
||||
];
|
||||
|
||||
// **************************************************************************
|
||||
|
@@ -28,6 +28,8 @@ inputs:
|
||||
description: 'Issue assignees'
|
||||
random-to:
|
||||
description: 'Issue assignees random to'
|
||||
close-reason:
|
||||
description: 'Issue close reason'
|
||||
|
||||
# label
|
||||
labels:
|
||||
|
32
dist/index.js
vendored
32
dist/index.js
vendored
@@ -14753,16 +14753,17 @@ function doCheckIssue() {
|
||||
const bodyArr = bodyIncludes.split('/');
|
||||
const keyword1 = (0, actions_util_1.dealStringToArr)(bodyArr[0]);
|
||||
const keyword2 = (0, actions_util_1.dealStringToArr)(bodyArr[1]);
|
||||
checkResult = keyword2.length
|
||||
? (0, util_1.matchKeyword)(issue.body, keyword1) && (0, util_1.matchKeyword)(issue.body, keyword2)
|
||||
: (0, util_1.matchKeyword)(issue.body, keyword1);
|
||||
checkResult =
|
||||
keyword2 && keyword2.length
|
||||
? (0, util_1.matchKeyword)(issue.body, keyword1) && (0, util_1.matchKeyword)(issue.body, keyword2)
|
||||
: (0, util_1.matchKeyword)(issue.body, keyword1);
|
||||
}
|
||||
core.info(`[doCheckIssue] result is [${checkResult}]`);
|
||||
core.setOutput('check-result', checkResult);
|
||||
});
|
||||
}
|
||||
exports.doCheckIssue = doCheckIssue;
|
||||
function doCloseIssues(body, emoji) {
|
||||
function doCloseIssues(body, closeReason, emoji) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const issues = yield doQueryIssues('open');
|
||||
if (issues.length) {
|
||||
@@ -14770,7 +14771,7 @@ function doCloseIssues(body, emoji) {
|
||||
core.info(`[doCloseIssues] Doing ---> ${number}`);
|
||||
if (body)
|
||||
yield (0, base_1.doCreateComment)(body, emoji, number);
|
||||
yield (0, base_1.doCloseIssue)(number);
|
||||
yield (0, base_1.doCloseIssue)(closeReason, number);
|
||||
}
|
||||
}
|
||||
else {
|
||||
@@ -14888,7 +14889,7 @@ function doMarkAssignees(comment) {
|
||||
});
|
||||
}
|
||||
exports.doMarkAssignees = doMarkAssignees;
|
||||
function doMarkDuplicate(comment, labels, emoji) {
|
||||
function doMarkDuplicate(comment, closeReason, labels, emoji) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const duplicateCommand = core.getInput('duplicate-command');
|
||||
const duplicateLabels = core.getInput('duplicate-labels');
|
||||
@@ -14933,7 +14934,7 @@ function doMarkDuplicate(comment, labels, emoji) {
|
||||
yield (0, base_1.doSetLabels)(newLabels);
|
||||
}
|
||||
if (closeIssue === 'true') {
|
||||
yield (0, base_1.doCloseIssue)();
|
||||
yield (0, base_1.doCloseIssue)(closeReason);
|
||||
}
|
||||
core.info(`[doMarkDuplicate] Done!`);
|
||||
}
|
||||
@@ -15031,11 +15032,11 @@ function doAddLabels(labels, issueNumber) {
|
||||
});
|
||||
}
|
||||
exports.doAddLabels = doAddLabels;
|
||||
function doCloseIssue(issueNumber) {
|
||||
function doCloseIssue(reason, issueNumber) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
if (issueNumber)
|
||||
ICE.setIssueNumber(issueNumber);
|
||||
yield ICE.closeIssue();
|
||||
yield ICE.closeIssue(reason);
|
||||
core.info(`[doCloseIssue] success!`);
|
||||
});
|
||||
}
|
||||
@@ -15243,6 +15244,7 @@ class IssueHelperEngine {
|
||||
this.body = '';
|
||||
this.state = 'open';
|
||||
this.updateMode = 'replace';
|
||||
this.closeReason = 'not_planned';
|
||||
this.initInput(ctx);
|
||||
this.initIssueCore();
|
||||
(0, base_1.initBaseICE)(this.ICE);
|
||||
@@ -15280,6 +15282,7 @@ class IssueHelperEngine {
|
||||
this.body = core.getInput('body') || '';
|
||||
this.state = core.getInput('state') === 'closed' ? 'closed' : 'open';
|
||||
this.updateMode = core.getInput('update-mode') === 'append' ? 'append' : 'replace';
|
||||
this.closeReason = core.getInput('close-reason') === 'completed' ? 'completed' : 'not_planned';
|
||||
}
|
||||
initIssueCore() {
|
||||
const { owner, repo, issueNumber } = this;
|
||||
@@ -15294,7 +15297,7 @@ class IssueHelperEngine {
|
||||
}
|
||||
doExeAction(action) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const { issueNumber, emoji, labels, assignees, title, body, updateMode, state, ctx } = this;
|
||||
const { issueNumber, emoji, labels, assignees, title, body, updateMode, state, ctx, closeReason, } = this;
|
||||
switch (action) {
|
||||
// ---[ Base Begin ]--->>>
|
||||
case 'add-assignees': {
|
||||
@@ -15316,7 +15319,7 @@ class IssueHelperEngine {
|
||||
break;
|
||||
}
|
||||
case 'close-issue': {
|
||||
yield (0, base_1.doCloseIssue)();
|
||||
yield (0, base_1.doCloseIssue)(closeReason);
|
||||
break;
|
||||
}
|
||||
case 'create-comment': {
|
||||
@@ -15394,7 +15397,7 @@ class IssueHelperEngine {
|
||||
break;
|
||||
}
|
||||
case 'close-issues': {
|
||||
yield (0, advanced_1.doCloseIssues)(body, emoji);
|
||||
yield (0, advanced_1.doCloseIssues)(body, closeReason, emoji);
|
||||
break;
|
||||
}
|
||||
case 'find-comments': {
|
||||
@@ -15422,7 +15425,7 @@ class IssueHelperEngine {
|
||||
core.warning(`[mark-duplicate] only support event '[issue_comment: created/edited]'!`);
|
||||
return;
|
||||
}
|
||||
yield (0, advanced_1.doMarkDuplicate)(ctx.payload.comment, labels, emoji);
|
||||
yield (0, advanced_1.doMarkDuplicate)(ctx.payload.comment, closeReason, labels, emoji);
|
||||
break;
|
||||
}
|
||||
case 'welcome': {
|
||||
@@ -15563,7 +15566,7 @@ class IssueCoreEngine {
|
||||
});
|
||||
});
|
||||
}
|
||||
closeIssue() {
|
||||
closeIssue(reason) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const { owner, repo, octokit, issueNumber } = this;
|
||||
yield octokit.issues.update({
|
||||
@@ -15571,6 +15574,7 @@ class IssueCoreEngine {
|
||||
repo,
|
||||
issue_number: issueNumber,
|
||||
state: 'closed',
|
||||
state_reason: reason,
|
||||
});
|
||||
});
|
||||
}
|
||||
|
@@ -6,7 +6,7 @@ import utc from 'dayjs/plugin/utc';
|
||||
|
||||
import * as core from '../core';
|
||||
import type { IIssueCoreEngine, IListIssuesParams, TCommentInfo, TIssueList } from '../issue';
|
||||
import type { TEmoji, TIssueState, TOutList } from '../types';
|
||||
import type { TCloseReason, TEmoji, TIssueState, TOutList } from '../types';
|
||||
import { checkDuplicate, matchKeyword, replaceStr2Arr } from '../util';
|
||||
import {
|
||||
doAddAssignees,
|
||||
@@ -169,22 +169,23 @@ export async function doCheckIssue() {
|
||||
const bodyArr = bodyIncludes.split('/');
|
||||
const keyword1 = dealStringToArr(bodyArr[0]);
|
||||
const keyword2 = dealStringToArr(bodyArr[1]);
|
||||
checkResult = keyword2.length
|
||||
? matchKeyword(issue.body, keyword1) && matchKeyword(issue.body, keyword2)
|
||||
: matchKeyword(issue.body, keyword1);
|
||||
checkResult =
|
||||
keyword2 && keyword2.length
|
||||
? matchKeyword(issue.body, keyword1) && matchKeyword(issue.body, keyword2)
|
||||
: matchKeyword(issue.body, keyword1);
|
||||
}
|
||||
|
||||
core.info(`[doCheckIssue] result is [${checkResult}]`);
|
||||
core.setOutput('check-result', checkResult);
|
||||
}
|
||||
|
||||
export async function doCloseIssues(body: string, emoji?: string) {
|
||||
export async function doCloseIssues(body: string, closeReason: TCloseReason, emoji?: string) {
|
||||
const issues = await doQueryIssues('open');
|
||||
if (issues.length) {
|
||||
for (const { number } of issues) {
|
||||
core.info(`[doCloseIssues] Doing ---> ${number}`);
|
||||
if (body) await doCreateComment(body, emoji, number);
|
||||
await doCloseIssue(number);
|
||||
await doCloseIssue(closeReason, number);
|
||||
}
|
||||
} else {
|
||||
core.info(`[doCloseIssues] Query issues empty!`);
|
||||
@@ -292,6 +293,7 @@ export async function doMarkAssignees(comment: TCommentInfo) {
|
||||
|
||||
export async function doMarkDuplicate(
|
||||
comment: TCommentInfo,
|
||||
closeReason: TCloseReason,
|
||||
labels?: string[] | void,
|
||||
emoji?: string,
|
||||
) {
|
||||
@@ -344,7 +346,7 @@ export async function doMarkDuplicate(
|
||||
await doSetLabels(newLabels);
|
||||
}
|
||||
if (closeIssue === 'true') {
|
||||
await doCloseIssue();
|
||||
await doCloseIssue(closeReason);
|
||||
}
|
||||
core.info(`[doMarkDuplicate] Done!`);
|
||||
} else {
|
||||
|
@@ -3,7 +3,7 @@ import { dealStringToArr } from 'actions-util';
|
||||
import * as core from '../core';
|
||||
import type { IIssueCoreEngine } from '../issue';
|
||||
import { ELockReasons } from '../shared';
|
||||
import type { TEmoji, TIssueState, TLockReasons, TUpdateMode } from '../types';
|
||||
import type { TCloseReason, TEmoji, TIssueState, TLockReasons, TUpdateMode } from '../types';
|
||||
|
||||
let ICE: IIssueCoreEngine;
|
||||
export function initBaseICE(_ICE: IIssueCoreEngine) {
|
||||
@@ -21,9 +21,9 @@ export async function doAddLabels(labels: string[], issueNumber?: number) {
|
||||
core.info(`[doAddLabels] [${labels}] success!`);
|
||||
}
|
||||
|
||||
export async function doCloseIssue(issueNumber?: number) {
|
||||
export async function doCloseIssue(reason: TCloseReason, issueNumber?: number) {
|
||||
if (issueNumber) ICE.setIssueNumber(issueNumber);
|
||||
await ICE.closeIssue();
|
||||
await ICE.closeIssue(reason);
|
||||
core.info(`[doCloseIssue] success!`);
|
||||
}
|
||||
|
||||
|
@@ -3,7 +3,7 @@ import { dealStringToArr } from 'actions-util';
|
||||
import * as core from '../core';
|
||||
import type { IIssueCoreEngine, TCommentInfo } from '../issue';
|
||||
import { IssueCoreEngine } from '../issue';
|
||||
import type { Context, TAction, TIssueState, TUpdateMode } from '../types';
|
||||
import type { Context, TAction, TCloseReason, TIssueState, TUpdateMode } from '../types';
|
||||
import { dealRandomAssignees } from '../util';
|
||||
import {
|
||||
doCheckInactive,
|
||||
@@ -51,6 +51,7 @@ export class IssueHelperEngine implements IIssueHelperEngine {
|
||||
private body: string = '';
|
||||
private state: TIssueState = 'open';
|
||||
private updateMode: TUpdateMode = 'replace';
|
||||
private closeReason: TCloseReason = 'not_planned';
|
||||
|
||||
public constructor(readonly ctx: Context) {
|
||||
this.initInput(ctx);
|
||||
@@ -92,6 +93,7 @@ export class IssueHelperEngine implements IIssueHelperEngine {
|
||||
this.body = core.getInput('body') || '';
|
||||
this.state = core.getInput('state') === 'closed' ? 'closed' : 'open';
|
||||
this.updateMode = core.getInput('update-mode') === 'append' ? 'append' : 'replace';
|
||||
this.closeReason = core.getInput('close-reason') === 'completed' ? 'completed' : 'not_planned';
|
||||
}
|
||||
|
||||
private initIssueCore() {
|
||||
@@ -107,7 +109,18 @@ export class IssueHelperEngine implements IIssueHelperEngine {
|
||||
}
|
||||
|
||||
public async doExeAction(action: TAction) {
|
||||
const { issueNumber, emoji, labels, assignees, title, body, updateMode, state, ctx } = this;
|
||||
const {
|
||||
issueNumber,
|
||||
emoji,
|
||||
labels,
|
||||
assignees,
|
||||
title,
|
||||
body,
|
||||
updateMode,
|
||||
state,
|
||||
ctx,
|
||||
closeReason,
|
||||
} = this;
|
||||
switch (action) {
|
||||
// ---[ Base Begin ]--->>>
|
||||
case 'add-assignees': {
|
||||
@@ -127,7 +140,7 @@ export class IssueHelperEngine implements IIssueHelperEngine {
|
||||
break;
|
||||
}
|
||||
case 'close-issue': {
|
||||
await doCloseIssue();
|
||||
await doCloseIssue(closeReason);
|
||||
break;
|
||||
}
|
||||
case 'create-comment': {
|
||||
@@ -202,7 +215,7 @@ export class IssueHelperEngine implements IIssueHelperEngine {
|
||||
break;
|
||||
}
|
||||
case 'close-issues': {
|
||||
await doCloseIssues(body, emoji);
|
||||
await doCloseIssues(body, closeReason, emoji);
|
||||
break;
|
||||
}
|
||||
case 'find-comments': {
|
||||
@@ -230,7 +243,7 @@ export class IssueHelperEngine implements IIssueHelperEngine {
|
||||
core.warning(`[mark-duplicate] only support event '[issue_comment: created/edited]'!`);
|
||||
return;
|
||||
}
|
||||
await doMarkDuplicate(ctx.payload.comment as TCommentInfo, labels, emoji);
|
||||
await doMarkDuplicate(ctx.payload.comment as TCommentInfo, closeReason, labels, emoji);
|
||||
break;
|
||||
}
|
||||
case 'welcome': {
|
||||
|
@@ -1,7 +1,14 @@
|
||||
import { Octokit } from '@octokit/rest';
|
||||
|
||||
import { EEmoji } from '../shared';
|
||||
import type { TEmoji, TIssueState, TLockReasons, TUpdateMode, TUserPermission } from '../types';
|
||||
import type {
|
||||
TEmoji,
|
||||
TIssueState,
|
||||
TLockReasons,
|
||||
TUpdateMode,
|
||||
TUserPermission,
|
||||
TCloseReason,
|
||||
} from '../types';
|
||||
import type {
|
||||
IIssueBaseInfo,
|
||||
IIssueCoreEngine,
|
||||
@@ -53,13 +60,14 @@ export class IssueCoreEngine implements IIssueCoreEngine {
|
||||
});
|
||||
}
|
||||
|
||||
public async closeIssue() {
|
||||
public async closeIssue(reason: TCloseReason) {
|
||||
const { owner, repo, octokit, issueNumber } = this;
|
||||
await octokit.issues.update({
|
||||
owner,
|
||||
repo,
|
||||
issue_number: issueNumber,
|
||||
state: 'closed',
|
||||
state_reason: reason,
|
||||
});
|
||||
}
|
||||
|
||||
|
@@ -1,4 +1,11 @@
|
||||
import type { TEmoji, TIssueState, TLockReasons, TUpdateMode, TUserPermission } from '../types';
|
||||
import type {
|
||||
TCloseReason,
|
||||
TEmoji,
|
||||
TIssueState,
|
||||
TLockReasons,
|
||||
TUpdateMode,
|
||||
TUserPermission,
|
||||
} from '../types';
|
||||
|
||||
export interface IIssueBaseInfo {
|
||||
owner: string;
|
||||
@@ -53,7 +60,7 @@ export interface IIssueCoreEngine {
|
||||
addAssignees: (assignees: string[]) => Promise<void>;
|
||||
addLabels: (labels: string[]) => Promise<void>;
|
||||
|
||||
closeIssue: () => Promise<void>;
|
||||
closeIssue: (reason: TCloseReason) => Promise<void>;
|
||||
/**
|
||||
* @param body The comment body.
|
||||
* @returns The create new comment id.
|
||||
|
@@ -12,6 +12,8 @@ export type TUpdateMode = 'append' | 'replace';
|
||||
|
||||
export type TUserPermission = TPermissionType;
|
||||
|
||||
export type TCloseReason = 'completed' | 'not_planned';
|
||||
|
||||
export type TOutInfo = {
|
||||
auth: string;
|
||||
id?: number;
|
||||
|
@@ -3,7 +3,8 @@ import { defineConfig } from 'dumi';
|
||||
|
||||
const name = 'issues-helper';
|
||||
|
||||
const logo = 'https://gw.alipayobjects.com/mdn/rms_f97235/afts/img/A*8xDgSL-O6O4AAAAAAAAAAAAAARQnAQ';
|
||||
const logo =
|
||||
'https://gw.alipayobjects.com/mdn/rms_f97235/afts/img/A*8xDgSL-O6O4AAAAAAAAAAAAAARQnAQ';
|
||||
|
||||
export default defineConfig({
|
||||
title: 'Issues Helper',
|
||||
|
@@ -134,6 +134,7 @@ jobs:
|
||||
| title-includes | Title filtering | string | ✖ |
|
||||
| inactive-day | Inactive days filtering | number | ✖ |
|
||||
| exclude-labels | Exclude labels filtering | string | ✖ |
|
||||
| close-reason | Reason for closing. Default `not_planned`, another `completed` | string | ✖ |
|
||||
|
||||
- `labels`: When there are multiple, the query will have multiple at the same time. If not entered, all
|
||||
- `issue-assignee`: Multiplayer is not supported. If you do not enter or enter *, all will be searched. Entering `none` will query issues for which the specified person is not added
|
||||
@@ -272,10 +273,10 @@ on:
|
||||
types: [created, edited]
|
||||
|
||||
jobs:
|
||||
mark-duplicate:
|
||||
mark-assignees:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: mark-duplicate
|
||||
- name: mark-assignees
|
||||
uses: actions-cool/issues-helper@v3
|
||||
with:
|
||||
actions: 'mark-assignees'
|
||||
@@ -329,6 +330,7 @@ jobs:
|
||||
| emoji | Add [emoji](/en-US/guide/ref#-emoji-type) for this comment | string | ✖ |
|
||||
| close-issue | Whether to close the issue at the same time | string | ✖ |
|
||||
| require-permission | Permission required, default is `write` | string | ✖ |
|
||||
| close-reason | Reason for closing. Default `not_planned`, another `completed` | string | ✖ |
|
||||
|
||||
- `duplicate-command`: When setting concise commands, while still supporting the original `Duplicate of`. Block content contains `?`
|
||||
- `labels`: Highest priority
|
||||
|
@@ -130,6 +130,7 @@ jobs:
|
||||
| title-includes | 包含标题筛选 | string | ✖ |
|
||||
| inactive-day | 非活跃天数筛选 | number | ✖ |
|
||||
| exclude-labels | 排除标签筛选 | string | ✖ |
|
||||
| close-reason | 关闭原因。默认`not_planned`未计划,`completed`完成 | string | ✖ |
|
||||
|
||||
- `labels`:为多个时,会查询同时拥有多个。不填时,会查询所有
|
||||
- `issue-assignee`:不支持多人。不填或输入 * 时,查询所有。输入 `none` 会查询未添加指定人的 issues
|
||||
@@ -269,10 +270,10 @@ on:
|
||||
types: [created, edited]
|
||||
|
||||
jobs:
|
||||
mark-duplicate:
|
||||
mark-assignees:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: mark-duplicate
|
||||
- name: mark-assignees
|
||||
uses: actions-cool/issues-helper@v3
|
||||
with:
|
||||
actions: 'mark-assignees'
|
||||
@@ -326,6 +327,7 @@ jobs:
|
||||
| emoji | 为该评论的增加 [emoji](/guide/ref#-emoji-类型) | string | ✖ |
|
||||
| close-issue | 是否同时关闭该 issue | string | ✖ |
|
||||
| require-permission | 要求权限,默认为 `write` | string | ✖ |
|
||||
| close-reason | 关闭原因。默认`not_planned`未计划,`completed`完成 | string | ✖ |
|
||||
|
||||
- `duplicate-command`:当设置简洁命令时,同时仍支持原有 `Duplicate of`。屏蔽内容包含 `?`
|
||||
- `labels`:优先级最高
|
||||
|
@@ -98,6 +98,7 @@ Close the specified issue.
|
||||
| actions | Action type | string | ✔ |
|
||||
| token | [Token explain](/en-US/guide/ref#-token) | string | ✖ |
|
||||
| issue-number | The number of issue. When not input, it will be obtained from the trigger event | number | ✖ |
|
||||
| close-reason | Reason for closing. Default `not_planned`, another `completed` | string | ✖ |
|
||||
|
||||
## `create-comment`
|
||||
|
||||
|
@@ -98,6 +98,7 @@ jobs:
|
||||
| actions | 操作类型 | string | ✔ |
|
||||
| token | [token 说明](/guide/ref#-token-说明) | string | ✖ |
|
||||
| issue-number | 指定的 issue,当不传时会从触发事件中获取 | number | ✖ |
|
||||
| close-reason | 关闭原因。默认`not_planned`未计划,`completed`完成 | string | ✖ |
|
||||
|
||||
## `create-comment`
|
||||
|
||||
|
Reference in New Issue
Block a user