mirror of
https://gitea.com/Lydanne/issues-helper.git
synced 2025-08-19 18:25:58 +08:00
Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
02811b26b6 | ||
![]() |
a72c4f551c | ||
![]() |
e17a3a158c | ||
![]() |
3826e864ab | ||
![]() |
1cb0eedfea | ||
![]() |
7f09991212 | ||
![]() |
cde2648b72 | ||
![]() |
405d4bd782 |
12
CHANGELOG.md
12
CHANGELOG.md
@@ -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`
|
||||
|
34
README.md
34
README.md
@@ -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 | ✖ |
|
||||
|
@@ -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 | ✖ |
|
||||
|
8
USERS.js
8
USERS.js
@@ -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',
|
||||
},
|
||||
];
|
||||
|
||||
// **************************************************************************
|
||||
|
@@ -117,5 +117,5 @@ outputs:
|
||||
description: 'Check issue'
|
||||
|
||||
runs:
|
||||
using: node12
|
||||
using: node16
|
||||
main: 'dist/index.js'
|
||||
|
1665
dist/index.js
vendored
1665
dist/index.js
vendored
File diff suppressed because it is too large
Load Diff
@@ -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",
|
||||
|
@@ -30,7 +30,7 @@ function getChangelog(content) {
|
||||
}
|
||||
}
|
||||
}
|
||||
return changeLog.join('\n');
|
||||
return changeLog.join('\n\n');
|
||||
}
|
||||
|
||||
const changelogPath = path.join(__dirname, '..', CHANGELOG_NAME);
|
||||
|
@@ -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`);
|
||||
|
||||
// **************************************************************************
|
||||
|
@@ -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 || '');
|
||||
|
@@ -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));
|
||||
};
|
||||
|
||||
|
22
yarn.lock
22
yarn.lock
@@ -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==
|
||||
|
Reference in New Issue
Block a user