Skip to content

Commit

Permalink
fix: body null (#123)
Browse files Browse the repository at this point in the history
* fix: body null

* docs: update changelog
  • Loading branch information
xrkffgg committed Oct 19, 2022
1 parent 7f09991 commit 1cb0eed
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,5 @@ outputs:
description: 'Check issue'

runs:
using: node12
using: node16
main: 'dist/index.js'
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/util/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
};

Expand Down

0 comments on commit 1cb0eed

Please sign in to comment.