# shellcheck shell=bash
# https://docs.github.com/en/rest/activity/notifications?apiVersion=2022-11-28#mark-a-thread-as-read

___x_cmd_gh_notification_mark() {
    param:scope     ___x_cmd_gh
    param:dsl       '
options:
    #1                "id of notification thread"         <>

    --json|-j         "output json data"
'
    param:run

    local thread_id="$1"
    if ___x_cmd_gh_curl patch "/notifications/threads/$thread_id" 1>/dev/null; then
         ___x_cmd_ui_tf true "Successfully mark [notification:$thread_id] as read"
    else
        ___x_cmd_ui_tf false "Mark notification as read failure." >&2
        ___x_cmd_gh____handle_resp
    fi

}



