mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 14:53:34 +01:00
fix action fixtures
This commit is contained in:
parent
25daa267bb
commit
c0fb62cb5a
2 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@
|
|||
repo_id: 2 # private
|
||||
is_private: true
|
||||
created_unix: 1603228283
|
||||
content: '1|' # issueId 4
|
||||
|
||||
-
|
||||
id: 2
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue