the solution is simple but spread across threads and pages online. here is the easy copy-paste
create a folder ci_scripts in the root of your project. then create a ci_post_xcodebuild.sh file in that new folder. paste this in it:
#!/bin/zsh
# save as ci_scripts/ci_post_xcodebuild.sh in your project root
if [[ -d "$CI_APP_STORE_SIGNED_APP_PATH" ]]; then
TESTFLIGHT_DIR_PATH=../TestFlight
mkdir $TESTFLIGHT_DIR_PATH
git fetch --deepen 3 && git log -3 --pretty=format:"%s" | cat > $TESTFLIGHT_DIR_PATH/WhatToTest.en-US.txt
fi
replace 3 with how many past commits you want in your changelog
Topic:
Developer Tools & Services
SubTopic:
Xcode Cloud
Tags: