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