arthur-debert / google-code-issues-migrator

A simple script to migrate issues from google code to github.
67 stars 56 forks source link

Switch to scraping Google Code #32

Closed tgoyne closed 11 years ago

tgoyne commented 11 years ago

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.

msabramo commented 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
msabramo commented 11 years ago

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)

waddlesplash commented 11 years ago

:+1: I know of a project that may use this -- can it be merged anytime soon?

msabramo commented 11 years ago

Just sent an email to @arthur-debert to see if he wants to merge this.

msabramo commented 11 years ago

@arthur-debert: Nice! Thank you!