RTD Previews: Get correct base branch for backports#150690
Conversation
| 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"); |
There was a problem hiding this comment.
Using READTHEDOCS_VERSION works because for PR builds it is the PR number.
| tools: | ||
| python: "3" | ||
| apt_packages: | ||
| - jq |
There was a problem hiding this comment.
Looking at this PR's build, installing jq adds ~3 seconds to the total build time.
|
Thanks @StanFromIreland for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.15. |
|
GH-151867 is a backport of this pull request to the 3.15 branch. |
#151867) Co-authored-by: Stan Ulbrych <stan@python.org>
|
Thanks @StanFromIreland for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
|
Thanks @StanFromIreland for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
|
Sorry, @StanFromIreland and @hugovk, I could not cleanly backport this to |
|
Sorry, @StanFromIreland and @hugovk, I could not cleanly backport this to |
|
GH-153163 is a backport of this pull request to the 3.14 branch. |
|
GH-153164 is a backport of this pull request to the 3.13 branch. |
|
Thanks @StanFromIreland for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
|
Thanks @StanFromIreland for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10. |
|
Thanks @StanFromIreland for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
|
Thanks @StanFromIreland for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12. |
|
Sorry, @StanFromIreland and @hugovk, I could not cleanly backport this to |
|
Sorry, @StanFromIreland and @hugovk, I could not cleanly backport this to |
|
Sorry, @StanFromIreland and @hugovk, I could not cleanly backport this to |
|
Sorry, @StanFromIreland and @hugovk, I could not cleanly backport this to |
|
GH-153165 is a backport of this pull request to the 3.12 branch. |
|
GH-153166 is a backport of this pull request to the 3.11 branch. |
|
GH-153167 is a backport of this pull request to the 3.10 branch. |
#153164) Co-authored-by: Stan Ulbrych <stan@python.org>
It is currently hard-coded to
main, so 3.15 backports don't get previews as the merge will always fail.