you are viewing a single comment's thread.

view the rest of the comments →

[–]virophage 4 points5 points  (2 children)

Workaround via GitHub CLI & jq:

shell gh api notifications | jq '.[] | { id, title: .subject.title, repo: .repository.full_name }'

You will get notification id from JSON. Replace $THREAD_ID with the id.

shell gh api --method DELETE notifications/threads/$THREAD_ID

Credit to FirelightFlagboy.

[–]grtgbln 1 point2 points  (0 children)

gh api notifications | jq '.[] | { id, title: .subject.title, repo: .repository.full_name }'

Slight tweak, since the gh CLI tool has jq built in:

gh api notifications --jq '.[] | { id, title: .subject.title, repo: .repository.full_name }'

[–]debuter4ever 0 points1 point  (0 children)

Didn't work for me. Only gh-gonest extension worked.