Skip to content

Commit

Permalink
fix: use GIT_COMMIT_MESSAGE if set
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelBroseghini committed Jul 26, 2024
1 parent b01d6ae commit 5ac6e8b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/commit-and-pull-request.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,14 @@ function git_commit_with_metadata {
OVERLAYS: ${OVERLAY_NAMES}
MANIFEST_JSON: ${MANIFEST_JSON}"

git commit -m "${TITLE}
if [ -n "${GIT_COMMIT_MESSAGE}" ]; then
git commit -m "${GIT_COMMIT_MESSAGE}"
else
git commit -m "${TITLE}
${METADATA}
"
${METADATA}
"
fi
}

# Fail on non-zero exit code
Expand Down

0 comments on commit 5ac6e8b

Please sign in to comment.