Skip to content

Commit

Permalink
update script (#635)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajar98 authored Jul 12, 2024
1 parent 4c196e1 commit e1cf228
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pull_core_into_upstream.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,13 @@ SUBMODULE_BRANCH="vocodehq-public"

USER=$(gh api user | jq -r '.login')
DATE=$(date +%Y%m%d%H%M%S)
FEATURE_BRANCH="${USER}/update-${SUBMODULE_BRANCH}-${DATE}"
PR_TITLE="Update ${SUBMODULE_BRANCH}"
PR_BODY="This PR updates the ${SUBMODULE_BRANCH} branch by merging changes from the main branch."

echo "Creating a new branch ${FEATURE_BRANCH}"

git checkout ${SUBMODULE_BRANCH}
git pull origin ${SUBMODULE_BRANCH}
git checkout main
git pull origin main
git pull origin ${SUBMODULE_BRANCH}
git checkout ${SUBMODULE_BRANCH}
git checkout -b ${FEATURE_BRANCH}
git merge main
gh pr create -t "${PR_TITLE}" -b "${PR_BODY}" -B ${SUBMODULE_BRANCH}

0 comments on commit e1cf228

Please sign in to comment.