File: list_contributors.rb

package info (click to toggle)
dropwizard-metrics 3.2.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 2,792 kB
  • sloc: java: 19,095; xml: 1,383; makefile: 132; python: 51; ruby: 11
file content (16 lines) | stat: -rwxr-xr-x 521 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env ruby
require 'octokit'

Octokit.configure do |c|
  # Provide an Access Token to prevent running into the hourly rate-limit
  # see https://help.github.com/articles/creating-an-access-token-for-command-line-use
  c.access_token = ENV['GITHUB_TOKEN'] || ''
  c.auto_paginate = true
end

contributors = Octokit.contributors('dropwizard/metrics')
contributors.each do |c|
  user = Octokit.user(c.login)
  name = if user.name.nil? then user.login else user.name end
  puts "* `#{name} <#{user.html_url}>`_"
end