mirror of
https://github.com/go-gitea/gitea
synced 2025-07-10 04:27:22 +00:00
Redirect issue if repo has configured external tracker. (#9247)
* Redirect issue if repo has configured external tracker. * Handle error * Add tests for redirect * Fix test consistency
This commit is contained in:
committed by
techknowlogick
parent
82e0383d21
commit
9cb418e623
@ -175,10 +175,10 @@ func TestSearchRepository(t *testing.T) {
|
||||
count: 14},
|
||||
{name: "AllPublic/PublicRepositoriesOfUserIncludingCollaborative",
|
||||
opts: &SearchRepoOptions{Page: 1, PageSize: 10, OwnerID: 15, AllPublic: true, Template: util.OptionalBoolFalse},
|
||||
count: 22},
|
||||
count: 25},
|
||||
{name: "AllPublic/PublicAndPrivateRepositoriesOfUserIncludingCollaborative",
|
||||
opts: &SearchRepoOptions{Page: 1, PageSize: 10, OwnerID: 15, Private: true, AllPublic: true, Template: util.OptionalBoolFalse},
|
||||
count: 28},
|
||||
count: 31},
|
||||
{name: "AllPublic/PublicAndPrivateRepositoriesOfUserIncludingCollaborativeByName",
|
||||
opts: &SearchRepoOptions{Keyword: "test", Page: 1, PageSize: 10, OwnerID: 15, Private: true, AllPublic: true},
|
||||
count: 15},
|
||||
@ -187,7 +187,7 @@ func TestSearchRepository(t *testing.T) {
|
||||
count: 13},
|
||||
{name: "AllPublic/PublicRepositoriesOfOrganization",
|
||||
opts: &SearchRepoOptions{Page: 1, PageSize: 10, OwnerID: 17, AllPublic: true, Collaborate: util.OptionalBoolFalse, Template: util.OptionalBoolFalse},
|
||||
count: 22},
|
||||
count: 25},
|
||||
{name: "AllTemplates",
|
||||
opts: &SearchRepoOptions{Page: 1, PageSize: 10, Template: util.OptionalBoolTrue},
|
||||
count: 2},
|
||||
|
Reference in New Issue
Block a user