Skip to content

Commit

Permalink
Make extract URL func public
Browse files Browse the repository at this point in the history
Signed-off-by: Yash Sharma <[email protected]>
  • Loading branch information
Yashsharma1911 committed Mar 15, 2024
1 parent 75d94b9 commit eb916c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions generators/github/git_repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ func (gr GitRepo) extractRepoDetailsFromSourceURL() (owner, repo, branch, root s
return
}

func (gr GitRepo) ExtractRepoDetailsFromSourceURL() (owner, repo, branch, root string, err error) {
return gr.extractRepoDetailsFromSourceURL()
}

func fileInterceptor(br *bufio.Writer) walker.FileInterceptor {
return func(file walker.File) error {
tempPath := filepath.Join(os.TempDir(), utils.GetRandomAlphabetsOfDigit(5))
Expand Down

0 comments on commit eb916c1

Please sign in to comment.