Skip to content

Commit

Permalink
Merge pull request tektoncd#33 from openshift/t_fix_update_script
Browse files Browse the repository at this point in the history
Add GitHub repo name to hub command and fail fast
  • Loading branch information
vdemeester authored May 17, 2019
2 parents 8dafce6 + c607c65 commit 0f284dd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion openshift/release/update-to-head.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# Synchs the release-next branch to master and then triggers CI
# Usage: update-to-head.sh

set -e
REPO_NAME=`basename $(git rev-parse --show-toplevel)`

# Reset release-next to upstream/master.
git fetch upstream master
git checkout upstream/master -B release-next
Expand All @@ -24,7 +27,7 @@ git commit -m "Triggering CI on branch 'release-next' after synching to upstream
git push -f openshift release-next-ci

if hash hub 2>/dev/null; then
hub pull-request --no-edit -l "kind/sync-fork-to-upstream" -b openshift:release-next -h openshift:release-next-ci
hub pull-request --no-edit -l "kind/sync-fork-to-upstream" -b openshift/${REPO_NAME}:release-next -h openshift/${REPO_NAME}:release-next-ci
else
echo "hub (https://github.com/github/hub) is not installed, so you'll need to create a PR manually."
fi

0 comments on commit 0f284dd

Please sign in to comment.