Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env ruby
- if match = `git symbolic-ref HEAD 2> /dev/null`.split('/').last.to_s.match(/^(?:t|s)-?(\d+)$/)
- message = File.read(ARGV.first)
- message.gsub!("STORYID", "[##{ match[1] }]")
- File.open(ARGV.first, 'w') do |f|
- f.puts(message)
- end
- end
Add Comment
Please, Sign In to add comment