Sha256: 160d22563f7f2cc62cf1d0b5a4e19070601d4bf79752919c459a97be8ef664bc

Contents?: true

Size: 771 Bytes

Versions: 7

Compression:

Stored size: 771 Bytes

Contents

# frozen_string_literal: true

unless github.pr_author.include?('dependabot')
  # Link to any relevant VSTS tickets(old or new domain) or OpsGenie alerts
  urls = %w[
    https://amaabca.visualstudio.com
    https://dev.azure.com
    https://app.opsgenie.com
  ]
  unless urls.any? { |url| github.pr_body.include?(url) }
    fail 'Please provide a VSTS, ADO link or OPSGENIE link in the Pull Request description 💩'
  end

  # Do not let 'binding.pry' get into master by accident
  fail 'A binding.pry was committed 💩' if system 'grep -r binding.pry . --exclude=Dangerfile --exclude-dir=vendor'

  # Do not let 'debugger' get into master by accident
  fail 'A debugger was committed 💩' if system 'grep -r debugger . --exclude=Dangerfile --exclude-dir=vendor'
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ama_layout-11.5.1 Dangerfile
ama_layout-11.5.0 Dangerfile
ama_layout-11.4.0 Dangerfile
ama_layout-11.3.1 Dangerfile
ama_layout-11.3.0 Dangerfile
ama_layout-11.2.0 Dangerfile
ama_layout-11.1.0 Dangerfile