We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff1be4c commit 0aae642Copy full SHA for 0aae642
gh-cli/copy-team-members.sh
@@ -39,10 +39,10 @@ fi
39
40
echo -e "\ncopying members from $source_org/$source_team to $target_org/$target_team\n"
41
42
-GH_TOKEN=$SOURCE_TOKEN gh api graphql -f org="$source_org" -f teamslug="$source_team" -F query='query($org:String! $teamslug:String! $cursor:String) {
+GH_TOKEN=$SOURCE_TOKEN gh api graphql --paginate -f org="$source_org" -f teamslug="$source_team" -F query='query($org:String! $teamslug:String! $endCursor:String) {
43
organization(login: $org) {
44
team(slug: $teamslug) {
45
- members(first: 100, after:$cursor, membership: IMMEDIATE) {
+ members(first: 100, after:$endCursor, membership: IMMEDIATE) {
46
pageInfo {
47
hasNextPage
48
endCursor
0 commit comments