-
-
Save KyMidd/90a3cd2a5722d56f7808f4f4b70f764f 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
| ### | |
| # 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