Compare commits

..

8 Commits

Author SHA1 Message Date
元凛
02811b26b6 docs: update changelog 2022-10-21 15:21:48 +08:00
Ing
a72c4f551c fix #124 (#125)
* fix #124

* update actions/core@^1.10.0

* revert dist/index.js

* update dist/index.js
2022-10-21 14:56:44 +08:00
元凛
e17a3a158c chore: update release script 2022-10-19 21:14:06 +08:00
元凛
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
12 changed files with 1660 additions and 134 deletions

View File

@@ -7,6 +7,18 @@
🛠 refactor
-->
## v3.3.2
`2022.10.21`
- 💄 chore: update `@actions/core` version. [#125](https://github.com/actions-cool/issues-helper/pull/125) [@wjz304](https://github.com/wjz304)
## 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'

1665
dist/index.js vendored

File diff suppressed because it is too large Load Diff

View File

@@ -32,7 +32,7 @@
"all": "npm run lint-all && npm run test && npm run package"
},
"dependencies": {
"@actions/core": "^1.6.0",
"@actions/core": "^1.10.0",
"@actions/github": "^4.0.0",
"@octokit/rest": "^18.0.12",
"actions-util": "^1.1.3",

View File

@@ -30,7 +30,7 @@ function getChangelog(content) {
}
}
}
return changeLog.join('\n');
return changeLog.join('\n\n');
}
const changelogPath = path.join(__dirname, '..', CHANGELOG_NAME);

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));
};

View File

@@ -2,12 +2,13 @@
# yarn lockfile v1
"@actions/core@^1.6.0":
version "1.6.0"
resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.6.0.tgz#0568e47039bfb6a9170393a73f3b7eb3b22462cb"
integrity sha512-NB1UAZomZlCV/LmJqkLhNTqtKfFXJZAUPcfl/zqG7EfsQdeUJtaWO98SGbuQ3pydJ3fHl2CvI/51OKYlCYYcaw==
"@actions/core@^1.10.0":
version "1.10.0"
resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.10.0.tgz#44551c3c71163949a2f06e94d9ca2157a0cfac4f"
integrity sha512-2aZDDa3zrrZbP5ZYg159sNoLRb61nQ7awl5pSvIq5Qpj81vwDzdMRKzkWJGJuwVvWpvZKx7vspJALyvaaIQyug==
dependencies:
"@actions/http-client" "^1.0.11"
"@actions/http-client" "^2.0.1"
uuid "^8.3.2"
"@actions/github@^4.0.0":
version "4.0.0"
@@ -19,13 +20,20 @@
"@octokit/plugin-paginate-rest" "^2.2.3"
"@octokit/plugin-rest-endpoint-methods" "^4.0.0"
"@actions/http-client@^1.0.11", "@actions/http-client@^1.0.8":
"@actions/http-client@^1.0.8":
version "1.0.11"
resolved "https://registry.yarnpkg.com/@actions/http-client/-/http-client-1.0.11.tgz#c58b12e9aa8b159ee39e7dd6cbd0e91d905633c0"
integrity sha512-VRYHGQV1rqnROJqdMvGUbY/Kn8vriQe/F9HR2AlYHzmKuM/p3kjNuXhmdBfcVgsvRWTz5C5XW5xvndZrVBuAYg==
dependencies:
tunnel "0.0.6"
"@actions/http-client@^2.0.1":
version "2.0.1"
resolved "https://registry.yarnpkg.com/@actions/http-client/-/http-client-2.0.1.tgz#873f4ca98fe32f6839462a6f046332677322f99c"
integrity sha512-PIXiMVtz6VvyaRsGY268qvj57hXQEpsYogYOu2nrQhlf+XCGmZstmuZBbAybUl1nQGnvS1k1eEsQ69ZoD7xlSw==
dependencies:
tunnel "^0.0.6"
"@ampproject/remapping@^2.0.0":
version "2.1.0"
resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.1.0.tgz#72becdf17ee44b2d1ac5651fb12f1952c336fe23"
@@ -22201,7 +22209,7 @@ tunnel-agent@^0.6.0:
dependencies:
safe-buffer "^5.0.1"
tunnel@0.0.6:
tunnel@0.0.6, tunnel@^0.0.6:
version "0.0.6"
resolved "https://registry.yarnpkg.com/tunnel/-/tunnel-0.0.6.tgz#72f1314b34a5b192db012324df2cc587ca47f92c"
integrity sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==