Add getGithubApiUrl function

it replaces web url to github api automatically.
Add comments