Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/garethahealy/github-stats
Generates a CSV for a Git Hub org
https://github.com/garethahealy/github-stats
github-api java
Last synced: 15 days ago
JSON representation
Generates a CSV for a Git Hub org
- Host: GitHub
- URL: https://github.com/garethahealy/github-stats
- Owner: garethahealy
- License: apache-2.0
- Created: 2021-07-30T11:58:39.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-16T12:16:39.000Z (20 days ago)
- Last Synced: 2024-12-16T12:33:19.972Z (20 days ago)
- Topics: github-api, java
- Language: Java
- Homepage:
- Size: 660 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# github-stats
CLI to generate stats and issues for a GitHub org.
## Build
Both JVM and Native mode are supported.
```bash
./mvnw clean install
./mvnw clean install -Pnative
```Which allows you to run via:
```bash
./target/github-stats-*-runner help
java -jar target/quarkus-app/quarkus-run.jar help
```## GitHub Auth
Read permissions are required for the OAuth PAT.
```bash
export GITHUB_LOGIN=replace
export GITHUB_OAUTH=replace
```## LDAP Lookup
```bash
ldapsearch -x -h ldap.corp.redhat.com -b dc=redhat,dc=com -s sub 'uid=gahealy'
ldapsearch -x -h ldap.corp.redhat.com -b dc=redhat,dc=com -s sub 'rhatSocialURL=Github->*garethahealy*'
```## APIs
Once you've built the code, you can execute the commands, for example:
```bash
./target/github-stats-*-runner users collect-members-from-ldap --organization=redhat-cop --csv-output=ldap-members.csv --ldap-members-csv=ldap-members.csv --fail-if-no-vpn=true --guess=false
```For a full list of commands, see: [docs](docs)