Skip to content

Commit 99da880

Browse files
committed
Filter out archived repositories from user repos
Closes #53
1 parent 998912d commit 99da880

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gh.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ repos=$(gh api /user/repos --method GET \
4949
--hostname "$API_HOST" \
5050
--cache "$CACHE_USER_REPOS" \
5151
--paginate \
52-
--jq "[.[] | $item]" 2>"$err")
52+
--jq "[.[] | select(.archived == false) | $item]" 2>"$err")
5353
gh_exit=$?
5454
err_msg=$(<"$err")
5555
rm -f "$err"

0 commit comments

Comments
 (0)