mirror of
https://github.com/zhigang1992/boxen.git
synced 2026-04-30 13:01:39 +08:00
Don't report issues to us
This commit is contained in:
@@ -95,6 +95,8 @@ module Boxen
|
|||||||
|
|
||||||
def issues?
|
def issues?
|
||||||
return unless config.reponame
|
return unless config.reponame
|
||||||
|
return if config.reponame == 'boxen/our-boxen'
|
||||||
|
|
||||||
config.api.repository(config.reponame).has_issues
|
config.api.repository(config.reponame).has_issues
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -234,5 +234,9 @@ class BoxenReporterTest < Boxen::Test
|
|||||||
@config.stubs(:reponame) # to ensure the returned value is nil
|
@config.stubs(:reponame) # to ensure the returned value is nil
|
||||||
api.stubs(:repository).returns(RepoInfo.new(true))
|
api.stubs(:repository).returns(RepoInfo.new(true))
|
||||||
refute @reporter.issues?
|
refute @reporter.issues?
|
||||||
|
|
||||||
|
@config.stubs(:reponame).returns('boxen/our-boxen') # our main public repo
|
||||||
|
api.stubs(:repository).returns(RepoInfo.new(true))
|
||||||
|
refute @reporter.issues?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user