#1497 Transferring pull requests from another sourceforge
Closed: Invalid 7 years ago Opened 7 years ago by clime.

Hello, I wonder if there is a way to move (closed/open) existing pull requests from Github repo to Pagure repo for migration. At least create an entry and the original diff.

I tried to experiment with "New remote pull-request" but that currently gives me some errors and I suspect it will create diff against the current tip of the commit history.


So after discussing with @clime on IRC, I believe the need is for some way to import pull-requests from another forge onto pagure, much like what we do for tickets.

Therefore I believe this would be a good addition for pagure-importer.

\cc @cverna and @vivekanand1101 for their inputs.

I reckon this could be done the same way as the tickets, by cloning the PR git repo and using the PR hook.

We can raise a ticket in pagure-importer

So the approach for this, should be the following :
1. Clone pagure PR repo
2. Get from github the PR start commit and end commit
3. populate the local pagure PR repo
4. push repo to pagure
5. using the PR request hook, get pagure to create the PR using the start commit and end commit.

Pagure PR model has a commit_start and commit_end variable (https://pagure.io/pagure/blob/master/f/pagure/lib/model.py#_1046-1051)

I'd like to propose to move this discussion over to pagure-importer.

I agree. There is one thing in Pagure that probably is needed to make the pagure-importer part work (https://pagure.io/pagure/pull-request/1522) but we can continue this discussion in the pagure-importer issue tracker and raise requests against Pagure as necessary :).

I created https://pagure.io/pagure-importer/issue/67 to have something to place into my time tracker :D.

Thanks! :)

Let me know how we can make pagure do what it should to get this working :)

@pingou changed the status to Closed

7 years ago

Login to comment on this ticket.

Metadata