-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate Issues from Github #809
Comments
Sounds like a great idea! Could add an option |
+1 |
Don't forget bitbucket and gitlab! |
@raichu sure! |
Another service to consider is Google Code, which went read-only last week. Many projects will need to import their issues. I wished I found Gogs before.. An open source project I contribute to chose another software (Allura), which is able to import from Google Code. |
Anyway, Google Code has an Issue Exporter, which migrate to Github or Bitbucket. I've tested it on Bitbucket and it does a good job. The data dump is text only and the attachments are link to storage.googleapi.com. If Google doesn't delete these files this is a good compromise. So if you don't develop a specific tool for Google Code, a 2-step migration would be an alternative. |
BTW, Allura is the software behind Sourceforge, another service to be considered. |
@fedelibre thanks your info! |
@unknwon Actually the exporter to bitbucket was not perfect: for example, labels are missing. When you want to work on the importer, let me know if you need the json file of a Google Code project to see the structure of the json file and make a migration test. |
It would be prefect! So, Google Code exporter always gives a JSON, right? |
You can download it from here. Tthe data dump is made by Google Takeout. The file format depends on the service chosen and for Google Code there's only JSON, if I remember correctly. It dumps the data of any project you are an owner of. As I'm a member of a single project, there's only one (but lots of issues, more than 4000). |
Thanks @fedelibre ! |
Let me add some comments on Google Code Issue Exporter, in case someone might be interested in the 2-step migration for Gogs. Migration to BitbucketRepository: lilyissues on bitbucket Pro:
Con:
Migration to GithubRepository: lilyissues on github Pro:
Con:
Overall I think that migration to Github is better than to Bitbucket. |
@fedelibre I've took a look on Google's JSON, is there any docs describes every field? |
I don't think so, I couldn't find anything |
OK... |
@fedelibre What is the base URL of attachments? I only see attachment ID and filename there... |
EDIT: using the same issue number to compare In this issue I see this link: However this might not be the real place. If you take a look at this issue imported in bitbucket I find this kind of link: https://storage.googleapis.com/google-code-attachments/lilypond/issue-4499/comment-0/issue.png Much better! This seems the real location and the format is clear. |
Very helpful! |
Hi, But I don't know is this any better that other software some others suggested previously in this issue. |
@xet7 thanks your info! But I think it would be better to directly use GitHub APIs in Gogs. |
Yes of course. And then, what about importing pull requests? Is there already issue about that? BR, |
@xet7 Pull Request will not be migrated as far as I think right now. |
+1000 |
+1 |
Team does not currently plan to provide import functions performed by gogs itself? issues whether to keep the original author information? gitlab import all responses will be merged into one, it does not feel good within each issues. |
- Fix go-gogs-client#10 - Related to #809
It would be nice if I could have API to create issue closed / close it. In https://lolg.it/herby/gh2gogs I can import issues, but all of them are created open. |
@Herby good point, miss that! |
What is ETA on this (and do you think of API to create an issue closed, or to close it, or both)? |
@Herby please try on |
无闻 wrote:
Tried on try.gogs.io, it works, with maybe one gltich (as seen in
|
Sorry, no attachment, as I sent the image in email. See https://try.gogs.io/herby/import to find the 75/35 discrepancy. |
@Herby thanks! This is indeed a bug! |
Add start count corrector for Repository.NumClosedIssues
@Herby It corrects all wrong count at start, so you don't need to do anything to fix old values. |
So, how do I import issues from a github repo to a repo in gogs? |
@mathwhiz1212 you would have to write a script and call API... |
@unknwon That's over my head. I'll wait until it gets implemented. |
Feature Request:
When migrating a repository from Github, it would be great if there was an option to migrate the Issues over as well.
The text was updated successfully, but these errors were encountered: