lib/fief/repos.rb in fief-0.0.2 vs lib/fief/repos.rb in fief-0.0.3

- old
+ new

@@ -38,16 +38,24 @@ if repo == '*' if @api.user(org)[:type] == 'User' @loog.debug("GitHub account @#{org} is a user's account") @api.repositories(org, { type: 'public' }).each do |json| id = json[:full_name] + if json[:archived] + @loog.debug("The #{id} repo is archived, ignoring it") + next + end repos << id @loog.debug("Including #{id} as it is owned by @#{org}") end else @loog.debug("GitHub account @#{org} is an organization account") @api.organization_repositories(org, { type: 'public' }).each do |json| id = json[:full_name] + if json[:archived] + @loog.debug("The #{id} repo is archived, ignoring it") + next + end repos << id @loog.debug("Including #{id} as a member of @#{org} organization") end end else