diff --git a/README.md b/README.md index 6c1881c..1353dbb 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ For authentication, GitMover uses a personal access token, which can be generate ### Positional Arguments `user_name`: Your GitHub (public or enterprise) username: name@email.com - `token`: Your GitHub (public or enterprise) personal access token + `token`: Your GitHub (public or enterprise) personal access token. ([instructions to create a token](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token)) `source_repo`: the team and repo to migrate from: `/` diff --git a/git-mover.py b/git-mover.py index 30b0a78..e41d934 100755 --- a/git-mover.py +++ b/git-mover.py @@ -101,7 +101,7 @@ def create_issues(issues, destination_url, destination, credentials, sameInstall # if labels were migrated and the issue to be migrated contains labels if "labels" in issue: - issue_prime["labels"] = map(lambda l : l["name"], issue["labels"]) + issue_prime["labels"] = list(map(lambda l : l["name"], issue["labels"])) r = post_req(url, json.dumps(issue_prime), credentials) status = check_res(r) @@ -180,7 +180,7 @@ def main(): issues = download_issues(source_root, source_repo, source_credentials) if args.numbers: - numbers = map(int, args.numbers.split(',')) + numbers = list(map(int, args.numbers.split(','))) issues = filter(lambda i : int(i["number"]) in numbers, issues) if issues: sameInstall = False