repo-cloner/checker/notify-commit

15 lines
427 B
Plaintext
Raw Normal View History

2018-02-22 22:09:11 +01:00
#!/bin/bash
# notify on commit push
#
# Parameters (via env)
#
# COMMIT - hash of commit
# COMMIT_AUTHOR - author of commit
# COMMIT_ABBREV - abbreviated sha
# COMMIT_LOG - short line of commit log
2018-02-22 22:09:11 +01:00
# COMMIT_BRANCH - name of branch
# PROJECT_NAME - project name specified in cloner.cfg
echo "Commit: ($COMMIT: (AUTHOR=$COMMIT_AUTHOR; BRANCH=$COMMIT_BRANCH), Project: $PROJECT_NAME)"
echo -e "\t$COMMIT_ABBREV: $COMMIT_LOG"
2018-02-22 22:09:11 +01:00