Skip to content

Commit 15325b2

Browse files
committed
adding get repo count script
1 parent 71cff50 commit 15325b2

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

gh-cli/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,10 @@ Example output:
239239

240240
Gets a list of members and their role in an organization
241241

242+
## get-organization-repository-count.sh
243+
244+
Gets the repository count in an organization
245+
242246
## get-organization-team-members.sh
243247

244248
Gets the members of a team
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)