Skip to content

Instantly share code, notes, and snippets.

@kkung
Created August 30, 2011 07:59
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 kkung/1180427 to your computer and use it in GitHub Desktop.
Save kkung/1180427 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
commit_msg = File.read(ARGV[0])
task_id_regex = /(?:story|card|task) #?(\d+)/i
if commit_msg !~ task_id_regex
puts "AgileZen issue id was missing! You must specified least one issue id."
puts "ex) blahblah task #1234"
exit 1
end
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment