Skip to content
Discussion options

You must be logged in to vote

I just had to do this too! This worked for me has the GNU date string baked-in with the expected format.

gh api \
  --method PUT \
  -H "Accept: application/vnd.github+json" \
  /notifications \
  -f last_read_at="$(date -u +'%Y-%m-%dT%H:%M:%SZ')" \
  -F read=true

Replies: 7 comments 8 replies

Comment options

You must be logged in to vote
2 replies
@ZnavoArdai
Comment options

@set
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@lorisleiva
Comment options

Comment options

You must be logged in to vote
5 replies
@18jad
Comment options

@Gsantomaggio
Comment options

@ahbanavi
Comment options

@qrkourier
Comment options

Answer selected by LiteBrite82
@Gravifer
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Feed
Labels
Bug GitHub or a GitHub feature is not working as intended Feed A personalized stream of recent activities and updates Product Feedback Share your thoughts and suggestions on GitHub features and improvements