diff --git a/zsh/functions.zsh b/zsh/functions.zsh index e15b2d6..e0de4dc 100644 --- a/zsh/functions.zsh +++ b/zsh/functions.zsh @@ -216,9 +216,6 @@ function gitcopy() { n) n=${OPTARG} ;; - t) - trelloCardName=${OPTARG} - ;; *) usage ;; @@ -226,7 +223,6 @@ function gitcopy() { done 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/'` - trelloCardName=`git log $commit -n $n --pretty="✔️ %s"` commits=`git log $commit -n $n --stat --pretty=" * [$project_name]($prefix/commit/%H) %an: **%s**" | sed 's/^[^*]/> /'` echo $commits @@ -234,9 +230,6 @@ function gitcopy() { if [[ $? == '0' ]]; then echo $commits | pbcopy fi - if [[ "$trelloCardName" != '' ]]; then - ruby ~/Projects/paiyou-hub/bin/trello_action.rb -n $trelloCardName -d "$commits" -u `git config user.name` - fi } function kubectl() { DEBUG=false