@@ -268,7 +268,8 @@ func buildReleaseNotesContent(ctx context.Context, repo *repo_model.Repository,
268268 builder .WriteString ("## What's Changed\n " )
269269
270270 for _ , pr := range prs {
271- builder .WriteString (fmt .Sprintf ("* %s in %s\n " , pr .Issue .Title , pr .Issue .HTMLURL (ctx )))
271+ prURL := pr .Issue .HTMLURL (ctx )
272+ builder .WriteString (fmt .Sprintf ("* %s in [#%d](%s)\n " , pr .Issue .Title , pr .Issue .Index , prURL ))
272273 }
273274
274275 builder .WriteString ("\n " )
@@ -284,13 +285,15 @@ func buildReleaseNotesContent(ctx context.Context, repo *repo_model.Repository,
284285 if len (newContributors ) > 0 {
285286 builder .WriteString ("## New Contributors\n " )
286287 for _ , contributor := range newContributors {
287- builder .WriteString (fmt .Sprintf ("* @%s made their first contribution in %s\n " , contributor .Issue .Poster .Name , contributor .Issue .HTMLURL (ctx )))
288+ prURL := contributor .Issue .HTMLURL (ctx )
289+ builder .WriteString (fmt .Sprintf ("* @%s made their first contribution in [#%d](%s)\n " , contributor .Issue .Poster .Name , contributor .Issue .Index , prURL ))
288290 }
289291 builder .WriteString ("\n " )
290292 }
291293
292294 builder .WriteString ("**Full Changelog**: " )
293- builder .WriteString (fmt .Sprintf ("%s/compare/%s...%s" , repo .HTMLURL (ctx ), util .PathEscapeSegments (baseRef ), util .PathEscapeSegments (tagName )))
295+ compareURL := fmt .Sprintf ("%s/compare/%s...%s" , repo .HTMLURL (ctx ), util .PathEscapeSegments (baseRef ), util .PathEscapeSegments (tagName ))
296+ builder .WriteString (fmt .Sprintf ("[%s...%s](%s)" , baseRef , tagName , compareURL ))
294297 return builder .String ()
295298}
296299
0 commit comments