Skip to content

conf.py's BLOB names main, the default branch (closes #2911) - #2915

Merged
fametrano merged 1 commit into
btclib-org:mainfrom
dodoshell:iss-2911-blob-main
Nov 4, 2026
Merged

fametrano merged 1 commit into
btclib-org:mainfrom
dodoshell:iss-2911-blob-main

Conversation

@dodoshell

Copy link
Copy Markdown
Contributor

What this changes

docs/source/conf.py built BLOB with /blob/master/, though the
default branch is main. RootFileLinks writes its links at BLOB,
and btclib-org/.github's check_included_links.py, which the docs job
runs from v2026.11.2 on, builds its own with /blob/main/, so it could
not see a link this tree left at /blob/master/. BLOB and the comment
above it now say main, in the wording of btclib-org/ecc's conf.py.

Closes #2911

How it was verified

On 2cf9cbae with this commit, sphinx-build -n -W -b html docs/source docs/build/html succeeds. Its pages hold 28 links at
btclib-org/btclib/blob/main/ and none at /blob/master/, the docs
job's href="#./ grep finds nothing, and check_included_links.py at
the commit docs.yml pins exits 0 on them.

Checks

  • uv run pre-commit run --all-files is clean (ruff, mypy strict,
    markdownlint, the copyright notice, uv.lock)
  • uv run pytest passes
  • I have read and understood every line of this change, and can
    answer a review of it without the model

Anything the reviewer should know

I ran everything on Windows with Python 3.13, since pyyaml does not
build under 3.15 here, in a worktree checked out with LF line endings
so that mixed-line-ending reads the files as committed.

docs/source/conf.py built BLOB with /blob/master/, though the default
branch is main. RootFileLinks writes its links at BLOB, and
btclib-org/.github's check_included_links.py builds its own with
/blob/main/, so it could not see a link this tree left at /blob/master/.
BLOB now names main, and so does the comment above it, in the wording
of btclib-org/ecc's conf.py.

Signed-off-by: dodoshell <326978213+dodoshell@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Documentation
    • Repository file links now point to the main branch.

The documentation configuration now builds repository file links using the main branch instead of master.

Changes: Documentation file links

Layer / File(s) Summary
Update repository link prefix
docs/source/conf.py
The BLOB URL prefix and its comment now use main instead of master.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Bug fix

Possibly related PRs

  • btclib-org/btclib#2912: Updates the pinned documentation checker workflow used to verify repository file links.

Suggested reviewers: fametrano

Merge Risk: Minimal · up to 7ae38

Generated documentation links now target the main branch as intended, with no merge-blocking risk identified.

Pre-merge checks: Passed 4
Check name Status Explanation
Title check Passed The title accurately describes the change and names issue #2911 in the required parenthesized format. (github.com)
Description check Passed The description directly explains the BLOB branch update, its purpose, verification steps, and linked issue.
Linked Issues check Passed Issue #2911 has one coding requirement: conf.py's BLOB must name main. The whole-PR diff (merge base 2cf9cba to head 7ae389c) changes docs/source/conf.py line 264 from `f"{...['repository']}…
Out of Scope Changes check Passed The whole-PR diff contains one file and one two-line hunk: the BLOB assignment and its comment in docs/source/conf.py. Both lines implement the objective of #2911. No unrelated files or changes ar…
Full details: Linked Issues check

Explanation

Issue #2911 has one coding requirement: conf.py's BLOB must name main. The whole-PR diff (merge base 2cf9cba to head 7ae389c) changes docs/source/conf.py line 264 from f"{...['repository']}/blob/master/" to f"{...['repository']}/blob/main/". BLOB is the base for RootFileLinks (per #2911), so the requirement is met. The comment above BLOB also changes from master to main, which matches the issue's intent. The PR's sphinx-build, grep, and check_included_links.py results are author-reported and were not re-run here. They do not change this verdict, because the code change alone satisfies the stated completion criterion.

Full details: Out of Scope Changes check

Explanation

The whole-PR diff contains one file and one two-line hunk: the BLOB assignment and its comment in docs/source/conf.py. Both lines implement the objective of #2911. No unrelated files or changes are present in the diff.

Finishing Touches
Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 2cf9cba and 7ae389c.

Files selected for processing: 1
  • docs/source/conf.py

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@fametrano

Copy link
Copy Markdown
Member

Claimed: a /btclib-pr session of fametrano (2026-11-04) is reviewing this pull request locally before deciding on its approval.

@fametrano

Copy link
Copy Markdown
Member

This waits on the human's approval: the review bot does not run on a pull request from a fork, so the approval is not one the session gives on its own.

Two local reviews cleared 7ae389c, the second in another client, with no findings. Every check passed or was skipped, no thread is open, and the diff touches only docs/source/conf.py.

@fametrano fametrano added the decision A decision the maintainer still has to take label Nov 4, 2026

@fametrano fametrano left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved 7ae389c, on the human's decision.

Two local reviews cleared this head with no findings, the second in another client, with no rebase between; main has moved by one landing that touches no file of this diff, and the merge is clean (tree 2c6bf0b8). The review bot does not run on a pull request from a fork, so there is no ACK. Every check passed or was skipped. The first reviewer built the docs from the head and ran check_included_links.py at 7b85b373 on them (exit 0), and showed with a planted regression that the checker misses every included-file link under the old master BLOB and catches them under main. Not checked: a Windows docs build.

@fametrano
fametrano merged commit fd6f3c6 into btclib-org:main Nov 4, 2026
20 checks passed
@fametrano fametrano removed the decision A decision the maintainer still has to take label Nov 4, 2026
@fametrano

Copy link
Copy Markdown
Member

Thank you: this landed as fd6f3c6 and closed ISS #2911.

Your change matters more than its two lines suggest. The docs check in btclib-org/.github looks for links to files the docs already include, at the /blob/main/ address; with BLOB on master it could not see any of this tree's. One of our reviewers planted that mistake in a build: under the old BLOB the check passed while missing every such link, and under yours it caught them all. So your fix is what makes that check work here. Nothing needed adding: two local reviews found no change to ask for, and your body's measurements held when we ran them again.

If you would like another, ISS btclib-org/btclib-wallet#487 adds three fixed bip322 signatures that rust-bitcoin's crate checks, and ISS btclib-org/benchmarks#522 keeps a run's commit and lock hash out of detect-secrets.

@fametrano

Copy link
Copy Markdown
Member

Released: landed as fd6f3c6; the /btclib-pr session is done with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

conf.py's BLOB names master, the branch is main

2 participants