module Zimdel
Constants
- VERSION
Public Class Methods
new(username, password, message)
click to toggle source
# File lib/zimdel.rb, line 6 def new(username, password, message) client = Octokit::Client.new(login: username, password: password) client.notifications.each do |notification| next unless notification[:reason] == 'mention' client.add_comment(notification[:repository][:full_name], notification[:subject][:url][/[0-9]+$/], message) client.update_thread_subscription(notification[:id], :ignored => true) end client.mark_notifications_as_read end