added review

This commit is contained in:
Yann Esposito (Yogsototh) 2018-10-24 21:54:05 +02:00
parent 4268108f4c
commit 1b276188c3
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646

View file

@ -21,7 +21,7 @@ subtitle() {
prjname="testproj" prjname="testproj"
playgrounddir="/tmp/gpm-playground" playgrounddir="/tmp/gpm-playground"
testproj="$playgrounddir/$prjname" testproj="$playgrounddir/$prjname"
testproj2="$playgrounddir/cloned-$prjname" clonedproj="$playgrounddir/cloned-$prjname"
# display all commands # display all commands
set -x set -x
@ -31,7 +31,7 @@ title "INIT"
subtitle "Cleaning Up" subtitle "Cleaning Up"
[[ -d $testproj ]] && rm -rf $testproj [[ -d $testproj ]] && rm -rf $testproj
[[ -d $testproj2 ]] && rm -rf $testproj2 [[ -d $clonedproj ]] && rm -rf $clonedproj
[[ -d ~/.local/share/gpm ]] && rm -rf ~/.local/share/gpm [[ -d ~/.local/share/gpm ]] && rm -rf ~/.local/share/gpm
gpm serve stop gpm serve stop
@ -50,8 +50,7 @@ gpm init
title "ISSUES" title "ISSUES"
subtitle "gpm new-issue" subtitle "gpm new-issue"
gpm new-issue -t "issue-1" -p "A" gpm new-issue -t "better README" -p "A" -b better-readme -t doc
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
title "HOOKS" title "HOOKS"
@ -77,21 +76,65 @@ popd
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
title "CLONE" title "CLONE"
mkdir -p ${testproj2:h} mkdir -p ${clonedproj:h}
pushd ${testproj2:h} pushd ${clonedproj:h}
subtitle "git clone" subtitle "git clone"
git clone git://localhost:9418/${prjname}.git $testproj2 git clone git://localhost:9418/${prjname}.git $clonedproj
# - - - - - - - - - - - - - - - - - - - - - - - -
pushd $clonedproj # Cloned project
subtitle "gpm init (into the cloned repo)" subtitle "gpm init (into the cloned repo)"
gpm init gpm init
subtitle "review" subtitle "Pull request"
git checkout -b better-readme
echo "Some Edit" >> README echo "Some Edit" >> README
git add README
git commit -m "made a better README"
gpm review start popd
gpm review request-change -t add more infos please # - - - - - - - - - - - - - - - - - - - - - - - -
git remote add dev $testproj subtitle "Review"
pushd $testproj
git remote add dev $clonedproj
git fetch dev
git checkout better-readme
# look into README
# better with org-anotate-file `SPC o a`
# gpm review start
# gpm review end
gpm review request-change -t "add more infos please"
popd
# - - - - - - - - - - - - - - - - - - - - - - - -
pushd $clonedproj
gpm review retrieve
echo "More infos" >> README
git add README
git commit -m "added more infos"
popd
# - - - - - - - - - - - - - - - - - - - - - - - -
pushd $testproj
git checkout better-readme
git pull
git review accept -t "LGTM"
git co master
git merge better-readme
gpm serve update
popd
# - - - - - - - - - - - - - - - - - - - - - - - -
pushd $clonedproj
git co master
git pull
popd
# - - - - - - - - - - - - - - - - - - - - - - - -
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
title "STOP SERVE" title "STOP SERVE"
@ -103,4 +146,4 @@ popd
set +x set +x
echo "------------------------------------" echo "------------------------------------"
echo "$testproj" echo "$testproj"
echo "$testproj2" echo "$clonedproj"