Skip to content

Commit 1cb0eed

Browse files
authored
fix: body null (#123)
* fix: body null * docs: update changelog
1 parent 7f09991 commit 1cb0eed

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
🛠 refactor
88
-->
99

10+
## v3.3.1
11+
12+
`2022.10.19`
13+
14+
- 🐞 fix: body null case. [#123](https://github.com/actions-cool/issues-helper/pull/123)
15+
1016
## v3.3.0
1117

1218
`2022.09.02`

action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,5 +117,5 @@ outputs:
117117
description: 'Check issue'
118118

119119
runs:
120-
using: node12
120+
using: node16
121121
main: 'dist/index.js'

dist/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15973,7 +15973,7 @@ const dealRandomAssignees = (assignees, randomTo) => {
1597315973
return arr;
1597415974
};
1597515975
exports.dealRandomAssignees = dealRandomAssignees;
15976-
const matchKeyword = (content, keywords) => {
15976+
const matchKeyword = (content = '', keywords) => {
1597715977
return !!keywords.find(item => content.toLowerCase().includes(item));
1597815978
};
1597915979
exports.matchKeyword = matchKeyword;

src/util/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const dealRandomAssignees = (assignees: string, randomTo: string | void):
99
return arr;
1010
};
1111

12-
export const matchKeyword = (content: string, keywords: string[]): boolean => {
12+
export const matchKeyword = (content: string = '', keywords: string[]): boolean => {
1313
return !!keywords.find(item => content.toLowerCase().includes(item));
1414
};
1515

0 commit comments

Comments
 (0)