mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-20 20:07:03 +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
|
repo_id: 2 # private
|
||||||
is_private: true
|
is_private: true
|
||||||
created_unix: 1603228283
|
created_unix: 1603228283
|
||||||
|
content: '1|' # issueId 4
|
||||||
|
|
||||||
-
|
-
|
||||||
id: 2
|
id: 2
|
||||||
|
|
|
@ -500,7 +500,7 @@ func (issue *Issue) GetLastEventLabelFake() string {
|
||||||
// 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(ctx context.Context, repoID, index int64) (*Issue, error) {
|
func GetIssueByIndex(ctx context.Context, repoID, index int64) (*Issue, error) {
|
||||||
if index < 1 {
|
if index < 1 {
|
||||||
return nil, ErrIssueNotExist{}
|
return nil, ErrIssueNotExist{0, repoID, index}
|
||||||
}
|
}
|
||||||
issue := &Issue{
|
issue := &Issue{
|
||||||
RepoID: repoID,
|
RepoID: repoID,
|
||||||
|
|
Loading…
Reference in a new issue