From a718c1dac9115d079c3b987a4b2bfdaadbc1810c Mon Sep 17 00:00:00 2001 From: hophacker Date: Mon, 22 Jul 2019 14:37:41 +0800 Subject: [PATCH] adjust style of commits, and add card to list named inside git --- zsh/functions.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zsh/functions.zsh b/zsh/functions.zsh index 6e9b4d0..60feb01 100644 --- a/zsh/functions.zsh +++ b/zsh/functions.zsh @@ -154,14 +154,14 @@ function gitcopy() { prefix=`git remote get-url origin | sed -E 's/git@github.com:/https:\/\/github.com\//g' | sed -E 's/(.*)\.git/\1/'` project_name=`echo $prefix | sed -E 's/.*\/(.*)/\1/'` commits=`git log $commit -n $n --stat --pretty=" -* [$project_name]($prefix/commit/%H) %an: **%s**" | sed 's/^[^*]/ /'` +* [$project_name]($prefix/commit/%H) %an: **%s**" | sed 's/^[^*]/> /'` echo $commits which pbcopy &> /dev/null if [[ $? == '0' ]]; then echo $commits | pbcopy fi if [[ "$trelloCardName" != '' ]]; then - ruby ~/Projects/paiyou-hub/bin/create_trello_todo_card.rb -n $trelloCardName -d "$commits" + ruby ~/Projects/paiyou-hub/bin/create_trello_todo_card.rb -n $trelloCardName -d "$commits" -l `git config user.name` fi }