-
-
Save KyMidd/65d0c5629009b69cc987c19eebecd531 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # If the auto-link reference already exists, skip | |
| if [[ $(echo "$CREATE_AUTOLINK_REF" | jq -r '.errors[]?.code' | grep -E 'already_exists') ]]; then | |
| #echo "☠️ Auto-link reference already exists for $TICKET_REF, skipping" | |
| CREATE_AUTOLINK_REFERENCE_ALREADY_EXIST+=($TICKET_REF) | |
| # If created successfully, return success | |
| elif [[ $(echo "$CREATE_AUTOLINK_REF" | jq -r '.key_prefix') == "${TICKET_REF}-" ]]; then | |
| #echo "💥 Successfully created auto-link reference for $TICKET_REF" | |
| CREATE_AUTOLINK_REFERENCE_SUCCESSES+=($TICKET_REF) | |
| # If something else happened, return detailed failure message | |
| else | |
| echo "☠️ Something bad happened creating auto-link reference for $TICKET_REF, please investigate response:" | |
| echo "$CREATE_AUTOLINK_REF" | |
| CREATE_AUTOLINK_REFERENCE_FAILURES+=($TICKET_REF) | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment