Skip to content

Commit

Permalink
delete invalid compats here as well
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelmeurer committed Apr 21, 2024
1 parent d0b52db commit 83652bf
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/services/check_git_branches.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@ def call
when !compat.pending?
External::Github.delete_branch(compat.id)
when compat.checked_before?(1.week.ago)
if Date.current > Date.new(2024, 6, 1)
ReportError.call "remove this!"
end
if compat.invalid?
compats = Compat.where(dependencies: compat.dependencies)
if compats.size == RailsRelease.count && !compats.include?(compat)
compat.destroy
next
end
end

compat.unchecked!
External::Github.delete_branch(compat.id)
Compats::Check.call_async compat
Expand Down

0 comments on commit 83652bf

Please sign in to comment.