Sha256: fa7c45f6eba63479716c391dcad92421c26fe48cb6336730fc5b1e195eb229b3

Contents?: true

Size: 494 Bytes

Versions: 14

Compression:

Stored size: 494 Bytes

Contents

namespace :teams do
  desc "Import the members of each team configured through the github.oauth.teams config"
  task fetch: :environment do
    Shipit.github_teams.each do |team|
      puts "Fetching @#{team.handle} members"
      begin
        team.refresh_members!
      rescue Octokit::Unauthorized, Octokit::NotFound => error
        puts "Failed to fetch @#{team.handle} members. Do you have enough permissions?"
        puts "#{error.class}: #{error.message}"
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
shipit-engine-0.31.0 lib/tasks/teams.rake
shipit-engine-0.30.0 lib/tasks/teams.rake
shipit-engine-0.29.0 lib/tasks/teams.rake
shipit-engine-0.28.1 lib/tasks/teams.rake
shipit-engine-0.28.0 lib/tasks/teams.rake
shipit-engine-0.27.1 lib/tasks/teams.rake
shipit-engine-0.27.0 lib/tasks/teams.rake
shipit-engine-0.26.0 lib/tasks/teams.rake
shipit-engine-0.25.1 lib/tasks/teams.rake
shipit-engine-0.25.0 lib/tasks/teams.rake
shipit-engine-0.24.0 lib/tasks/teams.rake
shipit-engine-0.23.1 lib/tasks/teams.rake
shipit-engine-0.23.0 lib/tasks/teams.rake
shipit-engine-0.22.0 lib/tasks/teams.rake