Last active
May 19, 2019 15:02
-
-
Save javierfernandes/603cf8a441f97e2015451a20e1aa0a41 to your computer and use it in GitHub Desktop.
Crear-PR-Correccion-Template-Scala
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| NOMBRE_ENTREGA="checkpoint" | |
| NOMBRE_TAG="checkpoint" # esto podría calcularse segun fecha | |
| COMMIT_BASE="43f7b476bd17df52cee94b4d3d108b5344fd7b46" | |
| # CREAR BASE BRANCH | |
| git checkout -b "${NOMBRE_ENTREGA}-correccion" ${COMMIT_BASE} | |
| git push --set-upstream origin "${NOMBRE_ENTREGA}-correccion" | |
| # CREAR branch de entrega | |
| git checkout -b "${NOMBRE_ENTREGA}-entrega" "${NOMBRE_TAG}" | |
| git push --set-upstream origin "${NOMBRE_ENTREGA}-entrega" | |
| # Luego ir a GH y hacer un PR: | |
| # | |
| # ${NOMBRE_ENTREGA}-entrega ---> ${NOMBRE_ENTREGA}-correccion | |
| # | |
| hub pull-request -b ${NOMBRE_ENTREGA}-correccion -h ${NOMBRE_ENTREGA}-entrega -m "Correccion ${NOMBRE_ENTREGA}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment