Skip to content

Commit

Permalink
improve debug messages for gitlab (#263)
Browse files Browse the repository at this point in the history
* improve debug messages for gitlab

* get all repos you have access to

* fix gitlab and better debug outputs
  • Loading branch information
cooperspencer authored Aug 29, 2024
1 parent 9f82c2e commit fe1afa3
Show file tree
Hide file tree
Showing 2 changed files with 179 additions and 162 deletions.
3 changes: 2 additions & 1 deletion gitea/gitea.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ func Get(conf *types.Conf) ([]types.Repo, bool) {
languages := types.GetMap(repo.Filter.Languages)

for _, r := range gitearepos {
sub.Debug().Str("repo-type", "user").Msg(r.HTMLURL)
if repo.Filter.ExcludeForks {
if r.Fork {
continue
Expand All @@ -296,7 +297,6 @@ func Get(conf *types.Conf) ([]types.Repo, bool) {
}

if len(repo.Filter.Languages) > 0 {
sub.Debug().Msg(r.HTMLURL)
langs, _, err := client.GetRepoLanguages(r.Owner.UserName, r.Name)
if err != nil {
sub.Error().
Expand Down Expand Up @@ -430,6 +430,7 @@ func Get(conf *types.Conf) ([]types.Repo, bool) {
}
}
for _, r := range orgrepos {
sub.Debug().Str("repo-type", "org").Msg(r.HTMLURL)
if repo.Filter.ExcludeForks {
if r.Fork {
continue
Expand Down
Loading

0 comments on commit fe1afa3

Please sign in to comment.