class Github::Activity::Notifications

def list(*args)


github.activity.notifications.list user: 'user-name', repo: 'repo-name'
github = Github.new
= Examples

List your notifications in a repository

github.activity.notifications.list
github = Github.new oauth_token: 'token'
= Examples

Example: ā€œ2012-10-09T23:39:01Zā€.
UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
before the given time. The time should be passed in as
* :since - Optional string - filters out any notifications updated
participating or mentioned.
notifications in which the user is directly
* :participating - Optional boolean - true to show only
* :all - Optional boolean - true to show notifications marked as read.
= Parameters

List all notifications for the current user, grouped by repository.

List your notifications
def list(*args)
  params = arguments(args) do
    sift %w[ all participating since user repo]
  end.params
  response = if ( (user_name = params.delete("user")) &&
                  (repo_name = params.delete("repo")) )
    get_request("/repos/#{user_name}/#{repo_name}/notifications", params)
  else
    get_request("/notifications", params)
  end
  return response unless block_given?
  response.each { |el| yield el }
end