Closed ocean90 closed 6 years ago
jep, sounds good, @89luca89 what do you think? should be quite easy to implement, right?
Untested:
for i in "$@"
do
case $i in
-m=*|--message=*)
COMMITMESSAGE="${i#*=}"
shift # past argument=value
;;
*)
# unknown option
;;
esac
COMMITMESSAGE="${COMMITMESSAGE:-Auto commit}"
# …
git -C ~/.appflow/tenant/$tenant commit -m "$COMMITMESSAGE"
will be implement in the AppFlow Symfony CLI: https://github.com/ttssdev/appflow/issues/55.
The current commit message is "Auto commit".
I think it would be nice to be able to define a custom message. Example:
appflow checkin env=production -m "Added new host"