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-6.1.0 lib/tasks/ci/commit_cop.rake
ndr_dev_support-6.0.4 lib/tasks/ci/commit_cop.rake
ndr_dev_support-6.0.3 lib/tasks/ci/commit_cop.rake
ndr_dev_support-6.0.2 lib/tasks/ci/commit_cop.rake
ndr_dev_support-6.0.1 lib/tasks/ci/commit_cop.rake
ndr_dev_support-6.0.0 lib/tasks/ci/commit_cop.rake
ndr_dev_support-5.10.2 lib/tasks/ci/commit_cop.rake
ndr_dev_support-5.10.1 lib/tasks/ci/commit_cop.rake
ndr_dev_support-5.10.0 lib/tasks/ci/commit_cop.rake
ndr_dev_support-5.9.0 lib/tasks/ci/commit_cop.rake
ndr_dev_support-5.8.2 lib/tasks/ci/commit_cop.rake
ndr_dev_support-5.8.1 lib/tasks/ci/commit_cop.rake
ndr_dev_support-5.8.0 lib/tasks/ci/commit_cop.rake
ndr_dev_support-5.7.1 lib/tasks/ci/commit_cop.rake
ndr_dev_support-5.7.0 lib/tasks/ci/commit_cop.rake
ndr_dev_support-5.6.0 lib/tasks/ci/commit_cop.rake
ndr_dev_support-5.5.0 lib/tasks/ci/commit_cop.rake
ndr_dev_support-5.4.8 lib/tasks/ci/commit_cop.rake
ndr_dev_support-5.4.7 lib/tasks/ci/commit_cop.rake
ndr_dev_support-5.4.6 lib/tasks/ci/commit_cop.rake