diff --git a/scripts/hook.sh b/scripts/hook.sh index 75da1af28..100007b1a 100755 --- a/scripts/hook.sh +++ b/scripts/hook.sh @@ -5,8 +5,8 @@ COMMIT_TRIM="$(git log --format=%h -1)" COMMIT_FULL="$(git log --format=%H -1)" COMMIT_MSG="$(git log --format=%s -1)" -# Send message with branch name -curl -H "Content-Type: application/json" -X POST -d '{"embeds": [{"title": "","color": 10195199,"description": "**Changelog:** '"$COMMIT_MSG"'\nBranch: `'"$BRANCH"'`\nCommit: ['${COMMIT_TRIM}'](https://github.com/kami-blue/client/commits/'${COMMIT_TRIM}') Direct: ['${COMMIT_TRIM}'](https://github.com/kami-blue/client/commit/'${COMMIT_FULL}') "}]}' "$WEBHOOK" +# Send message with commit information +curl -H "Content-Type: application/json" -X POST -d '{"embeds": [{"title": "","color": 10195199,"description": "**Changelog:** '"$COMMIT_MSG"'\nCommit: ['${COMMIT_TRIM}'](https://github.com/kami-blue/client/commits/'${COMMIT_TRIM}') Direct: ['${COMMIT_TRIM}'](https://github.com/kami-blue/client/commit/'${COMMIT_FULL}') "}]}' "$WEBHOOK" # Find the release file and rename it to kamiblue-version-commit-release.jar #BUILD_DIR="$(readlink -f ./build/libs/)"