Skip to content

Commit

Permalink
fix(commit): formatting consistency with pr
Browse files Browse the repository at this point in the history
almostSouji committed Apr 15, 2021
1 parent ab516a8 commit eac18e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interactions/github/commit.ts
Original file line number Diff line number Diff line change
@@ -69,7 +69,7 @@ export async function commitInfo(owner: string, repository: string, expression:
const commit = res.data.repository.object;
return new Response(JSON.stringify({
data: {
content: `${GITHUB_EMOJI_COMMIT} [\`${commit.abbreviatedOid}\` in ${commit.repository.nameWithOwner}](<${commit.commitUrl ?? ''}>) by [${commit.author.user?.login ?? commit.author.name ?? ''}](<${commit.author.user?.url ?? ''}>) ${commit.pushedDate ? `committed ${DateTime.fromMillis(new Date(commit.pushedDate).getTime()).toRelative() as string}` : ''} \n${commit.messageHeadline ?? ''}`,
content: `${GITHUB_EMOJI_COMMIT} [\`${commit.abbreviatedOid}\` in \`${commit.repository.nameWithOwner}\`](<${commit.commitUrl ?? ''}>) by [${commit.author.user?.login ?? commit.author.name ?? ''}](<${commit.author.user?.url ?? ''}>) ${commit.pushedDate ? `committed ${DateTime.fromMillis(new Date(commit.pushedDate).getTime()).toRelative() as string}` : ''} \n${commit.messageHeadline ?? ''}`,
// eslint-disable-next-line @typescript-eslint/naming-convention
allowed_mentions: { parse: [] }
},

0 comments on commit eac18e0

Please sign in to comment.