Skip to content

[Schema Inaccuracy] Fetching Issues, redirects to Pull Requests instead #3506

Closed
@Jonas56

Description

@Jonas56

Schema Inaccuracy

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:

Expected URL Format: https://github.com/rails/rails/issues/<issue_id>

The actual URL format in the API response is:

Actual URL Redirect: https://github.com/rails/rails/pull/<issue_id>

Reproduction Steps

  1. Use the GitHub API to fetch issues related to the Rails project (e.g., curl -X GET https://api.github.com/repos/rails/rails/issues).
  2. Inspect the html_url field in the API response for any issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions