Skip to content

Commit 40a91a6

Browse files
authored
feat: remove assignees (#223)
1 parent 930d4f8 commit 40a91a6

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/main.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -126,24 +126,9 @@ export async function run(): Promise<void> {
126126
}
127127

128128
// Render template
129-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
130-
const assignees = (context.payload as any)?.issue?.assignees ?? [];
131-
if (core.isDebug()) {
132-
console.log(assignees);
133-
}
134129
const commentBodyView = {
135130
sender: {
136131
login: (context.payload as any).sender.login // eslint-disable-line @typescript-eslint/no-explicit-any
137-
},
138-
issue: {
139-
assignees: function () {
140-
const assigneesList: string[] = [];
141-
Object.keys(assignees).forEach(assignee => {
142-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
143-
assigneesList.push((assignee as any).login);
144-
});
145-
return assigneesList;
146-
}
147132
}
148133
};
149134
const commentBodyRendered = Mustache.render(commentBody, commentBodyView);

0 commit comments

Comments
 (0)