Do not list enterprise commit messages in the submodule update PR

The enterprise repository is private, so only mention the number of new
commits in the generated PR description.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Benoit Marty
2026-10-09 10:33:22 +02:00
parent d8a072755f
commit dfccc42326
@@ -54,11 +54,9 @@ jobs:
{ {
echo "body<<EOF" echo "body<<EOF"
if [ "$on_main" = "true" ]; then if [ "$on_main" = "true" ]; then
echo "Update the \`enterprise\` submodule from \`$current\` to the latest commit of \`main\` (\`$main\`)." # Do not list the commit messages, the enterprise repository is private.
echo count=$(git -C "$RUNNER_TEMP/enterprise" rev-list --count "$current..$main")
echo "New commits:" echo "Update the \`enterprise\` submodule from \`$current\` to the latest commit of \`main\` (\`$main\`), $count new commit(s)."
echo
git -C "$RUNNER_TEMP/enterprise" log --format='- %h %s' "$current..$main"
else else
echo "The \`enterprise\` submodule targets \`$current\`, which is not on the \`main\` branch." echo "The \`enterprise\` submodule targets \`$current\`, which is not on the \`main\` branch."
echo echo