mirror of
https://github.com/cooperspencer/gickup.git
synced 2026-10-19 16:16:46 +00:00
Only apply language filter if specified in config. (#140)
GitHub repos were previously filtered by language even when no language filter was specified in config. This only affected GitHub, the others already check if lang filter exists before filtering.
This commit is contained in:
+5
-3
@@ -153,9 +153,11 @@ func Get(conf *types.Conf) ([]types.Repo, bool) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if r.Language != nil {
|
||||
if !languages[strings.ToLower(*r.Language)] {
|
||||
continue
|
||||
if len(repo.Filter.Languages) > 0 {
|
||||
if r.Language != nil {
|
||||
if !languages[strings.ToLower(*r.Language)] {
|
||||
continue
|
||||
}
|
||||
}
|
||||
}
|
||||
if *r.StargazersCount < repo.Filter.Stars {
|
||||
|
||||
Reference in New Issue
Block a user