diff options
author | Unknwon <u@gogs.io> | 2015-09-03 03:49:50 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-09-03 03:49:50 -0400 |
commit | 2a2a8cd619c5c11300d0dc6d800dfe609ba03a14 (patch) | |
tree | 2004c24cef6e4c91349609985cb5ba30732407de /models | |
parent | 5c5ccddb02113027f0b1a24e836ee61eebd56729 (diff) | |
download | gitea-2a2a8cd619c5c11300d0dc6d800dfe609ba03a14.tar.gz gitea-2a2a8cd619c5c11300d0dc6d800dfe609ba03a14.zip |
ui and pulls index fix
Diffstat (limited to 'models')
-rw-r--r-- | models/repo.go | 4 |
1 files changed, 4 insertions, 0 deletions
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+`) ) |