Skip to content

Commit

Permalink
[danger] Added detection of # in PR-body (fastlane#4985)
Browse files Browse the repository at this point in the history
  • Loading branch information
KrauseFx committed Jun 2, 2016
1 parent 948397f commit 14e5630
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dangerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ if pr_body.length < 5
warn("Please provide a changelog summary in the Pull Request description @#{pr_author}")
end

unless pr_title.downcase.include?('version bump') || pr_body.include?("https://github.com/fastlane/fastlane/issues/")
if !pr_title.downcase.include?('version bump') &&
!pr_body.include?("https://github.com/fastlane/fastlane/issues/") &&
pr_body.match(/#\d+/).nil?
warn("Before submitting a Pull Request, please create an issue on GitHub to discuss the change. Please add a link to the issue in the PR body.")
end

Expand Down

0 comments on commit 14e5630

Please sign in to comment.