Closed tgoyne closed 11 years ago
Thanks for doing this! I'm getting an error when trying to use it - I'll try to dig in a bit more -- any ideas?
(py27.venv)marca@marca-mac:~/dev/git-repos/google-code-issues-migrator$ python migrateissues.py --dry-run --synchronize-ids pymssql msabramo pymssql/pymssql
Github password:
Retrieving existing Github issues...
Adding issue 1Usage: migrateissues.py [options] <google project name> <github username> <github project>
Migrate all issues from a Google Code project to a Github project.
Options:
-h, --help show this help message and exit
-a, --assign-owner Assign owned issues to the Github user
-d, --dry-run Don't modify anything on Github
-p, --omit-priority Don't migrate priority labels
-s, --synchronize-ids
Ensure that migrated issues keep the same ID
-c GOOGLE_CODE_COOKIE, --google-code-cookie=GOOGLE_CODE_COOKIE
Cookie to use for Google Code requests. Required to
get unmangled names
Traceback (most recent call last):
File "migrateissues.py", line 377, in <module>
process_gcode_issues(existing_issues)
File "migrateissues.py", line 276, in process_gcode_issues
github_issue = add_issue_to_github(issue)
File "migrateissues.py", line 106, in add_issue_to_github
return github_issue
UnboundLocalError: local variable 'github_issue' referenced before assignment
The issue I mentioned above is fixed by https://github.com/tgoyne/google-code-issues-migrator/pull/1 (which is now merged to tgoyne/master)
:+1: I know of a project that may use this -- can it be merged anytime soon?
Just sent an email to @arthur-debert to see if he wants to merge this.
@arthur-debert: Nice! Thank you!
The Google Code Issues API was shut down in June, so the current version no longer works at all. I rewrote a significant chunk of the script to instead scrape issues from the Google Code site.
Other changes along the way:
Probably some regressions in the bits I didn't need, since I ended up having to rewrite a bunch of stuff.