Skip to content

Commit

Permalink
Touch up messages
Browse files Browse the repository at this point in the history
  • Loading branch information
BanzaiMan committed May 5, 2016
1 parent 1f63a27 commit 972efd6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions make_pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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
Expand All @@ -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}"
Expand Down

0 comments on commit 972efd6

Please sign in to comment.