Skip to content

docs(remote_ref): include Gitea in provider trait docstrings - #3360

Merged
max-sixty merged 2 commits into
mainfrom
nightly/clean-28698827380
Jul 7, 2026
Merged

max-sixty merged 2 commits into
mainfrom
nightly/clean-28698827380

Conversation

@worktrunk-bot

Copy link
Copy Markdown
Collaborator

Nightly code-quality survey finding.

The RemoteRefProvider trait doc and the platform_label method doc in src/git/remote_ref/mod.rs enumerate the supported platforms as GitHub, GitLab, and Azure DevOps — omitting Gitea. Gitea is a fully-fledged provider (GiteaProvider, whose platform_label() returns "gitea"), and the module-level docstring already lists all four platforms. This corrects the two stale enumerations so they match the module doc and the actual provider set.

Pure documentation (doc-comment) change — no behavior change, so no regression test. Verified with cargo check --lib.

@worktrunk-bot worktrunk-bot added the nightly-cleanup Issues found by nightly code quality sweep label Jul 4, 2026

@worktrunk-bot worktrunk-bot left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Docstring addition is accurate — Gitea is a real provider (src/git/remote_ref/gitea.rs returns "gitea"). One follow-on: the same docstring's parenthetical still names only GitHub and Azure DevOps as the indistinguishable-by-other-methods case, but gitea.rs also returns RefType::Pr and pull/{N}/head, so platform_label is now what separates a three-way collision. Suggestion inline to keep that clause in sync with the change this PR is making.

Comment thread src/git/remote_ref/mod.rs Outdated
Comment on lines +82 to +84
/// tests that need to verify which provider was selected (the other trait
/// methods don't distinguish GitHub from Azure DevOps — both use
/// `RefType::Pr` and `pull/{N}/head`).

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Suggested change
/// tests that need to verify which provider was selected (the other trait
/// methods don't distinguish GitHub from Azure DevOps — both use
/// `RefType::Pr` and `pull/{N}/head`).
/// tests that need to verify which provider was selected (the other trait
/// methods don't distinguish GitHub, Gitea, and Azure DevOps — all three
/// use `RefType::Pr` and `pull/{N}/head`).

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Good catch — applied in 8ce0dd3. Confirmed against src/git/remote_ref/gitea.rs: ref_type() returns RefType::Pr and ref_path() returns pull/{N}/head, so it's a genuine three-way collision with GitHub and Azure DevOps that only platform_label separates. Updated the parenthetical to name all three.

@max-sixty
max-sixty merged commit 504bd6a into main Jul 7, 2026
37 checks passed
@max-sixty
max-sixty deleted the nightly/clean-28698827380 branch July 7, 2026 06:33
max-sixty added a commit that referenced this pull request Jul 8, 2026
…indow (#3386)

Five commits landed on `main` during #3385's CI wait, so they ship
inside v0.66.0's tree but weren't in its changelog (the step-12 drift
check in the release skill caught this). This adds the user-facing three
to the 0.66.0 section:

- **Codex activity markers**
([#3364](#3364), closes
[#3362](#3362), thanks
@ofek for reporting)
- **SCP-style SSH remotes with custom usernames**
([#3371](#3371), thanks
@fcoury-oai)
- **Windows app-alias Settings path**
([#3372](#3372), thanks
@ofek)

Excluded as internal: #3360 (trait docstrings), #3379 (argv[0] display
refactor). Every entry verified against the actual diffs.

The v0.66.0 tag will point at this PR's squash commit so the tagged tree
carries the complete changelog.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

> _This was written by Claude Code on behalf of Maximilian Roos_

Co-authored-by: Claude Fable 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

nightly-cleanup Issues found by nightly code quality sweep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants