Skip to content

Instantly share code, notes, and snippets.

@founddrama
Last active December 14, 2015 07:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save founddrama/5048611 to your computer and use it in GitHub Desktop.
Save founddrama/5048611 to your computer and use it in GitHub Desktop.
Take THAT Confluence...
#!/usr/bin/env ruby
log = ARGF.read
formatted = log.gsub(/commit ([\da-f]{40})\nAuthor: .*\nDate: +.*\n\n {4}(.*)\n(?:\ {4}.*\n)*/, '|\1|\2|').gsub(/([\[\]])/, '\\\\\1')
puts formatted
# Usage:
git log $(git rev-parse --abbrev-ref HEAD) --no-merges --not master | format_release_notes.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment