Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/VildMedPap/gh-orgstats

Organisation specific extension for gh cli to retrieve different statistics
https://github.com/VildMedPap/gh-orgstats

gh-extension

Last synced: 3 months ago
JSON representation

Organisation specific extension for gh cli to retrieve different statistics

Awesome Lists containing this project

README

        

# gh-orgstats

## Description
Organisation specific extension for `gh cli` to retrieve different statistics

## Install
```sh
gh extension install VildMedPap/gh-orgstats
```

## Usage
General usage

```sh
# gh orgstats [flags]
```

Get a single statistic from an organisation

```sh
gh orgstats --org cli --stats repos
# ✓ 4 repositories
```

Get a single statistic from an organisation with very plain output (only the number)

```sh
gh orgstats --org cli --stats repos --plain
# 4
```

Get multiple statistics from an organisation and output as json

```sh
gh orgstats --org cli --stats open_issues,closed_issues --json
# {
# "open_issues": 356,
# "closed_issues": 1737
# }
```

Get _all_ statistics from an organisation and output as json

```sh
gh orgstats --org cli --json
# {
# "repos": 4,
# "open_issues": 356,
# "closed_issues": 1737
# }
```

## Help
```sh
gh orgstats --help
```

## Issues and Feature Request
Any help or feedback are very welcome! 👋🏼

- https://github.com/VildMedPap/gh-orgstats/issues