MCPcopy Create free account
hub / github.com/gogs/gogs / NextIssueIndex

Method NextIssueIndex

internal/database/repo.go:644–646  ·  view source on GitHub ↗

FIXME: should have a mutex to prevent producing same index for two issues that are created closely enough.

()

Source from the content-addressed store, hash-verified

642// FIXME: should have a mutex to prevent producing same index for two issues that are created
643// closely enough.
644func (r *Repository) NextIssueIndex() int64 {
645 return int64(r.NumIssues+r.NumPulls) + 1
646}
647
648func (r *Repository) LocalCopyPath() string {
649 return filepath.Join(conf.Server.AppDataPath, "tmp", "local-r", com.ToStr(r.ID))

Callers 2

newIssueFunction · 0.80

Implementers 2

Repositoryinternal/database/repo.go
mailerRepointernal/database/issue_mail.go

Calls

no outgoing calls

Tested by

no test coverage detected