#3594 Add an API endpoint to retrieve pull requests by uid
Merged by pingou. Opened by bkabrda.
bkabrda/pagure api-pr-by-uid  into  master

Download 3594.patch

I have a use-case where I need to be able to serialize a unique identifier of a pull request without using special characters. That means I can't really use "namespace/reponame/pull-request/12". Therefore I'd like to propose that we allow accessing pull requests by their uid, which is a simple alphanumeric string and thus is usable in places that require no special characters.

Let's do this check first, otherwise if the project is private, you end up leaking info about whether the PR exists or not

Maybe the best solution would be to return APIERROR.ENOREQ all the time?

rebased onto 1a6e219da8fd7b9d76c8f00a3777aab2ed5ccfac

Pull-Request has been merged by pingou

Metadata