Merge pull request #7889 from element-hq/feature/bma/syncEnterpriseSubmoduleNoLeak

Do not list private enterprise commit messages in the submodule update PR
This commit is contained in:
Benoit Marty
2026-10-09 10:47:34 +02:00
committed by GitHub
@@ -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