issues and PRs now share a numbering sequence, but opening a valid ticket under the wrong URL currently shows “not found.”
eg: if #4000 is a PR, visiting:
/<owner>/<repo>/issues/4000
should redirect to its PR page
steps to reproduce:
- find a PR, for example #4000.
- replace
/pulls/4000/...with/issues/4000. - the web app reports that the issue was not found, even though ticket #4000 exists.
expected behavior:
/issues/4000redirects to the PR page when #4000 is a PR./pulls/4000redirects to the issue page when #4000 is an issue.- a genuinely missing ticket still returns 404.
- tickets opened through the correct URL behave as before.
what is the motivation for this? is this so that anybody can link to
/issues/<id>and correctly be redirected as necessary? if that is the case, perhaps it might be nice to have/tickets/<id>that routes to the best location?