@@ -39473,9 +39473,13 @@ function doQueryIssues(state, creator, ignoreLabels) {
3947339473 const bodyIncludes = core.getInput('body-includes');
3947439474 const titleIncludes = core.getInput('title-includes');
3947539475 const excludeLabelsArr = (0, actions_util_1.dealStringToArr)(excludeLabels);
39476+ const bodyIncludesArr = (0, actions_util_1.dealStringToArr)(bodyIncludes);
39477+ const titleIncludesArr = (0, actions_util_1.dealStringToArr)(titleIncludes);
3947639478 issuesList.forEach((issue) => __awaiter(this, void 0, void 0, function* () {
39477- const bodyCheck = bodyIncludes ? issue.body.includes(bodyIncludes) : true;
39478- const titleCheck = titleIncludes ? issue.title.includes(titleIncludes) : true;
39479+ const bodyCheck = bodyIncludesArr.length > 0 ? bodyIncludesArr.some(body => issue.body.includes(body)) : true;
39480+ const titleCheck = titleIncludesArr.length > 0
39481+ ? titleIncludesArr.some(title => issue.title.includes(title))
39482+ : true;
3947939483 /**
3948039484 * Note: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request.
3948139485 * For this reason, "Issues" endpoints may return both issues and pull requests in the response.
@@ -39651,10 +39655,11 @@ function doFindComments() {
3965139655 const commentAuth = core.getInput('comment-auth');
3965239656 const bodyIncludes = core.getInput('body-includes');
3965339657 const direction = core.getInput('direction') === 'desc' ? 'desc' : 'asc';
39658+ const bodyIncludesArr = (0, actions_util_1.dealStringToArr)(bodyIncludes);
3965439659 for (const comment of commentList) {
3965539660 const checkUser = commentAuth ? comment.user.login === commentAuth : true;
39656- const checkBody = bodyIncludes
39657- ? (0, actions_util_1.dealStringToArr)(bodyIncludes) .some(text => comment.body.includes(text))
39661+ const checkBody = bodyIncludesArr.length > 0
39662+ ? bodyIncludesArr .some(text => comment.body.includes(text))
3965839663 : true;
3965939664 if (checkUser && checkBody) {
3966039665 comments.push({
0 commit comments