Sha256: 239e9e0bc36fe8d189a34cd8e3608acdd56b759aa94cab3ceb8ad733ae31c751

Contents?: true

Size: 1.27 KB

Versions: 14

Compression:

Stored size: 1.27 KB

Contents

# --------------------------------------------------------------------------------------------------------------------
# Has any changes happened inside the actual library code?
# --------------------------------------------------------------------------------------------------------------------
has_app_changes = !git.modified_files.grep(/lib/).empty?
has_test_changes = !git.modified_files.grep(/spec/).empty?
is_version_bump = git.modified_files.sort == ['CHANGELOG.md', 'lib/request_handler/version.rb'].sort

if has_app_changes && !has_test_changes && !is_version_bump
  warn("Tests were not updated. That's OK if you're refactoring existing code.", sticky: false)
end

if !git.modified_files.include?('CHANGELOG.md') && has_app_changes
  fail("Please include a CHANGELOG entry. \nYou can find it at [CHANGELOG.md](https://github.com/request_handler/request_handler/blob/master/CHANGELOG.md).")
  message "Note, we hard-wrap at 80 chars and use 2 spaces after the last line."
end

# Make it more obvious that a PR is a work in progress and shouldn't be merged yet
warn('PR is classed as Work in Progress') if github.pr_title.include? 'WIP'

# Warn when there is a big PR
warn('Big PR') if git.lines_of_code > 500

commit_lint.check warn: :all, disable: [:subject_cap]

# rubocop
rubocop.lint

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
request_handler-3.0.0 Dangerfile
request_handler-2.3.0 Dangerfile
request_handler-2.2.0 Dangerfile
request_handler-2.1.1 Dangerfile
request_handler-2.1.0 Dangerfile
request_handler-2.0.0 Dangerfile
request_handler-1.3.0 Dangerfile
request_handler-1.2.0 Dangerfile
request_handler-1.1.0 Dangerfile
request_handler-1.0.0 Dangerfile
request_handler-0.15.0 Dangerfile
request_handler-0.14.0 Dangerfile
request_handler-0.13.0 Dangerfile
request_handler-0.12.0 Dangerfile