Skip to content

Commit

Permalink
Non-PMCs (and Attic) don't need images
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbASF committed Oct 29, 2024
1 parent 3b25f3b commit aa151aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/whimsy/sitestandards.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,12 @@ module SiteStandards
# - the name of the project
def label(analysis, links, col, name)
if not links[col]
SITE_FAIL
# Non-PMCs don't need images
if col == 'image' and (name == 'attic' or links['nonpmc'])
SITE_PASS
else
SITE_FAIL
end
elsif analysis[2].include? col and not analysis[2][col].include? name
SITE_WARN
else
Expand Down
1 change: 1 addition & 0 deletions tools/site-scan.rb
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ def exec_with_timeout(cmd, timeout)
next unless ARGV.include? committee.name
end
results[committee.name] = parse(committee.name, committee.site, committee.display_name)
results[committee.name]['nonpmc'] = committee.nonpmc?
sites_checked += 1
sites_failed += 1 unless results[committee.name][:resources].start_with? 'Found'
# Don't keep checking unnecessarily
Expand Down

0 comments on commit aa151aa

Please sign in to comment.