Skip to content

Commit

Permalink
owner
Browse files Browse the repository at this point in the history
  • Loading branch information
vilaca committed Sep 27, 2024
1 parent 5908413 commit feacc34
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build/extract.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,12 @@ func main() {
scanner := bufio.NewScanner(file)
for scanner.Scan() {
fields := strings.Split(scanner.Text(), "/")
owner := strings.TrimSpace(fields[3])
repo := strings.TrimSpace(fields[3])
if repo == "" {
if repo == "" || owner == "" {
continue
}
fmt.Printf("%s\n", repo)
fmt.Printf("%s/%s\n", owner, repo)
info, err := getRepoInfo(repo, token)
if err != nil {
fmt.Printf("Error fetching repo %s: %v\n", repo, err)
Expand Down

0 comments on commit feacc34

Please sign in to comment.