You've already forked woodpecker
mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-07-12 22:21:40 +02:00
Use package's structs and fix missing clone (#1172)
Closes #1169 Replaces structs that were added inline in hook structs with structs of the corresponding SDKs. This makes it more readable and error-proof.
This commit is contained in:
@ -142,6 +142,7 @@ func convertRepository(repo *Repository) (*model.Repo, error) {
|
||||
Name: repo.Name,
|
||||
FullName: projectFullName(repo.Owner.GlobalKey, repo.Name),
|
||||
Link: repo.WebURL,
|
||||
Clone: repo.HTTPSURL,
|
||||
SCMKind: model.RepoGit,
|
||||
}, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user