aboutsummaryrefslogtreecommitdiff
path: root/routers/repo/branch.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo/branch.go')
-rw-r--r--routers/repo/branch.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/repo/branch.go b/routers/repo/branch.go
index 08b1b068..d9a45fba 100644
--- a/routers/repo/branch.go
+++ b/routers/repo/branch.go
@@ -61,6 +61,7 @@ func loadBranches(ctx *context.Context) []*Branch {
}
}
+ ctx.Data["AllowPullRequest"] = ctx.Repo.Repository.AllowsPulls()
return branches
}