Skip to content

Commit

Permalink
fix: generic comment function title
Browse files Browse the repository at this point in the history
  • Loading branch information
Fyko committed Jul 28, 2023
1 parent 7563239 commit 085d82d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/embeds/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export async function comment(env: Env, type: IssueCommentParent, { id, org, rep

return returnMessage(
createMessage(env, {
title: `New PR Comment`,
title: `New ${type === IssueCommentParent.PullRequest ? 'PR' : 'Issue'} Comment`,
description: escapeHtml(content),
url: comment.html_url,
authorName: user.name ? `${user.name} (@${user.login.toLowerCase()})` : `@${user.login.toLowerCase()}`,
Expand Down

0 comments on commit 085d82d

Please sign in to comment.