Skip to content

Instantly share code, notes, and snippets.

@wulab
Last active August 29, 2015 14:15
Show Gist options
  • Select an option

  • Save wulab/87061d49fa328ba52e39 to your computer and use it in GitHub Desktop.

Select an option

Save wulab/87061d49fa328ba52e39 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
commit_logs = $stdin.read
pull_requests = commit_logs.scan(/Merge pull request (#\d+) from \w+\/(\S+)$/)
pull_requests.each { |(number, branch)| $stdout.puts "* #{number} #{branch}" }
#!/bin/sh
git log --merges master..staging | githubf.rb | sort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment