Skip to content

Commit

Permalink
Merge pull request #460 from bastelfreak/blurb
Browse files Browse the repository at this point in the history
check if modules are missing in plumbing
  • Loading branch information
bastelfreak authored Mar 30, 2018
2 parents 7eaadb3 + 63b8468 commit 2403bcd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bin/get_all_the_diffs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ repos -= LEGACY_OR_BROKEN_NOBODY_KNOWS
puts "get all manged modules"
modulesync_repos = YAML.load(File.read('managed_modules.yml'))

# get all modules we have in plumbing
plumbing_modules = YAML.load(open('https://raw.githubusercontent.com/voxpupuli/plumbing/master/share/modules')).split(' ')

# get all modules that we have on github but are currently not managed by modulesync_config
not_synced_repos = repos.select{|repo| !modulesync_repos.include?(repo)}

Expand All @@ -43,6 +46,9 @@ really_need_an_initial_modulesync = not_synced_repos.reject{|repo| LEGACY_OR_BRO
# get all modules that really need an initial release
really_need_an_inital_release = really_unreleased_modules.reject{|repo| LEGACY_OR_BROKEN_NOBODY_KNOWS.include?(repo)}

# get all modules that need to added to plumbing
missing_in_plumbing = repos.reject{|repo| plumbing_modules.include?(repo)}

# update git and get the latest release
`git fetch --all --prune`
tags = `git tag -l`
Expand Down Expand Up @@ -81,7 +87,8 @@ puts "the following modules got added to our modulesync config but were never sy
puts '=============================================================================================================================================================='
puts "We don't care about #{LEGACY_OR_BROKEN_NOBODY_KNOWS.join(', ')}"
puts '=============================================================================================================================================================='
puts "We need to add the following modules to plumbing: #{missing_in_plumbing.join(', ')}" if missing_in_plumbing.count > 0
puts "We need to do an initial modulesync on: #{really_need_an_initial_modulesync.join(', ')}" if really_need_an_initial_modulesync.count > 0
puts "we need to do a normal modulesync on: #{need_another_sync.join(', ')}"
puts "Afterwars we really need to release: #{really_need_an_inital_release.join(', ')}"
puts "Afterwards we really need to release: #{really_need_an_inital_release.join(', ')}"
puts '=============================================================================================================================================================='

0 comments on commit 2403bcd

Please sign in to comment.