From 6875ad721f85e6ff381d63c57e20df9b8f06b82f Mon Sep 17 00:00:00 2001 From: Josh Johanning Date: Mon, 28 Jul 2025 20:59:20 -0500 Subject: [PATCH] fix: correct parameter order for adding collaborators in permission script --- gh-cli/copy-permissions-between-organization-repositories.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gh-cli/copy-permissions-between-organization-repositories.sh b/gh-cli/copy-permissions-between-organization-repositories.sh index da20101..eb89862 100755 --- a/gh-cli/copy-permissions-between-organization-repositories.sh +++ b/gh-cli/copy-permissions-between-organization-repositories.sh @@ -63,7 +63,7 @@ GH_TOKEN=$SOURCE_TOKEN gh api "repos/$source_org/$repo/collaborators?affiliation echo "Adding user: $login with $role to $target_org/$target_repo" - GH_TOKEN=$TARGET_TOKEN "$script_path/add-collaborator-to-repository.sh" "$target_org" "$target_repo" "$login" "$role" + GH_TOKEN=$TARGET_TOKEN "$script_path/add-collaborator-to-repository.sh" "$target_org" "$target_repo" "$role" "$login" done echo -e "\nGranting Permissions to teams:\n"