We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71cff50 commit 15325b2Copy full SHA for 15325b2
gh-cli/README.md
@@ -239,6 +239,10 @@ Example output:
239
240
Gets a list of members and their role in an organization
241
242
+## get-organization-repository-count.sh
243
+
244
+Gets the repository count in an organization
245
246
## get-organization-team-members.sh
247
248
Gets the members of a team
gh-cli/get-organization-repository-count.sh
@@ -0,0 +1,4 @@
1
+#!/bin/bash
2
3
+# count the number of repositories in an organization
4
+gh api /orgs/joshjohanning-org/repos --paginate -F per_page=100 -X GET | jq -s 'map(.[]) | length'
0 commit comments