Skip to content

Commit 8cf0277

Browse files
committed
built changes
1 parent 0432bd7 commit 8cf0277

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

kbanalysis/dist/src/index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8541,6 +8541,11 @@ async function handleKBIssue(octokit, owner, repo, issue) {
85418541
});
85428542
if (resp.status == 200) {
85438543
let old_body = resp.data.body;
8544+
let action_name = get_action(issue.title);
8545+
if (old_body.indexOf(action_name) >= 0) {
8546+
_actions_core__WEBPACK_IMPORTED_MODULE_0__.info(`[!] Action ${action_name} is already being tracked`);
8547+
return "Issue already being tracked";
8548+
}
85448549
let new_body = old_body + comment;
85458550
let resp2 = await octokit.rest.issues.updateComment({
85468551
owner: owner,
@@ -8607,6 +8612,10 @@ async function prepareComment(client, owner, repo, issue) {
86078612
body: "unable to fetch analysis",
86088613
});
86098614
}
8615+
function get_action(x) {
8616+
x = x.split(" ");
8617+
return x[6];
8618+
}
86108619

86118620

86128621
/***/ }),

0 commit comments

Comments
 (0)