Skip to content

Commit

Permalink
Include the link to the PR by default
Browse files Browse the repository at this point in the history
Closes #95
  • Loading branch information
philip-gai committed Mar 27, 2023
1 parent 20300c1 commit 2549919
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions web-app/src/eventHandlers/pullRequestEventHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,7 @@ export class PullRequestEventHandler {
// Get pull request comments
const app = await appGitHubService.getAuthenticatedApp();
const appLogin = `${app.slug}[bot]`;
const optionalPullRequestFooterMarkdown = pullRepo.private ? "" : `<a href='${pullRequest.html_url}'>from a pull request</a> `;
const postFooter = `\n\n<hr /><em>This discussion was created ${optionalPullRequestFooterMarkdown}using <a href='${app.html_url}'>${app.name}</a>.</em>\n`;
const postFooter = `\n\n<hr /><em>This discussion was created <a href='${pullRequest.html_url}'>from a pull request</a> using <a href='${app.html_url}'>${app.name}</a>.</em>\n`;

const pullRequestComments = await appGitHubService.getPullRequestComments({
...pullInfo,
Expand Down

0 comments on commit 2549919

Please sign in to comment.