fix: body null (#123)

* fix: body null

* docs: update changelog
This commit is contained in:
xrkffgg
2022-10-19 21:10:24 +08:00
committed by GitHub
parent 7f09991212
commit 1cb0eedfea
4 changed files with 9 additions and 3 deletions

View File

@@ -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`

View File

@@ -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
View File

@@ -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;

View File

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