From dee5ef207d04c1b3092206cd8d5988df9dd0d994 Mon Sep 17 00:00:00 2001 From: Jeffrey 'Alex' Clark Date: Wed, 22 Jul 2026 13:06:40 -0400 Subject: [PATCH] PYTHON-5950 Fix spec resync scripts to use main branch --- .evergreen/resync-specs.sh | 2 +- .evergreen/scripts/create-spec-pr.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.evergreen/resync-specs.sh b/.evergreen/resync-specs.sh index 5fa5b3e56d..6a2133cb64 100755 --- a/.evergreen/resync-specs.sh +++ b/.evergreen/resync-specs.sh @@ -65,7 +65,7 @@ cpjson () { sed -e '/^[0-9]/d' | sed -e 's|< ./||g' )" printf "%s\n" $IGNORED_FILES cd "$PYMONGO"/test/$2 - printf "%s\n" $IGNORED_FILES | xargs git checkout master + printf "%s\n" $IGNORED_FILES | xargs git checkout main } diff --git a/.evergreen/scripts/create-spec-pr.sh b/.evergreen/scripts/create-spec-pr.sh index a5e49bb211..1de1a7cae1 100755 --- a/.evergreen/scripts/create-spec-pr.sh +++ b/.evergreen/scripts/create-spec-pr.sh @@ -31,7 +31,7 @@ echo "Creating the git checkout..." branch="spec-resync-"$(date '+%m-%d-%Y') git remote set-url origin https://x-access-token:${token}@github.com/$owner/$repo.git -git checkout -b $branch "origin/master" +git checkout -b $branch "origin/main" git add ./test git commit -am "resyncing specs $(date '+%m-%d-%Y')" echo "Creating the git checkout... done." @@ -42,7 +42,7 @@ resp=$(curl -L \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer $token" \ -H "X-GitHub-Api-Version: 2022-11-28" \ - -d "{\"title\":\"[Spec Resync] $(date '+%m-%d-%Y')\",\"body\":\"$(cat "$1")\",\"head\":\"${branch}\",\"base\":\"master\"}" \ + -d "{\"title\":\"[Spec Resync] $(date '+%m-%d-%Y')\",\"body\":\"$(cat "$1")\",\"head\":\"${branch}\",\"base\":\"main\"}" \ --url https://api.github.com/repos/$owner/$repo/pulls) echo $resp | jq '.html_url' echo "Creating the PR... done."