#2823 RFE: Provide pull URLs for pull requests
Closed: Fixed Opened by pviktori.

Hello,
When reviewing a pull request, getting the code to test locally is quite cumbersome.
I couldn't find a better way than clicking the link to the requested branch, copy the Git URL from there, prepend the command and append branch name, to get a command like:

git pull https://pagure.io/forks/person/repo.git branch

Would it be possible to have this (or similar) readily available on the PR page?


I would think this is covered by: https://docs.pagure.org/pagure/usage/pull_requests.html#working-with-pull-requests

It is; I'll use that. Thank you!

Still, the docs are quite a read, and most of it is quite boring if you use a PR workflow elsewhere. That's why I wasn't aware of that page.
For the sake of people unfamiliar with Pagure, can I suggest showing a “no config required” command on the PR page itself, e.g.

git pull <PROJECT_URL> refs/pull/<NUMBER>/head

or directly linking to that specific page of the docs?

Metadata Update from @pingou:
- Issue assigned to pingou

Metadata Update from @pingou:
- Assignee reset

Either approach would work for me.

Would you like to work on it?

Metadata Update from @pingou:
- Issue tagged with: RFE, easyfix

I would, and I hope I can find the time.
I put it on my TODO, but if anyone else would like to take it, feel free.

Metadata Update from @pingou:
- Issue assigned to pingou

Ok got it :)

Commit 0c178766 fixes this issue

Metadata