diff --git a/CHANGES.md b/CHANGES.md index 3046641..46f892f 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,11 @@ # Release Notes +## [Version 0.5.1](https://pypi.org/project/ghrepo-stats/0.5.1/) (2023-01-30) + +### Fixes +* added missing default value for `min-stars` option for dependents (caused crash if + not set) + ## [Version 0.5.0](https://pypi.org/project/ghrepo-stats/0.5.0/) (2022-12-28) ### New features diff --git a/ghrepo_stats/__init__.py b/ghrepo_stats/__init__.py index 3d18726..dd9b22c 100644 --- a/ghrepo_stats/__init__.py +++ b/ghrepo_stats/__init__.py @@ -1 +1 @@ -__version__ = "0.5.0" +__version__ = "0.5.1" diff --git a/ghrepo_stats/show_gh_stats.py b/ghrepo_stats/show_gh_stats.py index 39e5228..c11c23f 100644 --- a/ghrepo_stats/show_gh_stats.py +++ b/ghrepo_stats/show_gh_stats.py @@ -439,7 +439,7 @@ def main(): parser.add_argument("--packages", action="store_true", help="Only for dependents: get dependent packages " "instead of repositories") - parser.add_argument("--min-stars", type=int, + parser.add_argument("--min-stars", type=int, default=0, help="Only for dependents: limits the output to " "dependents with at least the given number of " "stargazers.")