Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: `<team_name>/<repo_name>`

Expand Down
4 changes: 2 additions & 2 deletions git-mover.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down