Skip to content

Instantly share code, notes, and snippets.

@auxesis
Created February 6, 2017 06:20
Show Gist options
  • Save auxesis/d21e76a4c716e0969b60ee61d3188153 to your computer and use it in GitHub Desktop.
Save auxesis/d21e76a4c716e0969b60ee61d3188153 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'octokit'
Octokit.auto_paginate = true
client = Octokit::Client.new(:access_token=>ENV['GITHUB_ACCESS_TOKEN'])
repos = client.repos 'ausdto'
repos.each do |r|
repo_name = r[:full_name]
puts "Ignoring #{repo_name}"
client.update_subscription(repo_name, :ignored => true)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment