ui and pulls index fix

This commit is contained in:
Unknwon 2015-09-03 03:49:50 -04:00
parent 5c5ccddb02
commit 2a2a8cd619
6 changed files with 25 additions and 8 deletions

View file

@ -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+`)
)