support pull-request url and commit url if github repository
refactoring to simply code