Last active
December 10, 2015 23:30
-
-
Save kyanny/4509627 to your computer and use it in GitHub Desktop.
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 | |
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 |
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 | |
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