Skip to content

Commit

Permalink
Add missing_checks to Staging API
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisBr committed Nov 23, 2018
1 parent 66d747a commit 011bb19
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
builder.missing_checks(count: missing_checks.count) do
missing_checks.each do |name|
builder.missing_check(name: name, state: :pending, required: true)
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ builder.staging_project(name: staging_project.name) do

builder.overall_state(result: staging_project.overall_state)
render(partial: 'checks', locals: { checks: staging_project.checks, builder: builder })
render(partial: 'missing_checks', locals: { missing_checks: staging_project.missing_checks, builder: builder })
end

0 comments on commit 011bb19

Please sign in to comment.