| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| Expand Up | @@ -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"); | ||
|
Comment thread
Copy link
Copy Markdown
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityUsing READTHEDOCS_VERSION works because for PR builds it is the PR number.
Sorry, something went wrong.
All reactions
|
||
| git fetch --depth=50 origin $base_branch:origin-$base_branch; | ||
| for attempt in $(seq 10); | ||
| do | ||
| Expand Down | ||
| Back | FazBrowse Home | New Git URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityLooking at this PR's build, installing jq adds ~3 seconds to the total build time.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.