Skip to content

fix(ci): include gitea in the invalid-platform warning hint - #2698

Closed
worktrunk-bot wants to merge 2 commits into
mainfrom
fix/ci-platform-warning-include-gitea
Closed

worktrunk-bot wants to merge 2 commits into
mainfrom
fix/ci-platform-warning-include-gitea

Conversation

@worktrunk-bot

Copy link
Copy Markdown
Collaborator

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

  • Regenerated `list_full_with_invalid_configured_platform` snapshot to match.
  • `cargo test --test integration test_list_full_with_invalid_configured_platform` passes.

🤖 Generated with Claude Code

`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]>
@max-sixty

Copy link
Copy Markdown
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]>
@worktrunk-bot

Copy link
Copy Markdown
Collaborator Author

Resolved the conflict in src/git/ci_platform.rs by taking main's version (4ad3bdb). The merge produces an empty diff vs main — this PR is fully obsolete now that #2702 (experimental Gitea CI-status) has landed:

  • gitea is now a recognized CiPlatform variant, so "gitea" parses successfully and the invalid-platform warning never fires for it.
  • The warning hint on main already lists gitea alongside the other platforms.

The branch can be closed — nothing left to merge.

@worktrunk-bot

Copy link
Copy Markdown
Collaborator Author

Closing — fully superseded by #2702, which already added gitea to the Invalid CI platform in config: warning hint on main. The merge of origin/main into this branch made the diff empty (gh pr diff returns no output; git diff origin/main...HEAD is empty). Nothing left to ship here.

@max-sixty
max-sixty deleted the fix/ci-platform-warning-include-gitea branch June 18, 2026 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated-fix Automated CI fix nightly-cleanup Issues found by nightly code quality sweep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants