Move Repo APIFormat to convert package (#13787)

* Move Repo APIFormat to convert package

* tweek
This commit is contained in:
6543 authored and GitHub committed 2020-12-02 16:38:30 -05:00
1 parent 2b4a08e962
commit 7ac8a770e1
18 files changed
+201 -193

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ func TestPullRequest_APIFormat(t *testing.T) {
Ref: "refs/pull/2/head",
Sha: "4a357436d925b5c974181ff12a994538ddc5a269",
RepoID: 1,
Repository: headRepo.APIFormat(models.AccessModeNone),
Repository: ToRepo(headRepo, models.AccessModeNone),
}, apiPullRequest.Head)
//withOut HeadRepo