Skip to content

Commit

Permalink
feat: change the issue result mention
Browse files Browse the repository at this point in the history
  • Loading branch information
sshivaditya committed Oct 8, 2024
1 parent 56599ef commit be5bc37
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/handlers/issue-deduplication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { IssuePayload } from "../types/payload";
export interface IssueGraphqlResponse {
node: {
title: string;
number: number;
url: string;
body: string;
repository: {
Expand Down Expand Up @@ -113,6 +114,7 @@ async function handleSimilarIssuesComment(
... on Issue {
title
url
number
body
repository {
name
Expand Down Expand Up @@ -164,7 +166,7 @@ async function handleSimilarIssuesComment(
}

// Add new footnote to the array
footnotes.push(`${footnoteRef}: ⚠ ${issue.similarity}% possible duplicate - [${issue.node.title}](${modifiedUrl})\n\n`);
footnotes.push(`${footnoteRef}: ⚠ ${issue.similarity}% possible duplicate - [${issue.node.title}](${modifiedUrl}#${issue.node.number})\n\n`);
});

// Append new footnotes to the body, keeping the previous ones
Expand Down

0 comments on commit be5bc37

Please sign in to comment.