build: Add deprecation notice to merge-pr script to nudge to new tooling (#37204)

Adds a deprecation notice to the old merge-pr script informing the
user the script will be removed in favor of the ng-dev merge tooling.
This currently serves as a warning, and does not fail to perform the
merge.

PR Close #37204
This commit is contained in:
Joey Perrott 2020-05-19 11:17:45 -07:00 committed by Kara Erickson
parent 772c5b8f64
commit 4e96cdc23f
1 changed files with 24 additions and 0 deletions

View File

@ -4,6 +4,30 @@
# https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html
set -u -e -E -o pipefail
# Clippy ascii art copied from https://github.com/gbigwood/Clippo
echo -e "
################################################
/ \ _________________
| | / \\
@ @ | It looks like |
|| || | you are trying |
|| || <--| to merge a PR. |
|\_/| \_________________/
\___/
A new merge script is available using `ng-dev`!
In the future, this script will be removed in
favor of using ng-dev.
To merge a pr using the new tooling run:
$ yarn -s ng dev pr merge <pr-number>
################################################"
# Sleep a short time to highlight deprecate notice.
sleep 2;
BOLD='printf \e[1m'
RESET_STYLES='printf \e[0m'
LIGHT_CYAN='printf \e[96m'