diff options
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+`) ) |