sf2github
sf2github copied to clipboard
A Python script to migrate projects from SourceForge to GitHub; currently very immature and incomplete.
Trying to import the attachment in https://sourceforge.net/p/openflights/bugs/174/ crashes with a UnicodeDecodeError: ``` Adding comments... Adding attached file: http://sourceforge.net/p/openflights/bugs/_discuss/thread/deb8749f/c8fc/attachment/OFloopbug.mov Traceback (most recent call last): File "./sf2ghJSON.py", line 112, in issue.updateAllIssues(auth, args.repo,...
GitHub has a new API specifically for importing comments, which allows preserving issue & comment dates and is not impacted by abuse rate limits. Walkthrough: https://gist.github.com/jonmagic/5282384165e0f86ef105
It would be extremely useful if your script could print out the issues from the json in a human readable format. This would help in manually tweaking and transferring the...
This new addition needs some documentation.
In this code: ``` number = issue['number'] print 'Attaching labels: %s' % labels rest_call('POST', 'issues/%s/labels' % (number), labels) for comment in comments: print 'Creating comment: %s' % comment[:50].replace('\n', ' ').replace(chr(13),...