You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Schema Inaccuracy] Fetching Issues, redirects to Pull Requests instead #3506
When fetching issues for the rails project using the GitHub API, the html_url provided in the API response incorrectly redirects to a pull request URL rather than the expected issue URL.
Expected
For an issue fetched from the GitHub API, the expected html_url format should directly link to the issue page on GitHub, following the pattern:
Note: GitHub's REST API considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the pull_request key. Be aware that the id of a pull request returned from "Issues" endpoints will be an issue id. To find out the pull request id, use the "List pull requests" endpoint.
Due to compatibility reasons we've had to keep this behaviour around, but there's extra context in there about how to identify these PRs.
Activity
[-][Schema Inaccuracy] Fetching Rails Issues, redirects to Pull Requests instead[/-][+][Schema Inaccuracy] Fetching Issues, redirects to Pull Requests instead[/+]shiftkey commentedon Apr 11, 2024
@Jonas56 thanks for the feedback! There's a note in the documentation that describes more about this historical context:
Due to compatibility reasons we've had to keep this behaviour around, but there's extra context in there about how to identify these PRs.
Jonas56 commentedon Apr 12, 2024
Thanks for your response.