Skip to content

Commit

Permalink
fix: pass correct inputs to getUserRole
Browse files Browse the repository at this point in the history
  • Loading branch information
jordan-ae committed Jul 23, 2024
1 parent 14f7c33 commit 05f43ed
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/handlers/shared/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ import { assignTableComment } from "./table";
export async function start(context: Context, issue: Context["payload"]["issue"], sender: Context["payload"]["sender"]) {
const { logger, config } = context;
const { taskStaleTimeoutDuration } = config.timers;
const assignee = context.payload.issue.user.login;
const maxTask = await getUserRole(context, assignee);
const maxTask = await getUserRole(context, sender.login);

// is it a child issue?
if (issue.body && isParentIssue(issue.body)) {
Expand Down

0 comments on commit 05f43ed

Please sign in to comment.