BMO/GitHub To Bugzilla Migration
< BMO
Jump to navigation
Jump to search
GitHub to Bugzilla Migration Script
summary
develop a script to migrate issues from github (based on label) to bugzilla, and close the github issue.
pseudo code
sanity check configuration (user/pass/source/dest)
gh_bugs = gh_issues with label "bug"
for gh_bug in gh_bugs:
bz_bug = new bugzilla_bug(component="B2G:Gaia")
bz_bug[summary] = gh_bug[title]
bz_bug.comments[0] = gh_bug.description + "\n\nOriginal bug available at " + gh_bug.link
bz_bug.comments[1] = gh_bug.comments[all]
bz_bug.whiteboard = gh_bug.labels[all]
bz_bug.blocking-basecamp = "+" if gh_bug has label "blocking-basecamp:+"
bz_bug.create
gh_bug.comments.new = "This bug is now being tracked in Bugzilla at " + bz_bug.link + ". All v2 features will continue to be tracked in GitHub."
gh_bug.close
questions
- which bugzilla user will be creating the bugs and comments?
- version/milestone?