mirror of
https://gitea.com/Lydanne/issues-helper.git
synced 2025-08-19 02:05:58 +08:00
@@ -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`
|
||||
|
@@ -117,5 +117,5 @@ outputs:
|
||||
description: 'Check issue'
|
||||
|
||||
runs:
|
||||
using: node12
|
||||
using: node16
|
||||
main: 'dist/index.js'
|
||||
|
2
dist/index.js
vendored
2
dist/index.js
vendored
@@ -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;
|
||||
|
@@ -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));
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user