Skip to content

Commit

Permalink
add log the reason of InValid repo
Browse files Browse the repository at this point in the history
  • Loading branch information
johejo committed Jun 3, 2020
1 parent 22fe672 commit daaf597
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions remote_repository.go
Expand Up @@ -34,6 +34,7 @@ func (repo *GitHubRepository) URL() *url.URL {
// IsValid determine if the repository is valid or not
func (repo *GitHubRepository) IsValid() bool {
if strings.HasPrefix(repo.url.Path, "/blog/") {
logger.Log("github", `the user or organization named "blog" is invalid on github, "https://github.com/blog" is redirected to "https://github.blog".`)
return false
}
pathComponents := strings.Split(strings.Trim(repo.url.Path, "/"), "/")
Expand Down

0 comments on commit daaf597

Please sign in to comment.