15 lines
427 B
Bash
Executable File
15 lines
427 B
Bash
Executable File
#!/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
|
|
# 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"
|
|
|