improved issue and pull request detection