Sha256: c1763e3cdfdae85b45923968fb834043842ca3ffb41fefa07dda6f9a84d9ee84

Contents?: true

Size: 756 Bytes

Versions: 58

Compression:

Stored size: 756 Bytes

Contents

namespace :ci do
  desc 'commit_cop'
  task commit_cop: 'ci:rugged:setup' do |t|
    # Usage: bin/rake ci:commit_cop
    require 'ndr_dev_support/rake_ci/commit_cop'

    @attachments ||= []
    changes = NdrDevSupport::RakeCI::CommitCop.changes(@commit)

    NdrDevSupport::RakeCI::CommitCop::COMMIT_COPS.each do |klass|
      attachment = klass.new.check(changes)
      next if attachment.nil?

      @attachments << attachment.merge(footer: "bundle exec rake #{t.name}")
      puts attachment.to_yaml
    end
  end

  desc 'changes'
  task changes: 'ci:rugged:setup' do
    # Usage: bin/rake ci:changes
    require 'ndr_dev_support/rake_ci/commit_cop'

    changes = NdrDevSupport::RakeCI::CommitCop.changes(@commit)

    puts changes.inspect
  end
end

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
ndr_dev_support-5.4.5 lib/tasks/ci/commit_cop.rake
ndr_dev_support-5.4.4 lib/tasks/ci/commit_cop.rake
ndr_dev_support-5.4.3 lib/tasks/ci/commit_cop.rake
ndr_dev_support-5.4.2 lib/tasks/ci/commit_cop.rake
ndr_dev_support-5.4.1 lib/tasks/ci/commit_cop.rake
ndr_dev_support-5.4.0 lib/tasks/ci/commit_cop.rake
ndr_dev_support-5.3.1 lib/tasks/ci/commit_cop.rake
ndr_dev_support-5.3.0 lib/tasks/ci/commit_cop.rake
ndr_dev_support-5.2.0 lib/tasks/ci/commit_cop.rake
ndr_dev_support-5.1.0 lib/tasks/ci/commit_cop.rake
ndr_dev_support-5.0.1 lib/tasks/ci/commit_cop.rake
ndr_dev_support-5.0.0 lib/tasks/ci/commit_cop.rake
ndr_dev_support-4.2.1 lib/tasks/ci/commit_cop.rake
ndr_dev_support-4.2.0 lib/tasks/ci/commit_cop.rake
ndr_dev_support-4.1.3 lib/tasks/ci/commit_cop.rake
ndr_dev_support-4.1.2 lib/tasks/ci/commit_cop.rake
ndr_dev_support-4.1.1 lib/tasks/ci/commit_cop.rake
ndr_dev_support-4.1.0 lib/tasks/ci/commit_cop.rake