class Turnins
Constants
- BASE_ACCOUNT
- STUDENT_ACCOUNTS
Public Class Methods
new()
click to toggle source
# File lib/turnins.rb, line 31 def initialize if ARGV[0].nil? abort("Usage: turnins REPONAME") end base_repo = BASE_ACCOUNT + '/' + ARGV[0] open_prs = Octokit.pull_requests base_repo, state: 'open' closed_prs = Octokit.pull_requests base_repo, state: 'closed' pull_requests = open_prs + closed_prs who_turned_in = pull_requests.map {|pr| pr[:user][:login] } puts STUDENT_ACCOUNTS - who_turned_in end