1
0
mirror of synced 2026-01-04 09:04:47 -05:00
Files
airbyte/tools/bin/pr_body.sh

26 lines
1.1 KiB
Bash
Executable File

#!/usr/bin/env bash
set -e
. tools/lib/lib.sh
[[ -z "$GIT_REVISION" ]] && echo "Couldn't get the git revision..." && exit 1
echo "*IMPORTANT: Only merge if the platform build is passing!*"
echo
# Do not change the following line - the Create Release Github action relies on it
echo "Changelog:"
echo
PAGER=cat git log v${PREV_VERSION}..${GIT_REVISION} --oneline --decorate=no
# The following empty 'echo' is also important for marking the end of the changelog for the Create Release Github action
echo
echo "Instructions:"
echo "- *SQUASH MERGE* this PR - this is necessary to ensure the automated Create Release action is triggered."
echo "- Double check that the Create Release action was triggered and ran successfully on the commit to master \
(this should only take a few seconds)."
echo "- If the Create Release action failed due to a transient issue, retry the action. If it failed due to \
a non-transient issue, you will need to manually create a release by following these steps:"
echo " 1. Pull most recent version of master"
echo " 2. Run ./tools/bin/tag_version.sh"
echo " 3. Create a GitHub release with the changelog"