mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-05 10:20:36 +02:00
Merge pull request #1351 from gtaylor/bitbucket-lc-fix
Temporary bandaid to fix Bitbucket case sensitivity.
This commit is contained in:
commit
67ef9fbdc5
@ -11,8 +11,8 @@ import (
|
|||||||
// repository structure to the common Drone repository structure.
|
// repository structure to the common Drone repository structure.
|
||||||
func convertRepo(from *Repo) *model.Repo {
|
func convertRepo(from *Repo) *model.Repo {
|
||||||
repo := model.Repo{
|
repo := model.Repo{
|
||||||
Owner: from.Owner.Login,
|
Owner: strings.Split(from.FullName, "/")[0],
|
||||||
Name: from.Name,
|
Name: strings.Split(from.FullName, "/")[1],
|
||||||
FullName: from.FullName,
|
FullName: from.FullName,
|
||||||
Link: from.Links.Html.Href,
|
Link: from.Links.Html.Href,
|
||||||
IsPrivate: from.IsPrivate,
|
IsPrivate: from.IsPrivate,
|
||||||
@ -93,8 +93,8 @@ func cloneLink(repo Repo) string {
|
|||||||
// repository structure to the simplified Drone repository structure.
|
// repository structure to the simplified Drone repository structure.
|
||||||
func convertRepoLite(from *Repo) *model.RepoLite {
|
func convertRepoLite(from *Repo) *model.RepoLite {
|
||||||
return &model.RepoLite{
|
return &model.RepoLite{
|
||||||
Owner: from.Owner.Login,
|
Owner: strings.Split(from.FullName, "/")[0],
|
||||||
Name: from.Name,
|
Name: strings.Split(from.FullName, "/")[1],
|
||||||
FullName: from.FullName,
|
FullName: from.FullName,
|
||||||
Avatar: from.Owner.Links.Avatar.Href,
|
Avatar: from.Owner.Links.Avatar.Href,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user