From 2a2a8cd619c5c11300d0dc6d800dfe609ba03a14 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 3 Sep 2015 03:49:50 -0400 Subject: ui and pulls index fix --- models/repo.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'models') diff --git a/models/repo.go b/models/repo.go index fc2ab8eee2..5add81f288 100644 --- a/models/repo.go +++ b/models/repo.go @@ -268,6 +268,10 @@ func (repo *Repository) IsOwnedBy(userID int64) bool { return repo.OwnerID == userID } +func (repo *Repository) NextIssueIndex() int64 { + return int64(repo.NumIssues+repo.NumPulls) + 1 +} + var ( DescPattern = regexp.MustCompile(`https?://\S+`) ) -- cgit v1.2.3