diff --git a/models/fixtures/action.yml b/models/fixtures/action.yml index af9ce93ba..b2febb4ed 100644 --- a/models/fixtures/action.yml +++ b/models/fixtures/action.yml @@ -6,6 +6,7 @@ repo_id: 2 # private is_private: true created_unix: 1603228283 + content: '1|' # issueId 4 - id: 2 diff --git a/models/issues/issue.go b/models/issues/issue.go index baa79b30d..54ef5cec7 100644 --- a/models/issues/issue.go +++ b/models/issues/issue.go @@ -500,7 +500,7 @@ func (issue *Issue) GetLastEventLabelFake() string { // GetIssueByIndex returns raw issue without loading attributes by index in a repository. func GetIssueByIndex(ctx context.Context, repoID, index int64) (*Issue, error) { if index < 1 { - return nil, ErrIssueNotExist{} + return nil, ErrIssueNotExist{0, repoID, index} } issue := &Issue{ RepoID: repoID,