Skip to content

adaptation for private profiles #1

@Uj947nXmRqV2nRaWshKtHzTvckUUpD

Description

currently, the code requires the profile to be public to be able to access the starred list of an user:
response=$(curl -sH "Accept: application/vnd.github.v3.star+json"
"https://api.github.com/users/$username/starred?page=$page&per_page=100")

i suggest using instead something like:
gh api /user/starred
to be able to access starred repos of the current user logged in, even when the profile is private

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions