Skip to content

Commit

Permalink
Update vocodehq-public (#637)
Browse files Browse the repository at this point in the history
* update script (#635)

* convert logger.error to logger.warning (#636)
  • Loading branch information
ajar98 committed Jul 15, 2024
1 parent af8fb67 commit 916d002
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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}
2 changes: 1 addition & 1 deletion vocode/streaming/telephony/client/twilio_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async def create_call(
) as response:
if not response.ok:
if response.status == 400:
logger.error(
logger.warning(
f"Failed to create call: {response.status} {response.reason} {await response.json()}"
)
raise TwilioBadRequestException(
Expand Down

0 comments on commit 916d002

Please sign in to comment.