Skip to content

Instantly share code, notes, and snippets.

@nvkv
Created April 25, 2012 10:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nvkv/2488750 to your computer and use it in GitHub Desktop.
Save nvkv/2488750 to your computer and use it in GitHub Desktop.
git troublemaker
#!/usr/bin/env ruby
unless (/(refs|closes|fixes).+#\d+/ =~ File.open(ARGV[0]).read).nil?
exit 0
else
puts "Commit message is not issue related, you bastard!"
exit 1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment