From 40a91a6dadb8adae9ea005d657d7b42315458f00 Mon Sep 17 00:00:00 2001 From: Shohei Ueda <30958501+peaceiris@users.noreply.github.com> Date: Tue, 4 Aug 2020 18:42:59 +0900 Subject: [PATCH] feat: remove assignees (#223) --- src/main.ts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/main.ts b/src/main.ts index b8e3d01a..6afbe1c3 100644 --- a/src/main.ts +++ b/src/main.ts @@ -126,24 +126,9 @@ export async function run(): Promise { } // Render template - // eslint-disable-next-line @typescript-eslint/no-explicit-any - const assignees = (context.payload as any)?.issue?.assignees ?? []; - if (core.isDebug()) { - console.log(assignees); - } const commentBodyView = { sender: { login: (context.payload as any).sender.login // eslint-disable-line @typescript-eslint/no-explicit-any - }, - issue: { - assignees: function () { - const assigneesList: string[] = []; - Object.keys(assignees).forEach(assignee => { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - assigneesList.push((assignee as any).login); - }); - return assigneesList; - } } }; const commentBodyRendered = Mustache.render(commentBody, commentBodyView);