Skip to content

Instantly share code, notes, and snippets.

View pepesenaris's full-sized avatar

Jose Javier Señaris pepesenaris

View GitHub Profile
@pepesenaris
pepesenaris / github-api-graphql-stale-branches.rb
Last active November 6, 2020 20:53 — forked from defeated/github-api-graphql-stale-branches.rb
GitHub API GraphQL - list stale branches
require 'graphlient'
client = Graphlient::Client.new('https://api.github.com/graphql',
headers: {
'Authorization' => "Bearer #{ ENV['GITHUB_API_TOKEN']}"
},
http_options: {
read_timeout: 20,
write_timeout: 30
}