Skip to content

Commit 1e67f18

Browse files
committed
fix bug
1 parent 3df6e93 commit 1e67f18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/web/repo/issue_view.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ func ViewIssue(ctx *context.Context) {
391391
preparePullViewReviewAndMerge,
392392
}
393393

394-
if ctx.PathParam("type") == "pulls" {
394+
if issue.IsPull {
395395
prepareFuncs = append(prepareFuncs, prepareIssueViewSquashMergeMsg)
396396
}
397397

0 commit comments

Comments
 (0)