lib/fourchette/github.rb in fourchette-0.0.1 vs lib/fourchette/github.rb in fourchette-0.0.2
- old
+ new
@@ -28,10 +28,10 @@
logger.info 'Removing the hook for your app...'
octokit.remove_hook(ENV['FOURCHETTE_GITHUB_PROJECT'], fourchette_hook.id)
end
def comment_pr pr_number, comment
- comment = "****** FOURCHETTE COMMENT ******\n\n#{comment}\n\n****** END OF FOURCHETTE COMMENT ******"
+ comment = "****** FOURCHETTE COMMENT ******\n\n#{comment}\n\n****** END OF FOURCHETTE COMMENT ******" if Fourchette::DEBUG
octokit.add_comment(ENV['FOURCHETTE_GITHUB_PROJECT'], pr_number, comment)
end
private
def octokit
\ No newline at end of file