add commit leak url

Signed-off-by: Hadi <[email protected]>
This commit is contained in:
Hadi
2025-05-09 23:22:03 +02:00
parent b6ae831ba0
commit 4a3a06fa30
+12 -7
View File
@@ -46,10 +46,22 @@ func commits(client *github.Client, ctx context.Context, username string) {
if _, seen := seenNames[name]; !seen {
seenNames[name] = struct{}{}
names = append(names, name)
PrintInfo(
"Name "+fmt.Sprint(len(names)),
name,
"from "+item.GetRepository().Owner.GetLogin()+"/"+item.GetRepository().
GetName(),
)
}
if _, seen := seenEmails[email]; !seen {
seenEmails[email] = struct{}{}
emails = append(emails, email)
PrintInfo(
"Email "+fmt.Sprint(len(emails)),
email,
"from "+item.GetRepository().Owner.GetLogin()+"/"+item.GetRepository().
GetName(),
)
}
}
}
@@ -64,11 +76,4 @@ func commits(client *github.Client, ctx context.Context, username string) {
log.Error("Failed to fetch commits", "err", err)
return
}
for i, name := range names {
PrintInfo("Name "+fmt.Sprint(i+1), name)
}
for i, email := range emails {
PrintInfo("Email "+fmt.Sprint(i+1), email)
}
}