One way to let codecli be compatible with github as well

@hongqn but is this all right then? 
And you mean?