mirror of
https://gitea.com/Lydanne/issues-helper.git
synced 2025-10-14 07:43:46 +08:00
@@ -7,6 +7,12 @@
|
|||||||
🛠 refactor
|
🛠 refactor
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
## v3.3.1
|
||||||
|
|
||||||
|
`2022.10.19`
|
||||||
|
|
||||||
|
- 🐞 fix: body null case. [#123](https://github.com/actions-cool/issues-helper/pull/123)
|
||||||
|
|
||||||
## v3.3.0
|
## v3.3.0
|
||||||
|
|
||||||
`2022.09.02`
|
`2022.09.02`
|
||||||
|
@@ -117,5 +117,5 @@ outputs:
|
|||||||
description: 'Check issue'
|
description: 'Check issue'
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: node12
|
using: node16
|
||||||
main: 'dist/index.js'
|
main: 'dist/index.js'
|
||||||
|
2
dist/index.js
vendored
2
dist/index.js
vendored
@@ -15973,7 +15973,7 @@ const dealRandomAssignees = (assignees, randomTo) => {
|
|||||||
return arr;
|
return arr;
|
||||||
};
|
};
|
||||||
exports.dealRandomAssignees = dealRandomAssignees;
|
exports.dealRandomAssignees = dealRandomAssignees;
|
||||||
const matchKeyword = (content, keywords) => {
|
const matchKeyword = (content = '', keywords) => {
|
||||||
return !!keywords.find(item => content.toLowerCase().includes(item));
|
return !!keywords.find(item => content.toLowerCase().includes(item));
|
||||||
};
|
};
|
||||||
exports.matchKeyword = matchKeyword;
|
exports.matchKeyword = matchKeyword;
|
||||||
|
@@ -9,7 +9,7 @@ export const dealRandomAssignees = (assignees: string, randomTo: string | void):
|
|||||||
return arr;
|
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));
|
return !!keywords.find(item => content.toLowerCase().includes(item));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user