cloudsidedev / appside

Multitenant environment automation.
http://cloudside.ch
GNU Affero General Public License v3.0
38 stars 7 forks source link

Support an optional commit message for checkins #44

Closed ocean90 closed 6 years ago

ocean90 commented 7 years ago

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"

ivomarino commented 7 years ago

jep, sounds good, @89luca89 what do you think? should be quite easy to implement, right?

ocean90 commented 7 years ago

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"
ivomarino commented 7 years ago

will be implement in the AppFlow Symfony CLI: https://github.com/ttssdev/appflow/issues/55.