mirror of
https://github.com/go-gitea/gitea
synced 2025-01-12 18:54:28 +00:00
parent
6df82db0f7
commit
58615be523
@ -1034,6 +1034,9 @@ func newIssueAttempt(repo *Repository, issue *Issue, labelIDs []int64, uuids []s
|
|||||||
|
|
||||||
// GetIssueByIndex returns raw issue without loading attributes by index in a repository.
|
// GetIssueByIndex returns raw issue without loading attributes by index in a repository.
|
||||||
func GetIssueByIndex(repoID, index int64) (*Issue, error) {
|
func GetIssueByIndex(repoID, index int64) (*Issue, error) {
|
||||||
|
if index < 1 {
|
||||||
|
return nil, ErrIssueNotExist{}
|
||||||
|
}
|
||||||
issue := &Issue{
|
issue := &Issue{
|
||||||
RepoID: repoID,
|
RepoID: repoID,
|
||||||
Index: index,
|
Index: index,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user