You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: gh-cli/README.md
+29-3Lines changed: 29 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -791,22 +791,48 @@ Gets a team
791
791
792
792
### get-organization-webhooks.sh
793
793
794
-
Gets a list of webhooks in an organization
794
+
Gets a list of webhooks (and webhook information) in an organization
795
795
796
796
> [!NOTE]
797
797
> Requires a GitHub PAT instead of using the OAuth token with the `gh api` command - the OAuth token can only retrieve webhooks it created
798
798
799
+
### get-organizations-apps-count.sh
800
+
801
+
Gets the count of apps in all organizations in a given enterprise
802
+
803
+
### get-organizations-apps.sh
804
+
805
+
Gets a list of apps (and app information) in all organizations in a given enterprise
806
+
807
+
### get-organizations-codeowner-usage.sh
808
+
809
+
Gets the usage of CODEOWNERS files in all repositories in all organizations in a given enterprise (checks `HEAD` for `./`, `./.github`, and `./docs` and returns `TRUE` or `FALSE` for each repository)
810
+
811
+
### get-organizations-discussions-count.sh
812
+
813
+
Gets the usage of discussions in all repositories in all organizations in a given enterprise (org-wide discussions have to be created in a repository, so this covers that as well)
814
+
815
+
816
+
799
817
### get-organizations-for-user.sh
800
818
801
819
Gets the list of organizations a user is a member of. This only returns organizations accessible to the person running the script, i.e.: organizations they are also a member of, or public organizations
802
820
821
+
### get-organizations-projects-count-classic.sh
822
+
823
+
Gets the count of organization projects (classic projects) in all organizations in a given enterprise
824
+
803
825
### get-organizations-projects-count.sh
804
826
805
827
Gets the count of projects (ProjectsV2) in all organizations in a given enterprise
806
828
807
-
### get-organizations-webhooks-in-enterprise.sh
829
+
### get-organizations-settings.sh
830
+
831
+
Gets the settings for all organizations in an enterprise
832
+
833
+
### get-organizations-webhooks.sh
808
834
809
-
Gets a list of webhooks in all organizations in an enterprise
835
+
Gets a list of webhooks (and webhook information) in all organizations in an enterprise
810
836
811
837
> [!NOTE]
812
838
> Requires a GitHub PAT instead of using the OAuth token with the `gh api` - the OAuth token can only retrieve webhooks it created
# we can't do everything in a single call b/c we need to paginate orgs and then paginate repos in the next query (can't do double pagination with gh api)
25
+
organizations=$(gh api graphql --paginate --hostname $hostname -f enterpriseName="$enterprise" -f query='
# we can't do everything in a single call b/c we need to paginate orgs and then paginate repos in the next query (can't do double pagination with gh api)
25
+
organizations=$(gh api graphql --paginate --hostname $hostname -f enterpriseName="$enterprise" -f query='
0 commit comments