From 13755b3db68d9b6aa657392156274493867f7ac5 Mon Sep 17 00:00:00 2001 From: Philip Gai Date: Sat, 3 Sep 2022 07:21:08 +0000 Subject: [PATCH] Use app slug instead of the app name in comments --- web-app/src/eventHandlers/pullRequestEventHandler.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web-app/src/eventHandlers/pullRequestEventHandler.ts b/web-app/src/eventHandlers/pullRequestEventHandler.ts index c0e1f10..60db5b5 100644 --- a/web-app/src/eventHandlers/pullRequestEventHandler.ts +++ b/web-app/src/eventHandlers/pullRequestEventHandler.ts @@ -83,12 +83,12 @@ export class PullRequestEventHandler { logger.debug(`Number of files added in push: ${filesAdded.length}`); const app = await appGitHubService.getAuthenticatedApp(); - const { appName, appPublicPage, appLogin } = { - appName: app.name, + const { appSlug, appPublicPage, appLogin } = { + appSlug: app.slug, appPublicPage: app.html_url, appLogin: `${app.slug}[bot]`, }; - const appLinkMarkdown = `[${appName}](${appPublicPage})`; + const appLinkMarkdown = `[${appSlug}](${appPublicPage})`; const pullRequestComments = await appGitHubService.getPullRequestComments({ ...pullInfo,