require 'evrone/ci/common' module Evrone module CI class Router module Middleware FetchCommitInfo = Struct.new(:app) do def call(env) if env.scm env.build.commit_info = env.scm.commit_info end app.call env end end end end end end