diff options
author | 6543 <6543@obermui.de> | 2020-12-02 22:38:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-02 16:38:30 -0500 |
commit | 7ac8a770e1086a50d1fc0a194fe0d7060036fb30 (patch) | |
tree | f3c9e4e92bd158c8ef506ea46163c2dd95a57cfa /modules/convert/pull_test.go | |
parent | 2b4a08e9621e052845062ecd71ebfd37453c0383 (diff) | |
download | gitea-7ac8a770e1086a50d1fc0a194fe0d7060036fb30.tar.gz gitea-7ac8a770e1086a50d1fc0a194fe0d7060036fb30.zip |
Move Repo APIFormat to convert package (#13787)
* Move Repo APIFormat to convert package
* tweek
Diffstat (limited to 'modules/convert/pull_test.go')
-rw-r--r-- | modules/convert/pull_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/convert/pull_test.go b/modules/convert/pull_test.go index b78bbe87c9..adf42d8ca4 100644 --- a/modules/convert/pull_test.go +++ b/modules/convert/pull_test.go @@ -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 |