36
34

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

GitHub ć®ć‚³ćƒŸćƒƒćƒˆćƒ­ć‚°ć‚’ę—„å ±ćŒć‚ć‚Šć«ć™ć‚‹

36
Last updated at Posted at 2013-01-08
  1. 仄下の nippo.rb ć‚’ćƒ€ć‚¦ćƒ³ćƒ­ćƒ¼ćƒ‰ć—ćƒ‘ć‚¹ć®é€šć£ćŸćƒ‡ć‚£ćƒ¬ć‚ÆćƒˆćƒŖć«é…ē½®ć™ć‚‹
  2. GitHub ć®ćƒŖćƒć‚øćƒˆćƒŖć‚’ clone ć—ć¦ććŸä½œę„­ćƒ‡ć‚£ćƒ¬ć‚ÆćƒˆćƒŖć§ $ nippo.rb ćØå®Ÿč”Œć™ć‚‹
  3. ćć®ę—„ć®ć‚³ćƒŸćƒƒćƒˆćƒ­ć‚°ćƒ”ćƒƒć‚»ćƒ¼ć‚øćŒ GitHub ćøć®ćƒŖćƒ³ć‚Æć¤ćć§č”Øē¤ŗć•ć‚Œć‚‹

ę—„å ±ćŒć‚ć‚Šć«ć‚³ćƒ”ćƒšć™ć‚‹ćØä¾æåˆ©ć§ć™ļ¼ˆć‚µćƒœć£ć¦ć‚‹ćØäø€ē›®ēž­ē„¶ćŖć®ć§ēœŸé¢ē›®ć«ä»•äŗ‹ć—ć‚ˆć†ćØć„ć†ę°—ć«ćŖć‚Šć¾ć™ļ¼‰

nippo.rb
# !/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

č¤‡ę•°ćƒ—ćƒ­ć‚øć‚§ć‚Æćƒˆć®ä½œę„­ćƒ‡ć‚£ćƒ¬ć‚ÆćƒˆćƒŖć‚’äø€ē®‡ę‰€ć«ć¾ćØć‚ć¦ć„ć‚‹å “åˆćÆä»„äø‹ć® nippo-all.rb ć‚’ä½µē”Øć™ć‚‹ćØć•ć‚‰ć«ä¾æåˆ©ć§ć™ć€‚

nippo-all.rb
# !/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

36
34
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
36
34

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?