Skip to content

Commit

Permalink
feat: remove assignees (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris authored Aug 4, 2020
1 parent 930d4f8 commit 40a91a6
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,24 +126,9 @@ export async function run(): Promise<void> {
}

// 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);
Expand Down

0 comments on commit 40a91a6

Please sign in to comment.