Skip to content

Commit

Permalink
Add missing default value for 'min-stars' option
Browse files Browse the repository at this point in the history
- caused crash if not set for "dependents" call
  • Loading branch information
mrbean-bremen committed Jan 30, 2023
1 parent e4d68d5 commit 356d4e7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion ghrepo_stats/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.5.0"
__version__ = "0.5.1"
2 changes: 1 addition & 1 deletion ghrepo_stats/show_gh_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit 356d4e7

Please sign in to comment.