Skip to content

Commit de4b09f

Browse files
authored
Merge pull request #5 from monkut/fix/scripts-missing-refactor-update
Updating scripts to refactored manager init signature
2 parents fe8a502 + ae47f43 commit de4b09f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

create_repo_labels.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
if args.verbose:
3535
logger.setLevel(logging.DEBUG)
3636

37-
manager = GithubOrganizationManager(args.token,
38-
args.organization)
37+
manager = GithubOrganizationManager(args.organization,
38+
args.token)
3939
repository = next(manager.repositories(name=args.repository)) # should only be 1
4040
for label_name in args.labels:
4141
repository.create_label(label_name, color=args.color)

manage_milestones.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
if args.verbose:
3434
logger.setLevel(logging.DEBUG)
3535

36-
manager = GithubOrganizationManager(args.token,
37-
args.organization)
36+
manager = GithubOrganizationManager(args.organization,
37+
args.token)
3838
repository = next(manager.repositories(name=args.repository)) # should only be 1
3939
print(repository.milestones)

update_repository_labels.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ def update_repository_labels(organization, token, repositories, labels_definitio
2323
created_labels = []
2424
deleted_labels = []
2525
assert os.path.exists(labels_definition_filepath)
26-
manager = GithubOrganizationManager(token,
27-
organization)
26+
manager = GithubOrganizationManager(organization,
27+
token)
2828

2929
# load file
3030
label_definitions = None

0 commit comments

Comments
 (0)