remove trello stuff from gitcopy

This commit is contained in:
hophacker 2020-04-22 12:50:14 +08:00
parent fb0b3fbb3c
commit 356618ba15

View File

@ -216,9 +216,6 @@ function gitcopy() {
n) n)
n=${OPTARG} n=${OPTARG}
;; ;;
t)
trelloCardName=${OPTARG}
;;
*) *)
usage usage
;; ;;
@ -226,7 +223,6 @@ function gitcopy() {
done done
prefix=`git remote get-url origin | sed -E 's/git@github.com:/https:\/\/github.com\//g' | sed -E 's/(.*)\.git/\1/'` 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/'` project_name=`echo $prefix | sed -E 's/.*\/(.*)/\1/'`
trelloCardName=`git log $commit -n $n --pretty="✔️ %s"`
commits=`git log $commit -n $n --stat --pretty=" 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 echo $commits
@ -234,9 +230,6 @@ function gitcopy() {
if [[ $? == '0' ]]; then if [[ $? == '0' ]]; then
echo $commits | pbcopy echo $commits | pbcopy
fi fi
if [[ "$trelloCardName" != '' ]]; then
ruby ~/Projects/paiyou-hub/bin/trello_action.rb -n $trelloCardName -d "$commits" -u `git config user.name`
fi
} }
function kubectl() { function kubectl() {
DEBUG=false DEBUG=false