Skip to content

Commit

Permalink
fix: better handling of PR creation exceptions (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-bodnar authored Sep 5, 2023
1 parent e1fab0f commit 6c108a7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,13 @@ create_pull_request() {
PULL_REQUESTS_NUMBER=$(echo "${PULL_RESPONSE}" | jq '.number')
view_debug_output

if [ "$PULL_REQUESTS_URL" = null ]; then
echo "FAILED TO CREATE PULL REQUEST"
echo "RESPONSE: ${PULL_RESPONSE}"

exit 1
fi

if [ -n "$INPUT_PULL_REQUEST_LABELS" ]; then
PULL_REQUEST_LABELS=$(echo "[\"${INPUT_PULL_REQUEST_LABELS}\"]" | sed 's/, \|,/","/g')

Expand Down

0 comments on commit 6c108a7

Please sign in to comment.