summaryrefslogtreecommitdiffstats
path: root/modules/convert/pull_test.go
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-12-02 22:38:30 +0100
committerGitHub <noreply@github.com>2020-12-02 16:38:30 -0500
commit7ac8a770e1086a50d1fc0a194fe0d7060036fb30 (patch)
treef3c9e4e92bd158c8ef506ea46163c2dd95a57cfa /modules/convert/pull_test.go
parent2b4a08e9621e052845062ecd71ebfd37453c0383 (diff)
downloadgitea-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.go2
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