{"id":36725787,"url":"https://github.com/nicokosi/hubstats","last_synced_at":"2026-01-12T12:01:30.351Z","repository":{"id":15843443,"uuid":"72664188","full_name":"nicokosi/hubstats","owner":"nicokosi","description":"🧪 Command-line for GitHub pull request statistics","archived":false,"fork":false,"pushed_at":"2025-09-20T11:06:40.000Z","size":75,"stargazers_count":6,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-20T13:06:31.033Z","etag":null,"topics":["cli","pull-request","summary"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nicokosi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2016-11-02T17:26:08.000Z","updated_at":"2025-09-20T11:06:42.000Z","dependencies_parsed_at":"2024-02-11T23:28:53.627Z","dependency_job_id":"258e1878-d9d9-4bfe-a4ee-75cac412f3be","html_url":"https://github.com/nicokosi/hubstats","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nicokosi/hubstats","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicokosi%2Fhubstats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicokosi%2Fhubstats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicokosi%2Fhubstats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicokosi%2Fhubstats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nicokosi","download_url":"https://codeload.github.com/nicokosi/hubstats/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicokosi%2Fhubstats/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338973,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T10:58:46.209Z","status":"ssl_error","status_checked_at":"2026-01-12T10:58:42.742Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","pull-request","summary"],"created_at":"2026-01-12T12:01:30.280Z","updated_at":"2026-01-12T12:01:30.341Z","avatar_url":"https://github.com/nicokosi.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hubstats [![Build Status](https://github.com/nicokosi/hubstats/actions/workflows/ci.yml/badge.svg)](https://github.com/nicokosi/hubstats/actions/workflows/ci.yml)\n\n`hubstats` is a command line tool to count opened/closed/commented GitHub pull requests.\n\n## Prerequisite\n\n[Install Leiningen](http://leiningen.org/#install) and run it on Java 11+.\n\n## Usage\n\n```shell\nlein run --organization $organization --repository $repository\n```\n\nIf an [access token](https://help.github.com/articles/creating-an-access-token-for-command-line-use/) is required:\n\n```shell\nlein run --organization $organization --repository $repository --token \"$token\"\n```\n\nOutput example:\n\n```shell\npull requests for softwarevidal/arthur -\u003e\n        since 1 week(s):\n                10 opened / 14 closed / 10 commented (90 comments)\n                opened per author: {\"jprudent\" 4, \"cmahalin\" 4, \"omabrouki\" 1, \"AElMehdiVidal\" 1}\n                comments per author: {\"vidal-rm\" 68, \"jcgay\" 11, \"nicokosi\" 3, \"jprudent\" 3, \"AElMehdiVidal\" 3, \"omabrouki\" 2}\n                closed per author: {\"cmahalin\" 7, \"nicokosi\" 3, \"jcgay\" 2, \"jprudent\" 1, \"AElMehdiVidal\" 1}\n```\n\nList of all parameters:\n\n```shell\nlein run\n```\n\nwill output:\n\n```text\nCount opened/closed/commented GitHub pull requests.\nMandatory parameters:\n\t--organization\t\tGitHub organization\n\t-o\t\t\tGitHub organization (shorthand)\n\t--repository\t\tGitHub repository\n\t-r\t\t\tGitHub repository (shorthand)\n\t--token\t\t\tGitHub access token (optional)\n\t-t\t\t\tGitHub access token shorthand, optional)\nOptional parameters:\n\t--repositories\t\tComma-separated list of repositories (optional)\n\t--since-weeks\t\toutput events that occurred since this number of weeks (optional, default: 1)\n\t-w\t\t\toutput events that occurred since this number of weeks (shorthand, optional, default: 1)\n\t--since-days\t\toutput events that occurred since this number of days (optional)\n\t-d\t\t\toutput events that occurred since this number of days (shorthand, optional)\n\t--since\t\t\toutput events that occurred since a date with format '\"yyyy-MM-dd'T'HH:mm:ssZ' (optional)\n\t-s\t\t\toutput events that occurred since a date with format '\"yyyy-MM-dd'T'HH:mm:ssZ' (shorthand, optional)\n\nExamples:\n\tlein run --organization docker --repository containerd --token \"$token\"\n\tlein run --organization docker --repository containerd --since \"2017-01-17T00:00:00Z\"\n\tlein run --organization docker --repository containerd --since-days 10\n\tlein run --organization docker --repositories docker,containerd\n```\n\nMore command examples:\n\n```shell\nlein run --organization docker --repository containerd --token $token\nlein run --organization docker --repository containerd --since \"2017-01-17T00:00:00Z\"\nlein run --organization docker --repository containerd --since-days 10\nlein run --organization docker --repositories docker,containerd\n```\n\n## Command line installation\n\n### As a portable Java application\n\nCreate JAR with all dependencies:\n\n```shell\nlein uberjar\n```\n\nThen launch (note that Java is required):\n\n```shell\njava -jar target/hubstats-*-standalone.jar\n```\n\nOn Unix-like systems, you can create an executable via the following command:\n\n```shell\n./make-exec.sh hubstats\n```\n\nThis executable, which requires Java, can be moved to `/usr/local/bin`, for example.\n\n### As a *nix native executable\n\nCreate a native executable via GraalVM running `./generate-executable.sh`. Only works for Linux and macOS.\n\n## Developer tasks\n\n### Run tests\n\n```shell\nlein test\n```\n\n### Run the code linter\n\n[Install `clj-kondo`](https://github.com/borkdude/clj-kondo/blob/master/doc/install.md), then run:\n\n```shell\nclj-kondo --lint .\n```\n\n### Format the code\n\nCheck:\n\n```shell\nlein cljfmt check\n```\n\nFormat:\n\n```shell\nlein cljfmt fix\n```\n\n### Display dependencies\n\nDisplay all dependencies, as a tree:\n\n```shell\nlein deps :tree-data\n```\n\nDisplay outdated dependencies:\n\n```shell\nlein ancient\n```\n\n### Upgrade dependencies\n\n```shell\nlein ancient upgrade\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicokosi%2Fhubstats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicokosi%2Fhubstats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicokosi%2Fhubstats/lists"}