Skip to content

Instantly share code, notes, and snippets.

@chmouel
Created April 12, 2019 09:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chmouel/a29c7e7058f27e06627d98a7d5df6463 to your computer and use it in GitHub Desktop.
Save chmouel/a29c7e7058f27e06627d98a7d5df6463 to your computer and use it in GitHub Desktop.
#!/bin/bash
PERSONAL_GIT_REMOTE=chmouel # usually your github username
RELEASE_VERSION=${1:-v0.2.0} # Tekton latest release from where you are going to release from
# detect current branch
currentb=$(git rev-parse --abbrev-ref HEAD)
# Push current branch to your user
git push ${PERSONAL_GIT_REMOTE} -u ${currentb}
hub pull-request -p --base openshift/tektoncd-pipeline:release-${RELEASE_VERSION} --head ${PERSONAL_GIT_REMOTE}:${currentb}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment