Skip to content

Instantly share code, notes, and snippets.

@citizen428
Created July 9, 2018 04:00
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 citizen428/6e008145de56be2dc448d38f90bbca63 to your computer and use it in GitHub Desktop.
Save citizen428/6e008145de56be2dc448d38f90bbca63 to your computer and use it in GitHub Desktop.
ruby
#!/usr/bin/env ruby
message = File.read(ARGV[0])
unless message =~ /\s*#\d+/
puts "[POLICY] Your message did not reference a ticket."
exit 1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment