class Github::Activity::Notifications
def mark(*args)
github.activity.notifications.mark thread_id: 'id', read: true
= Examples
Mark a thread as read
read: true
github.activity.notifications.mark user: 'user-name', repo: 'repo-name',
= Examples
Mark notifications as read in a repository
github.activity.notifications.mark read: true
github = Github.new oauth_token: 'token'
= Examples
Example: “2012-10-09T23:39:01Z”.
Expected in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
since this time will not be updated. Default: Now.
that notifications were checked. Anything updated
* :last_read_at - optional string time - describes the last point
* :read - boolean - Inverse of "unread"
* :unread - boolean - Changes the unread status of the threads.
= Parameters
Marking a notification as “read” removes it from the default view on GitHub.com.
Mark as read
def mark(*args) params = arguments(args) do sift %w[ unread read last_read_at user repo thread_id] end.params if ( (user_name = params.delete("user")) && (repo_name = params.delete("repo")) ) put_request("/repos/#{user_name}/#{repo_name}/notifications", params) elsif (thread_id = params.delete("thread_id")) patch_request("/notifications/threads/#{thread_id}", params) else put_request("/notifications", params) end end