Last active
December 14, 2015 07:09
-
-
Save founddrama/5048611 to your computer and use it in GitHub Desktop.
Take THAT Confluence...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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