mirror of
https://gitea.com/Lydanne/issues-helper.git
synced 2025-10-14 07:43:46 +08:00
🐞 fix: check will undefined
This commit is contained in:
@@ -7,6 +7,12 @@
|
|||||||
🛠 refactor
|
🛠 refactor
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
## v3.0.1
|
||||||
|
|
||||||
|
`2022.08.01`
|
||||||
|
|
||||||
|
- 🐞 fix: check will undefined.
|
||||||
|
|
||||||
## v3.0.0
|
## v3.0.0
|
||||||
|
|
||||||
`2022.02.15`
|
`2022.02.15`
|
||||||
|
2
dist/index.js
vendored
2
dist/index.js
vendored
@@ -14753,7 +14753,7 @@ function doCheckIssue() {
|
|||||||
const bodyArr = bodyIncludes.split('/');
|
const bodyArr = bodyIncludes.split('/');
|
||||||
const keyword1 = (0, actions_util_1.dealStringToArr)(bodyArr[0]);
|
const keyword1 = (0, actions_util_1.dealStringToArr)(bodyArr[0]);
|
||||||
const keyword2 = (0, actions_util_1.dealStringToArr)(bodyArr[1]);
|
const keyword2 = (0, actions_util_1.dealStringToArr)(bodyArr[1]);
|
||||||
checkResult = keyword2.length
|
checkResult = keyword2 && keyword2.length
|
||||||
? (0, util_1.matchKeyword)(issue.body, keyword1) && (0, util_1.matchKeyword)(issue.body, keyword2)
|
? (0, util_1.matchKeyword)(issue.body, keyword1) && (0, util_1.matchKeyword)(issue.body, keyword2)
|
||||||
: (0, util_1.matchKeyword)(issue.body, keyword1);
|
: (0, util_1.matchKeyword)(issue.body, keyword1);
|
||||||
}
|
}
|
||||||
|
@@ -169,7 +169,7 @@ export async function doCheckIssue() {
|
|||||||
const bodyArr = bodyIncludes.split('/');
|
const bodyArr = bodyIncludes.split('/');
|
||||||
const keyword1 = dealStringToArr(bodyArr[0]);
|
const keyword1 = dealStringToArr(bodyArr[0]);
|
||||||
const keyword2 = dealStringToArr(bodyArr[1]);
|
const keyword2 = dealStringToArr(bodyArr[1]);
|
||||||
checkResult = keyword2.length
|
checkResult = keyword2 && keyword2.length
|
||||||
? matchKeyword(issue.body, keyword1) && matchKeyword(issue.body, keyword2)
|
? matchKeyword(issue.body, keyword1) && matchKeyword(issue.body, keyword2)
|
||||||
: matchKeyword(issue.body, keyword1);
|
: matchKeyword(issue.body, keyword1);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user