Repository navigation
fix(ci): include gitea in the invalid-platform warning hint - #2698
Closed
worktrunk-bot wants to merge 2 commits into
Closed
worktrunk-bot wants to merge 2 commits into
worktrunk-bot wants to merge 2 commits into
Conversation
`configured_ci_platform` warns when `forge.platform` is set to a value that isn't a recognised CI source. After #1256 added Azure DevOps and #1320 added Gitea, the hint still listed only `'github'`, `'gitlab'`, or `'azure-devops'` even though `'gitea'` is a valid `forge.platform` value (handled one branch above, where the hint explains worktrunk doesn't fetch CI status from Gitea). The `switch` command's error for the same key already lists all four platforms (`tests/integration_tests/switch.rs::test_switch_pr_forge_platform_invalid_bails`). Bring the CI warning in line so a user who typos `gitae` for `gitea` gets the hint that names the platform they meant. Co-Authored-By: Claude Opus 4.7 <[email protected]>
This was referenced May 11, 2026
Owner
|
@worktrunk-bot resoove conflicts |
#2702 (experimental Gitea CI-status detection) landed on main and made `gitea` a fully-recognized `CiPlatform` variant. That commit also already includes `gitea` in the invalid-platform warning hint, so this PR's one-line change is fully subsumed by main — taking main's version of `src/git/ci_platform.rs`. Co-Authored-By: Claude Opus 4.7 <[email protected]>
Collaborator
Author
|
Resolved the conflict in
The branch can be closed — nothing left to merge. |
Collaborator
Author
|
Closing — fully superseded by #2702, which already added |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
`configured_ci_platform` warns when `forge.platform` is set to a value that isn't a recognised CI source. After #1256 added Azure DevOps and #1320 added Gitea, the hint still listed only `'github'`, `'gitlab'`, or `'azure-devops'` even though `'gitea'` is a valid `forge.platform` value (handled one branch above, where worktrunk falls back silently because it doesn't fetch CI status from Gitea).
The `switch` command's error for the same key already lists all four platforms (`test_switch_pr_forge_platform_invalid_bails` snapshot: "expected one of: github, gitlab, gitea, azure-devops"). Bring the CI warning in line so a user who typos `gitae` for `gitea` gets the hint that names the platform they meant.
Test plan
🤖 Generated with Claude Code