From 4a3a06fa30643dc2b1afa5fec4c0dcc97894e506 Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Fri, 9 May 2025 23:22:03 +0200 Subject: [PATCH] add commit leak url Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com> --- commits.go | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/commits.go b/commits.go index 3635fb8..8993a10 100644 --- a/commits.go +++ b/commits.go @@ -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) - } }