Skip to content

Instantly share code, notes, and snippets.

View sridharavinash's full-sized avatar
💭
🐝

Avinash Sridhar sridharavinash

💭
🐝
View GitHub Profile
@dctucker
dctucker / mark_read.sh
Created April 19, 2018 23:13
This uses the GitHub API to mark notifications as read if they meet a certain criteria (closed/merged/OoO/Backport/etc)
#!/bin/bash
mark_read() {
id=$1
curl -H "$CURLH" -s -X PATCH $API/notifications/threads/$id
}
CURLH="Authorization: token $GITHUB_TOKEN"
API=https://api.github.com