https://github.com/python/cpython/commit/082ac30eaf51b9b9c218b81b4db71628a487d6c8
commit: 082ac30eaf51b9b9c218b81b4db71628a487d6c8
branch: main
author: Stan Ulbrych <[email protected]>
committer: hugovk <[email protected]>
date: 2026-06-21T16:33:42+03:00
summary:
RTD Previews: Get correct base branch for backports (#150690)
files:
M .readthedocs.yml
diff --git a/.readthedocs.yml b/.readthedocs.yml
index 3b8a30c0251873..038417e4bb3438 100644
--- a/.readthedocs.yml
+++ b/.readthedocs.yml
@@ -11,19 +11,21 @@ build:
os: ubuntu-24.04
tools:
python: "3"
+ apt_packages:
+ - jq
jobs:
- post_checkout:
+ post_system_dependencies:
#
https://docs.readthedocs.com/platform/stable/guides/build/skip-build.html#skip-builds-based-on-conditions
#
- # Cancel building pull requests when there aren't changes in the Doc
+ # Cancel building pull requests when there are no changes in the Doc
# directory or RTD configuration, or if we can't cleanly merge the base
# branch.
- |
set -eEux;
if [ "$READTHEDOCS_VERSION_TYPE" = "external" ];
then
- base_branch=main;
+ base_branch=$(wget -qO-
"https://api.github.com/repos/python/cpython/pulls/$READTHEDOCS_VERSION" | jq
-er ".base.ref");
git fetch --depth=50 origin $base_branch:origin-$base_branch;
for attempt in $(seq 10);
do
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]