Skip to content

Commit 43dca7b

Browse files
committed
npm run build
1 parent 7add907 commit 43dca7b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

kbanalysis/dist/src/index.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8345,6 +8345,11 @@ try {
83458345
for (let issue of issues) {
83468346
const t = await (0,_issues_util__WEBPACK_IMPORTED_MODULE_4__/* .handleKBIssue */ .A)(client, owner, repo, issue);
83478347
}
8348+
_actions_core__WEBPACK_IMPORTED_MODULE_0__.info(`[!] Moved ${issues.length} issues`);
8349+
(0,process__WEBPACK_IMPORTED_MODULE_3__.exit)(0);
8350+
}
8351+
else {
8352+
_actions_core__WEBPACK_IMPORTED_MODULE_0__.info("No KB issues found");
83488353
}
83498354
_actions_core__WEBPACK_IMPORTED_MODULE_0__.info(`[X] Unable to list KB issues`);
83508355
(0,process__WEBPACK_IMPORTED_MODULE_3__.exit)(0);
@@ -8528,8 +8533,7 @@ async function handleKBIssue(octokit, owner, repo, issue) {
85288533
const storage_issue = 1380;
85298534
const comment_id = 1308209074;
85308535
let comment = await prepareComment(octokit, owner, repo, issue);
8531-
_actions_core__WEBPACK_IMPORTED_MODULE_0__.info(`Analysis For ${issue.title}:\n ${comment}`);
8532-
return "test_return";
8536+
_actions_core__WEBPACK_IMPORTED_MODULE_0__.info(`[!] Moving ${issue.title}`);
85338537
let resp = await octokit.rest.issues.getComment({
85348538
owner: owner,
85358539
repo: repo,
@@ -8561,7 +8565,7 @@ async function handleKBIssue(octokit, owner, repo, issue) {
85618565
}
85628566
else {
85638567
_actions_core__WEBPACK_IMPORTED_MODULE_0__.info(`[X] Unable to close issue ${issue.number}`);
8564-
return "error while closing issue";
8568+
return "error: unable to close issue";
85658569
}
85668570
}
85678571
}

0 commit comments

Comments
 (0)