# shellcheck shell=sh
# shellcheck disable=SC2039,3043

# shellcheck disable=SC2154
# https://docs.github.com/en/rest/activity/events#list-events-for-the-authenticated-user
___x_cmd_gh_events_user_ls() {
    param:scope     ___x_cmd_github
    param:dsl       '
options:
    --username      "The handle for the GitHub user account."   <>:Authority="all"
    --per_page      "Results per page"                          <>=30
    --page          "Page number of the results to fetch."      <>=1
'
    param:run

    ___x_cmd_gh_curl get "/users/${username}/events" per_page page
}
