Skip to content

Commit bfe72d8

Browse files
authored
PYTHON-5950 Fix spec resync scripts to use main branch (#2951)
1 parent a9695f1 commit bfe72d8

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.evergreen/resync-specs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ cpjson () {
6565
sed -e '/^[0-9]/d' | sed -e 's|< ./||g' )"
6666
printf "%s\n" $IGNORED_FILES
6767
cd "$PYMONGO"/test/$2
68-
printf "%s\n" $IGNORED_FILES | xargs git checkout master
68+
printf "%s\n" $IGNORED_FILES | xargs git checkout main
6969

7070
}
7171

.evergreen/scripts/create-spec-pr.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ echo "Creating the git checkout..."
3131
branch="spec-resync-"$(date '+%m-%d-%Y')
3232

3333
git remote set-url origin https://x-access-token:${token}@github.com/$owner/$repo.git
34-
git checkout -b $branch "origin/master"
34+
git checkout -b $branch "origin/main"
3535
git add ./test
3636
git commit -am "resyncing specs $(date '+%m-%d-%Y')"
3737
echo "Creating the git checkout... done."
@@ -42,7 +42,7 @@ resp=$(curl -L \
4242
-H "Accept: application/vnd.github+json" \
4343
-H "Authorization: Bearer $token" \
4444
-H "X-GitHub-Api-Version: 2022-11-28" \
45-
-d "{\"title\":\"[Spec Resync] $(date '+%m-%d-%Y')\",\"body\":\"$(cat "$1")\",\"head\":\"${branch}\",\"base\":\"master\"}" \
45+
-d "{\"title\":\"[Spec Resync] $(date '+%m-%d-%Y')\",\"body\":\"$(cat "$1")\",\"head\":\"${branch}\",\"base\":\"main\"}" \
4646
--url https://api.github.com/repos/$owner/$repo/pulls)
4747
echo $resp | jq '.html_url'
4848
echo "Creating the PR... done."

0 commit comments

Comments
 (0)