GetRawIssueByIndex returns raw issue without loading attributes by index in a repository.
(repoID, index int64)
| 848 | |
| 849 | // GetRawIssueByIndex returns raw issue without loading attributes by index in a repository. |
| 850 | func GetRawIssueByIndex(repoID, index int64) (*Issue, error) { |
| 851 | issue := &Issue{ |
| 852 | RepoID: repoID, |
| 853 | Index: index, |
| 854 | } |
| 855 | has, err := x.Get(issue) |
| 856 | if err != nil { |
| 857 | return nil, err |
| 858 | } else if !has { |
| 859 | return nil, ErrIssueNotExist{args: map[string]any{"repoID": repoID, "index": index}} |
| 860 | } |
| 861 | return issue, nil |
| 862 | } |
| 863 | |
| 864 | // GetIssueByIndex returns issue by index in a repository. |
| 865 | func GetIssueByIndex(repoID, index int64) (*Issue, error) { |
no test coverage detected