Skip to content

Instantly share code, notes, and snippets.

@KyMidd

KyMidd/asdf.sh Secret

Last active July 7, 2024 19:31
Show Gist options
  • Select an option

  • Save KyMidd/90a3cd2a5722d56f7808f4f4b70f764f to your computer and use it in GitHub Desktop.

Select an option

Save KyMidd/90a3cd2a5722d56f7808f4f4b70f764f to your computer and use it in GitHub Desktop.
###
# Check vars required to run
###
if [[ -z $GH_ORG || -z $GH_REPO || -z $PR_TITLE || -z $GITHUB_TOKEN || -z $PULL_REQUEST_NUMBER || -z $BASE_BRANCH ]]; then
echo "🔴 One or more variables are undefined, exiting"
exit_if_not_local 1
fi
###
# Start
###
print_break
echo "🟢 The title of your pull request is currently $PR_TITLE"
###
# Normalize inputs
###
# Capitalize the PR_TITLE to make regex matches easier downstream
NORMALIZED_PR_TITLE=$(echo $PR_TITLE | tr '[:lower:]' '[:upper:]')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment