Any other country code is silently ignored. Google supports many more country codes (DE, FR, JP, BR, IN, etc.).
Fix
Either:
Generate the country code dynamically: country = "country" + strings.ToUpper(c.Country)
Or at minimum, log a warning when an unsupported country is specified
**Parent:** #3
## Description
In `sites/google/google.go:67-81`, the country parameter mapping only supports 4 countries:
```go
switch c.Country {
case "us":
country = "countryUS"
case "uk":
country = "countryUK"
case "au":
country = "countryAU"
case "ca":
country = "countryCA"
}
```
Any other country code is silently ignored. Google supports many more country codes (DE, FR, JP, BR, IN, etc.).
## Fix
Either:
1. Generate the country code dynamically: `country = "country" + strings.ToUpper(c.Country)`
2. Or at minimum, log a warning when an unsupported country is specified
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Parent: #3
Description
In
sites/google/google.go:67-81, the country parameter mapping only supports 4 countries:Any other country code is silently ignored. Google supports many more country codes (DE, FR, JP, BR, IN, etc.).
Fix
Either:
country = "country" + strings.ToUpper(c.Country)Starting work on this. Will replace the 4-country switch with dynamic
"country" + strings.ToUpper(c.Country)generation.Work finished — replaced 4-country switch with
"country" + strings.ToUpper(c.Country)to support all Google country codes. Merged in PR #42.Resolved by PR #42 — replaced 4-country switch with dynamic country code generation.