Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 18 lines (14 sloc) 0.489 kb
#!/usr/bin/env ruby
require 'pit'
require 'octokit'
def octokit
config = Pit.get('github', :require => {
'username' => 'Your user name of GitHub',
'password' => 'Your password of GitHub',
})
Octokit::Client.new(:login => config['username'], :password => config['password'])
end
octokit.repos.each do |repo|
next if repo.owner.login != 'mizzy'
octokit.update_subscription("mizzy/#{repo.name}", {subscribed: true})
end
Jump to Line
Something went wrong with that request. Please try again.