Skip to content

Commit

Permalink
chore: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyrxng committed Jul 15, 2024
1 parent a4f8f62 commit c2d9f31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/handlers/shared/stop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export async function stop(context: Context, issue: Context["payload"]["issue"],
const assignees = issue.assignees ?? [];
if (assignees.length == 0) {
logger.error("No assignees found for issue", { issueNumber });
await addCommentToIssue(context, "````diff\n! You are not assigned to this task.\n````");
await addCommentToIssue(context, "```diff\n! You are not assigned to this task.\n```");
return { output: "No assignees found for this task" };
}

Expand Down Expand Up @@ -50,6 +50,6 @@ export async function stop(context: Context, issue: Context["payload"]["issue"],
user: sender.login,
});

addCommentToIssue(context, "````diff\n+ You have been unassigned from this task.\n````").catch(logger.error);
addCommentToIssue(context, "```diff\n+ You have been unassigned from this task.\n```").catch(logger.error);
return { output: "Task unassigned successfully" };
}
2 changes: 1 addition & 1 deletion src/utils/issue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export async function addCommentToIssue(context: Context, message: string | null
}
}

//// Pull Requests \\\\
// Pull Requests

export async function closePullRequest(context: Context, results: GetLinkedResults) {
const { payload } = context;
Expand Down

0 comments on commit c2d9f31

Please sign in to comment.