Sha256: 46ccd6734f0a663fb8ecbabea67d3f41c29d7098358a3bf19ff94a4470672e4a

Contents?: true

Size: 362 Bytes

Versions: 7

Compression:

Stored size: 362 Bytes

Contents

module Shipit
  module Api
    class CommitsController < BaseController
      require_permission :read, :stack

      def index
        commits = stack.commits.reachable.includes(:statuses)
        if params[:undeployed]
          commits = commits.newer_than(stack.last_deployed_commit)
        end

        render_resources commits
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
shipit-engine-0.31.0 app/controllers/shipit/api/commits_controller.rb
shipit-engine-0.30.0 app/controllers/shipit/api/commits_controller.rb
shipit-engine-0.29.0 app/controllers/shipit/api/commits_controller.rb
shipit-engine-0.28.1 app/controllers/shipit/api/commits_controller.rb
shipit-engine-0.28.0 app/controllers/shipit/api/commits_controller.rb
shipit-engine-0.27.1 app/controllers/shipit/api/commits_controller.rb
shipit-engine-0.27.0 app/controllers/shipit/api/commits_controller.rb