lib/circleci/bundle/update/pr.rb in circleci-bundle-update-pr-0.0.1 vs lib/circleci/bundle/update/pr.rb in circleci-bundle-update-pr-0.0.2
- old
+ new
@@ -18,9 +18,10 @@
pull_request = create_pull_request(repo_full_name, branch, now)
add_comment_of_compare_linker(repo_full_name, pull_request[:number])
end
def self.need?
+ return false unless ENV['CIRCLE_BRANCH'] == "master"
system("bundle update")
`git status -sb 2> /dev/null`.include?("Gemfile.lock")
end
private_class_method :need?