Add fetch functions for issues and pull requests