From 0751153613bfd2e39cf28e83bbe04b76641d222f Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 21 Feb 2019 08:54:05 +0800 Subject: refactor issue indexer, add some testing and fix a bug (#6131) * refactor issue indexer, add some testing and fix a bug * fix error copyright year on comment header * issues indexer package import keep consistent --- models/issue.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'models/issue.go') diff --git a/models/issue.go b/models/issue.go index 835c6cf9fc..8de26c2b15 100644 --- a/models/issue.go +++ b/models/issue.go @@ -1231,6 +1231,11 @@ func getIssueIDsByRepoID(e Engine, repoID int64) ([]int64, error) { return ids, err } +// GetIssueIDsByRepoID returns all issue ids by repo id +func GetIssueIDsByRepoID(repoID int64) ([]int64, error) { + return getIssueIDsByRepoID(x, repoID) +} + // GetIssuesByIDs return issues with the given IDs. func GetIssuesByIDs(issueIDs []int64) ([]*Issue, error) { return getIssuesByIDs(x, issueIDs) -- cgit v1.2.3