-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use issue import API and other formatting improvements #25
Conversation
- Change how comments are formatted: author information goes to the top, and always keep a link to the author's bitbucket page if possible - Add "component" and "kind" as GitHub labels
Python was failing to print in dry mode, on Windows 8.1
Fix print utf-8 in dry mode
Excellent :) I used your fork to migrate uMap from bitbucket. diff --git a/migrate.py b/migrate.py
index 29fb699..c997c18 100644
--- a/migrate.py
+++ b/migrate.py
@@ -210,7 +210,7 @@ def get_issues(bb_url, start_id):
issues = []
while True:
- url = "{}/?start={}".format(
+ url = "{}/?start={}&count=50&sort=title".format(
bb_url,
start_id
)
@@ -330,7 +330,7 @@ if __name__ == "__main__":
# push them in GitHub (issues comments are fetched here)
gh_username, gh_repository = options.github_repo.split('/')
- auth = (gh_username, github_password)
+ auth = (options.github_username, github_password)
# Sort issues, to sync issue numbers on freshly created GitHub projects.
# Note: not memory efficient, could use too much memory on large projects. I also needed the sort + count change, otherwise only 180 of the 201 issues were migrated, dunno why.
|
Cool, thanks for sharing! 😄 |
@vbabiy any reason this isn't merged? |
Use issue import API and other formatting improvements
@vbabiy was nice enough to pass along the repo to me for continuing maintenance, so I've gone ahead and merged this--thanks again @nicoddemus (and a huge thank you from me for your work on pytest, I use it all the time.) |
#25 switched from using pygithub3 to accessing Github's import API directly using the requests lib
@jeffwidman nice, thanks for taking over this repo!
Cool, thanks for the support! 😄 |
Hi,
Recently we migrated pytest from BitBucket and used your script, thanks for writing it and making it public!
I changed the requests to use the new import API because I was hitting the HTTP limit after migrating a few issues.
This PR includes a few other adjustments:
kind
andcomponent
as GitHub labels;