support both github-by-git and github-by-https