lib/danger/request_source/github.rb in danger-3.0.0 vs lib/danger/request_source/github.rb in danger-3.0.1
- old
+ new
@@ -20,10 +20,10 @@
Octokit.api_endpoint = api_url
end
end
def validates_as_api_source?
- @token && !@token.empty?
+ (@token && !@token.empty?) || self.environment["DANGER_USE_LOCAL_GIT"]
end
def scm
@scm ||= GitRepo.new
end