Move Repo APIFormat to convert package (#13787)

* Move Repo APIFormat to convert package

* tweek
This commit is contained in:
6543 2020-12-02 22:38:30 +01:00 committed by GitHub
parent 2b4a08e962
commit 7ac8a770e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 201 additions and 193 deletions

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