Skip to content

Commit 87b593f

Browse files
committed
Show issue/PR number on title
1 parent 137dcbf commit 87b593f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

routers/repo/issue.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ func ViewIssue(ctx *context.Context) {
502502
}
503503
return
504504
}
505-
ctx.Data["Title"] = issue.Title
505+
ctx.Data["Title"] = fmt.Sprintf("#%d - %s", issue.Index, issue.Title)
506506

507507
// Make sure type and URL matches.
508508
if ctx.Params(":type") == "issues" && issue.IsPull {

routers/repo/pull.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package repo
66

77
import (
88
"container/list"
9+
"fmt"
910
"path"
1011
"strings"
1112

@@ -148,7 +149,7 @@ func checkPullInfo(ctx *context.Context) *models.Issue {
148149
}
149150
return nil
150151
}
151-
ctx.Data["Title"] = issue.Title
152+
ctx.Data["Title"] = fmt.Sprintf("#%d - %s", issue.Index, issue.Title)
152153
ctx.Data["Issue"] = issue
153154

154155
if !issue.IsPull {

0 commit comments

Comments
 (0)