Skip to content

Commit

Permalink
Use app slug instead of the app name in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
philip-gai committed Sep 3, 2022
1 parent c7b8b99 commit 13755b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web-app/src/eventHandlers/pullRequestEventHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 13755b3

Please sign in to comment.