Skip to content

Commit

Permalink
Merge pull request RainbowEngineer#10 from billy3321/master
Browse files Browse the repository at this point in the history
Please add my sign!!
  • Loading branch information
billy3321 authored Dec 6, 2016
2 parents a0f2758 + e06d841 commit b562e66
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions sign.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
#!/bin/bash

# uncomment this for debug
# set -o xtrace

# This is a file use to sign. Please input file as parameter.
# Usage: ./sign.sh signed_by_${USERNAME}.txt

pushd $(dirname $0)
REPO=$(cat .git/config | grep "[email protected]" | cut -f 2 -d ':' | sed s/\.git//)

git pull
git remote add upstream https://github.com/RainbowEngineer/taiwan_love_wins.git
git fetch upstream
git merge upstream/master
git push
git add $1
git commit
git push
REPO=$(cat .git/config | grep "[email protected]" | cut -f 2 -d ':' | sed s/\.git//)

if [ -f $(which hub) ]; then
echo '自動送 pull-request...'
hub pull-request -m "Please add my sign!!" -b RainbowEngineer/taiwan_love_wins:master
else

echo '系統沒有安裝hub,請前往以下網址送出pull request:'
echo "https://github.com/${REPO}/pull/new/master"
fi
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit b562e66

Please sign in to comment.