Skip to content

Commit c81ae2a

Browse files
authored
Merge pull request devstream-io#1184 from merico-dev/fix-reposcaffolding-owner-field
fix: reposcaffold not valid for orgization
2 parents 0e3390f + c8518b9 commit c81ae2a

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pkg/util/scm/git/repoinfo.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ type RepoInfo struct {
2222
NeedAuth bool
2323
}
2424

25-
// unused
2625
func (r *RepoInfo) GetRepoOwner() string {
2726
if r.Org != "" {
2827
return r.Org

pkg/util/scm/github/repo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const (
2121
// DownloadRepo will download repo, return repo local path and error
2222
func (c *Client) DownloadRepo() (string, error) {
2323
latestCodeZipfileDownloadURL := fmt.Sprintf(
24-
defaultLatestCodeZipfileDownloadUrlFormat, c.Owner, c.Repo, c.Branch,
24+
defaultLatestCodeZipfileDownloadUrlFormat, c.GetRepoOwner(), c.Repo, c.Branch,
2525
)
2626
log.Debugf("github get repo download url: %s.", latestCodeZipfileDownloadURL)
2727
getterClient := downloader.ResourceClient{

0 commit comments

Comments
 (0)