Sha256: 942156b631b4901bf8c076981eee76862d47024f899473129a8af64cc5b203b6

Contents?: true

Size: 393 Bytes

Versions: 10

Compression:

Stored size: 393 Bytes

Contents

# frozen_string_literal: true
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

10 entries across 10 versions & 1 rubygems

Version Path
shipit-engine-0.39.0 app/controllers/shipit/api/commits_controller.rb
shipit-engine-0.38.0 app/controllers/shipit/api/commits_controller.rb
shipit-engine-0.37.0 app/controllers/shipit/api/commits_controller.rb
shipit-engine-0.36.1 app/controllers/shipit/api/commits_controller.rb
shipit-engine-0.36.0 app/controllers/shipit/api/commits_controller.rb
shipit-engine-0.35.1 app/controllers/shipit/api/commits_controller.rb
shipit-engine-0.35.0 app/controllers/shipit/api/commits_controller.rb
shipit-engine-0.34.0 app/controllers/shipit/api/commits_controller.rb
shipit-engine-0.33.0 app/controllers/shipit/api/commits_controller.rb
shipit-engine-0.32.0 app/controllers/shipit/api/commits_controller.rb