Skip to content

Commit 9861779

Browse files
committed
chore: update dist & changelog
1 parent fac0bb5 commit 9861779

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
🛠 refactor
88
-->
99

10+
## v3.7.2
11+
12+
`2025.11.07`
13+
14+
- 🚀 feat: doQueryIssues title/body-includes support multiple value. [#215](https://github.com/actions-cool/issues-helper/pull/215) [@btea](https://github.com/btea)
15+
- 🛠 refactor: avoid calling dealStringToArr inside loop. [#216](https://github.com/actions-cool/issues-helper/pull/216) [@btea](https://github.com/btea)
16+
1017
## v3.7.1
1118

1219
`2025.11.03`

dist/index.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)