Compare commits

..

5 Commits

Author SHA1 Message Date
元凛
3826e864ab docs: update users 2022-10-19 21:12:17 +08:00
xrkffgg
1cb0eedfea fix: body null (#123)
* fix: body null

* docs: update changelog
2022-10-19 21:10:24 +08:00
元凛
7f09991212 docs: add user electron 2022-09-23 16:21:13 +08:00
Alexandre Burgoni
cde2648b72 docs: update find-issues reference (#117)
* chore: update find-issue section

* chore: update find-isssues reference
2022-09-16 10:04:09 +08:00
元凛
405d4bd782 style: remove empty 2022-09-02 17:15:00 +08:00
9 changed files with 55 additions and 44 deletions

View File

@@ -7,6 +7,12 @@
🛠 refactor
-->
## v3.3.1
`2022.10.19`
- 🐞 fix: body null case. [#123](https://github.com/actions-cool/issues-helper/pull/123)
## v3.3.0
`2022.09.02`

View File

@@ -77,6 +77,11 @@ Please leave a message at [**here**](https://github.com/actions-cool/issues-help
<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/electron/electron">
<img src="https://avatars.githubusercontent.com/u/13409222?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://img.alicdn.com/imgextra/i2/O1CN01Kq3OHU1fph6LGqjIz_!!6000000004056-55-tps-1141-150.svg" width=""/>
</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/electron/electron">electron</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>
</tr><tr>
<td align="center" width="180">
<a href="https://github.com/vuejs/jsx-next">
<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/material-ui">
<img src="https://avatars.githubusercontent.com/u/33663932?s=200&v=4" width="46"/>
@@ -114,21 +119,16 @@ Please leave a message at [**here**](https://github.com/actions-cool/issues-help
<img src="https://img14.360buyimg.com/imagetools/jfs/t1/167902/2/8762/791358/603742d7E9b4275e3/e09d8f9a8bf4c0ef.png" width="46"/>
</a>
</td>
<td align="center" width="180">
<a href="https://github.com/prettier/prettier">
<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/vuejs/jsx-next">jsx-next</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/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 href="https://github.com/prettier/prettier">
<img src="https://user-images.githubusercontent.com/29775873/129505900-ca248179-2435-429d-9fd3-779206bcd899.png" width="46"/>
</a>
</td>
<td align="center" width="180">
@@ -148,7 +148,7 @@ Please leave a message at [**here**](https://github.com/actions-cool/issues-help
</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/prettier/prettier">prettier</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>
@@ -941,6 +941,7 @@ Find the current repository, the creator is k , the title contains `this` , the
issue-state: 'open'
title-includes: 'this'
body-includes: 'that'
labels: 'documentation'
```
| Param | Desc | Type | Required |
@@ -951,6 +952,7 @@ Find the current repository, the creator is k , the title contains `this` , the
| issue-creator | Creator filtering | string | ✖ |
| title-includes | Title filtering | string | ✖ |
| body-includes | Body filtering | string | ✖ |
| labels | Labels filtering | string | ✖ |
| exclude-labels | Exclude labels filtering | string | ✖ |
| inactive-day | Inactive days filtering | number | ✖ |
| direction | Return sort | string | ✖ |

View File

@@ -77,6 +77,11 @@
<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/electron/electron">
<img src="https://avatars.githubusercontent.com/u/13409222?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://img.alicdn.com/imgextra/i2/O1CN01Kq3OHU1fph6LGqjIz_!!6000000004056-55-tps-1141-150.svg" width=""/>
</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/electron/electron">electron</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>
</tr><tr>
<td align="center" width="180">
<a href="https://github.com/vuejs/jsx-next">
<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/material-ui">
<img src="https://avatars.githubusercontent.com/u/33663932?s=200&v=4" width="46"/>
@@ -114,21 +119,16 @@
<img src="https://img14.360buyimg.com/imagetools/jfs/t1/167902/2/8762/791358/603742d7E9b4275e3/e09d8f9a8bf4c0ef.png" width="46"/>
</a>
</td>
<td align="center" width="180">
<a href="https://github.com/prettier/prettier">
<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/vuejs/jsx-next">jsx-next</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/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 href="https://github.com/prettier/prettier">
<img src="https://user-images.githubusercontent.com/29775873/129505900-ca248179-2435-429d-9fd3-779206bcd899.png" width="46"/>
</a>
</td>
<td align="center" width="180">
@@ -148,7 +148,7 @@
</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/prettier/prettier">prettier</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>
@@ -940,6 +940,7 @@ jobs:
issue-state: 'open'
title-includes: 'this'
body-includes: 'that'
labels: 'documentation'
```
| 参数 | 描述 | 类型 | 必填 |
@@ -950,6 +951,7 @@ jobs:
| issue-creator | 创建者筛选 | string | ✖ |
| title-includes | 标题包含过滤,不填时无校验 | string | ✖ |
| body-includes | 内容包含过滤,不填时无校验 | string | ✖ |
| labels | 标签筛选 | string | ✖ |
| exclude-labels | 排除标签筛选 | string | ✖ |
| inactive-day | 非活跃天数筛选 | number | ✖ |
| direction | 返回 `issues` 排序 | string | ✖ |

View File

@@ -50,10 +50,6 @@ const users = [
url: 'https://github.com/react-component',
logo: 'https://avatars3.githubusercontent.com/u/9441414?s=200&v=4'
},
{
url: 'https://github.com/ant-design/pro-components',
logo: 'https://avatars1.githubusercontent.com/u/12101536?s=200&v=4'
},
{
url: 'https://github.com/prettier/prettier',
logo: 'https://user-images.githubusercontent.com/29775873/129505900-ca248179-2435-429d-9fd3-779206bcd899.png',
@@ -103,6 +99,10 @@ const users = [
url: 'https://github.com/vitest-dev/vitest',
logo: 'https://user-images.githubusercontent.com/11247099/145112184-a9ff6727-661c-439d-9ada-963124a281f7.png',
},
{
url: 'https://github.com/electron/electron',
logo: 'https://avatars.githubusercontent.com/u/13409222?s=200&v=4',
},
];
// **************************************************************************

View File

@@ -117,5 +117,5 @@ outputs:
description: 'Check issue'
runs:
using: node12
using: node16
main: 'dist/index.js'

2
dist/index.js vendored
View File

@@ -15973,7 +15973,7 @@ const dealRandomAssignees = (assignees, randomTo) => {
return arr;
};
exports.dealRandomAssignees = dealRandomAssignees;
const matchKeyword = (content, keywords) => {
const matchKeyword = (content = '', keywords) => {
return !!keywords.find(item => content.toLowerCase().includes(item));
};
exports.matchKeyword = matchKeyword;

View File

@@ -45,27 +45,29 @@ ${table}
const point = '<table>';
const cnPoint = `## 图标`;
const enPoint = `## Badge`;
const ReadmeCN = './README.zh-CN.md';
const ReadmeEN = './README.md';
// **************************************************************************
const cn = readFileSync('./README.md', 'utf8');
const cn = readFileSync(ReadmeCN, 'utf8');
const cnIn = cn.indexOf(point);
const cnAfterIn = cn.indexOf(cnPoint);
const cnBefore = cn.substring(0, cnIn);
const cnAfter = cn.substring(cnAfterIn, cn.length);
const newcn = cnBefore + table + cnAfter;
writeFileSync('./README.md', newcn);
writeFileSync(ReadmeCN, newcn);
console.log(`🎉 Done cn`);
// **************************************************************************
const en = readFileSync('./README.en-US.md', 'utf8');
const en = readFileSync(ReadmeEN, 'utf8');
const enIn = en.indexOf(point);
const enAfterIn = en.indexOf(enPoint);
const enBefore = en.substring(0, enIn);
const enAfter = en.substring(enAfterIn, en.length);
const newen = enBefore + table + enAfter;
writeFileSync('./README.en-US.md', newen);
writeFileSync(ReadmeEN, newen);
console.log(`🎉 Done en`);
// **************************************************************************

View File

@@ -97,7 +97,6 @@ export async function doDeleteComment(_commentId: number | void) {
export async function doGetIssue() {
const { number, title, body, state, labels, assignees } = await ICE.getIssue();
core.setOutput('issue-number', number);
core.setOutput('issue-title', title || '');
core.setOutput('issue-body', body || '');

View File

@@ -9,7 +9,7 @@ export const dealRandomAssignees = (assignees: string, randomTo: string | void):
return arr;
};
export const matchKeyword = (content: string, keywords: string[]): boolean => {
export const matchKeyword = (content: string = '', keywords: string[]): boolean => {
return !!keywords.find(item => content.toLowerCase().includes(item));
};