Skip to content

Commit

Permalink
Merge pull request #20 from srz-zumix/feature/review
Browse files Browse the repository at this point in the history
add review option
  • Loading branch information
srz-zumix committed May 29, 2023
2 parents f13b795 + 3e94203 commit c002e1c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -87,6 +87,7 @@ date filter:
pull_request filter:
--draft Filter based on draft state
--review string Filter based on review status: {none|required|approved|changes_requested}
```

## Output format
Expand Down
8 changes: 7 additions & 1 deletion gh-activity-report
Expand Up @@ -104,6 +104,7 @@ date filter:
pull_request filter:
--draft Filter based on draft state
--review string Filter based on review status: {none|required|approved|changes_requested}
" "$1"
}

Expand Down Expand Up @@ -260,6 +261,11 @@ parse_params() {
test_empty_param "${2-}"
REPO="${2-}"
shift ;;
--review )
test_empty_param "${2-}"
GH_PRS_OPTIONS+=(--review "${2-}")
SEARCH_SUBCOMMAND="prs"
shift ;;
--review-requested )
NAME_="${2-}"
if test_empty_or_option_param "${NAME_-}"; then shift; else NAME_="@me"; fi
Expand Down Expand Up @@ -295,7 +301,7 @@ parse_params() {
--visibility )
test_empty_param "${2-}"
VISIBILITY="${2-}"
;;
shift ;;
--web| -w )
GH_OPTIONS+=(--web)
;;
Expand Down

0 comments on commit c002e1c

Please sign in to comment.