From 972efd632cea8b0625f5d6f4d6eb6d0622d8738b Mon Sep 17 00:00:00 2001 From: Hiro Asari Date: Wed, 4 May 2016 20:07:29 -1000 Subject: [PATCH] Touch up messages --- make_pr.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/make_pr.sh b/make_pr.sh index ea1b42fa..adb57668 100755 --- a/make_pr.sh +++ b/make_pr.sh @@ -69,7 +69,6 @@ fi ISSUE_PACKAGE=$(echo $PACKAGES | cut -f1 -d' ') -set -x ### Search for an existing PR SEARCH_URL="https://api.github.com/search/issues?q=repo:travis-ci/$ISSUE_REPO+type:pr+is:open+%s" @@ -84,7 +83,7 @@ while [ $current -lt $HITS ]; do if [ z${CANDIDATE_PACKAGE} = z${ISSUE_PACKAGE} ]; then # duplicate is found. Close the issue - echo "This is a duplicate request" + echo "${ANSI_RED}This is a duplicate request${ANSI_RESET}" curl -X POST -d "{\"body\":\"Duplicate of $ISSUE_REPO#$CANDIDATE_PR_NUMBER\"}" \ -H "Content-Type: application/json" -H "Authorization: token ${GITHUB_OAUTH_TOKEN}" \ https://api.github.com/repos/travis-ci/$ISSUE_REPO/issues/$ISSUE_NUMBER/comments @@ -96,8 +95,6 @@ while [ $current -lt $HITS ]; do let current=$current+1 done -set +x - notice "Setting up PR with\nRepo: ${ISSUE_REPO}\nNUMBER: ${ISSUE_NUMBER}\nPackages: ${PACKAGES[*]}" BRANCH="test-${ISSUE_REPO}-${ISSUE_NUMBER}"