mirror of
https://gitea.com/Lydanne/issues-helper.git
synced 2025-10-14 07:43:46 +08:00
style: fix lint
This commit is contained in:
7
dist/index.js
vendored
7
dist/index.js
vendored
@@ -14753,9 +14753,10 @@ 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 && keyword2.length
|
checkResult =
|
||||||
? (0, util_1.matchKeyword)(issue.body, keyword1) && (0, util_1.matchKeyword)(issue.body, keyword2)
|
keyword2 && keyword2.length
|
||||||
: (0, util_1.matchKeyword)(issue.body, keyword1);
|
? (0, util_1.matchKeyword)(issue.body, keyword1) && (0, util_1.matchKeyword)(issue.body, keyword2)
|
||||||
|
: (0, util_1.matchKeyword)(issue.body, keyword1);
|
||||||
}
|
}
|
||||||
core.info(`[doCheckIssue] result is [${checkResult}]`);
|
core.info(`[doCheckIssue] result is [${checkResult}]`);
|
||||||
core.setOutput('check-result', checkResult);
|
core.setOutput('check-result', checkResult);
|
||||||
|
@@ -169,9 +169,10 @@ 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 && keyword2.length
|
checkResult =
|
||||||
? matchKeyword(issue.body, keyword1) && matchKeyword(issue.body, keyword2)
|
keyword2 && keyword2.length
|
||||||
: matchKeyword(issue.body, keyword1);
|
? matchKeyword(issue.body, keyword1) && matchKeyword(issue.body, keyword2)
|
||||||
|
: matchKeyword(issue.body, keyword1);
|
||||||
}
|
}
|
||||||
|
|
||||||
core.info(`[doCheckIssue] result is [${checkResult}]`);
|
core.info(`[doCheckIssue] result is [${checkResult}]`);
|
||||||
|
Reference in New Issue
Block a user