Skip to content

Instantly share code, notes, and snippets.

@kyanny
Last active December 10, 2015 23:30
Show Gist options
  • Save kyanny/4509627 to your computer and use it in GitHub Desktop.
Save kyanny/4509627 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
Dir.glob("#{ENV['HOME']}/works/**").each do |dir|
next unless File.exists?("#{File.expand_path(File.join(dir, '.git'))}")
Dir.chdir(dir) do
system("nippo.rb")
end
end
#!/usr/bin/env ruby
remote = `git remote -v | grep origin | awk '{print $2}'`.split("\n").first.chomp.sub(/.*:(.*)/, '\1').sub(/\.git/, '')
puts "### #{remote} ###"
puts ""
`git log --after=yesterday --author='Kensuke Nagae'`.each_line do |line|
puts line.gsub(/commit (\w+)/) {
"commit https://github.com/#{remote}/commit/#{$1}"
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment