Hi @CHR15 . This doesn’t seem like a question related to the GitHub Apps feature – it’s a more general question that’s related to the API itself, did I understand correctly? For questions about the REST API, please contacts GitHub Support via the “Support” link at the bottom of this page (and use this forum only for questions about the GitHub Apps feature and associated APIs):
As for your specific question – you’re observing expected behavior and we wouldn’t consider changing that behavior because it would probably break existing API consumers relying on the current behavior.
If you’d like to check if a pull request exists for a specific base and head branch, you can use a different API endpoint for that (notice the available parameters):
So, before creating a pull request – you can check to see if one already exists and return the link for that. Hope this helps!