fix for making imported ADO repos' visibility the same as it's project's visibility (#2174)

* fix for making imported ADO repos' visibility the same as it's project's visibility
unified-ui
Karan Saraswat 2024-07-08 17:39:50 +00:00 committed by Harness
parent f3d3f7392a
commit c6f6d83e74
3 changed files with 4 additions and 4 deletions

View File

@ -286,7 +286,7 @@ func LoadRepositoryFromProvider(
Space: scmRepo.Namespace,
Identifier: scmRepo.Name,
CloneURL: scmRepo.Clone,
IsPublic: provider.Type != ProviderTypeAzure && !scmRepo.Private,
IsPublic: !scmRepo.Private,
DefaultBranch: scmRepo.Branch,
}, provider, nil
}

2
go.mod
View File

@ -20,7 +20,7 @@ require (
github.com/drone/funcmap v0.0.0-20190918184546-d4ef6e88376d
github.com/drone/go-convert v0.0.0-20230919093251-7104c3bcc635
github.com/drone/go-generate v0.0.0-20230920014042-6085ee5c9522
github.com/drone/go-scm v1.38.0
github.com/drone/go-scm v1.38.2
github.com/drone/runner-go v1.12.0
github.com/drone/spec v0.0.0-20230920145636-3827abdce961
github.com/fatih/color v1.16.0

4
go.sum
View File

@ -200,8 +200,8 @@ github.com/drone/go-convert v0.0.0-20230919093251-7104c3bcc635 h1:qQX+U2iEm4X2Fc
github.com/drone/go-convert v0.0.0-20230919093251-7104c3bcc635/go.mod h1:PyCDcuAhGF6W0VJ6qMmlM47dsSyGv/zDiMqeJxMFuGM=
github.com/drone/go-generate v0.0.0-20230920014042-6085ee5c9522 h1:i3EfRpr/eYifK9w0ninT3xHAthkS4NTQjLX0/zDIsy4=
github.com/drone/go-generate v0.0.0-20230920014042-6085ee5c9522/go.mod h1:eTfy716efMJgVvk/ZkRvitaXY2UuytfqDjxclFMeLdQ=
github.com/drone/go-scm v1.38.0 h1:8pqnme6ubh9iS26zBY6AsOfncqB1JphT6qcrJLq4eV8=
github.com/drone/go-scm v1.38.0/go.mod h1:DFIJJjhMj0TSXPz+0ni4nyZ9gtTtC40Vh/TGRugtyWw=
github.com/drone/go-scm v1.38.2 h1:u8fEuz2vbcn5y93YPiT0nkcmQKKAxNuL08N0xuHCLTY=
github.com/drone/go-scm v1.38.2/go.mod h1:DFIJJjhMj0TSXPz+0ni4nyZ9gtTtC40Vh/TGRugtyWw=
github.com/drone/runner-go v1.12.0 h1:zUjDj9ylsJ4n4Mvy4znddq/Z4EBzcUXzTltpzokKtgs=
github.com/drone/runner-go v1.12.0/go.mod h1:vu4pPPYDoeN6vdYQAY01GGGsAIW4aLganJNaa8Fx8zE=
github.com/drone/signal v1.0.0/go.mod h1:S8t92eFT0g4WUgEc/LxG+LCuiskpMNsG0ajAMGnyZpc=