You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getting issues from bitbucket
done, loaded 579 issues
Traceback (most recent call last):
File "migrate.py", line 741, in <module>
sys.exit(main(options))
File "migrate.py", line 214, in main
gh_issue = convert_issue(issue, options, attach_names, gh_milestones)
File "migrate.py", line 393, in convert_issue
out['milestone'] = gh_milestones.ensure(milestone_title)
File "migrate.py", line 655, in ensure
number = self.create(title)
File "migrate.py", line 664, in create
respo.status_code))
RuntimeError: Failed to get milestones due to HTTP status code: 404
The text was updated successfully, but these errors were encountered:
I sat down thinking this would be a five-minute fix, but turns out its a bit more complicated, so writing down my notes and will look at more in depth later:
There's a mismatch because GithubMilestones creates the milestone in GitHub as soon as its fetched from Bitbucket. Versus all the other code assembles the issues/comments, but doesn't actually push to GitHub until main() calls push_github_issue()...
So may need to split out the milestone fetch from the milestone creation... but this is tricky because the issues need to know their attached milestone numbers. So if we do this at the end, then we'd have to additionally re-convert bitbucket milestone titles to github milestone numbers at the end.
alternatively, could add a hook in GithubMilestones.ensure() to catch whether options.dry_run is set
However, GithubMilestones currently has no knowledge of options and changing that feels like its letting abstractions leak resulting in overly tight coupling.
The text was updated successfully, but these errors were encountered: