Versions in this module Expand all Collapse all v1 v1.3.9 Jun 27, 2025 v1.3.8 Jun 27, 2025 Changes in this version + func CheckDeleteRepoPermissions(ctx context.Context, client *github.Client) (bool, error) + func DisplayRateLimit(ctx context.Context, client *github.Client) + func ExtractLinks(text string) []string + func FetchCommits(ctx context.Context, client *github.Client, owner, repo string, isFork bool, ...) ([]models.CommitInfo, error) + func FetchGists(ctx context.Context, client *github.Client, username string, cfg *Config) ([]*github.Gist, error) + func FetchOrgRepos(ctx context.Context, client *github.Client, orgName string, cfg *Config) ([]*github.Repository, error) + func FetchRepos(ctx context.Context, client *github.Client, username string, cfg *Config) ([]*github.Repository, error) + func FetchReposWithUser(ctx context.Context, client *github.Client, username string, cfg *Config, ...) ([]*github.Repository, error) + func GetGithubClient(token string) *github.Client + func GetToken(c *cli.Context) string + func GetUserByEmail(ctx context.Context, client *github.Client, email string) (*github.User, error) + func GetUsernameForEmail(ctx context.Context, client *github.Client, email string) (string, error) + func GetUsernameFromEmailSpoof(ctx context.Context, client *github.Client, email string, token string) (string, error) + func IsOrganization(ctx context.Context, client *github.Client, name string) (bool, error) + func IsValidEmail(input string) bool + func ProcessCommit(commit *gh.RepositoryCommit, checkSecrets bool, cfg *Config) models.CommitInfo + func ProcessGists(ctx context.Context, client *gh.Client, gists []*gh.Gist, checkSecrets bool, ...) map[string]*models.EmailDetails + func ProcessRepos(ctx context.Context, client *gh.Client, repos []*gh.Repository, ...) map[string]*models.EmailDetails + func ProcessReposLimited(ctx context.Context, client *gh.Client, repos []*gh.Repository, ...) map[string]*models.EmailDetails + func ProcessUserEvents(ctx context.Context, client *gh.Client, username string, checkSecrets bool, ...) map[string]*models.EmailDetails + func RateLimitedProcessRepos(ctx context.Context, client *gh.Client, repos []*gh.Repository, ...) map[string]*models.EmailDetails + func UserExists(ctx context.Context, client *github.Client, username string) (bool, error) + func ValidateToken(ctx context.Context, client *github.Client) error + type Config struct + MaxCommits int + MaxConcurrentRequests int + MaxGists int + MaxRepos int + PerPage int + QuickMode bool + ShowInteresting bool + SkipNodeModules bool + TimestampAnalysis bool + func DefaultConfig() Config + type RateLimit struct + Limit int + Remaining int + ResetTime time.Time + func GetRateLimit(ctx context.Context, client *github.Client) (*RateLimit, error)