We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 322bdff + 80fcf1f commit ae3a7e4Copy full SHA for ae3a7e4
dev-bin/release.sh
@@ -10,6 +10,16 @@ if [ "$current_branch" = "main" ]; then
10
exit 1
11
fi
12
13
+# Fetch latest changes and check that we're not behind origin/main
14
+echo "Fetching from origin..."
15
+git fetch origin
16
+
17
+if ! git merge-base --is-ancestor origin/main HEAD; then
18
+ echo "Error: Current branch is behind origin/main."
19
+ echo "Please merge or rebase with origin/main before releasing."
20
+ exit 1
21
+fi
22
23
changelog=$(cat HISTORY.rst)
24
25
regex='
0 commit comments