Signed-off-by: Radosław Zarzyński <rzarzyns@redhat.com>
if [ "$merged" = "true" ] ; then
true
else
- error "${original_pr_url} is not merged yet"
- info "Cowardly refusing to perform automated cherry-pick"
- false
+ if [ "$FORCE" ] ; then
+ warning "${original_pr_url} is not merged yet"
+ info "--force was given, so continuing anyway"
+ else
+ error "${original_pr_url} is not merged yet"
+ info "Cowardly refusing to perform automated cherry-pick"
+ false
+ fi
fi
number_of_commits=$(echo "${remote_api_output}" | jq '.commits')
if [ "$number_of_commits" -eq "$number_of_commits" ] 2>/dev/null ; then