Fix phase-pr for YouTrack+GitLab projects #253

Merged
mprihoda merged 1 commit from fix/phase-pr-youtrack-gitlab into main 2026-03-12 22:04:02 +00:00
mprihoda commented 2026-03-12 22:03:57 +00:00 (Migrated from github.com)

Summary

  • Add GitRemote.extractRepositoryPath that tries GitHub then GitLab URL extraction, fixing the fallback in phase-pr that only worked for GitHub remotes
  • Make repository, teamPrefix, and team optional in config serialization for all tracker types, so YouTrack projects can set tracker.repository for their GitLab forge
  • Unified toHocon to write all fields when present regardless of tracker type

Test plan

  • scala-cli compile --scalac-option -Werror .iw/core/ passes
  • ./iw test unit passes (updated 5 existing tests, added 9 new tests)
  • ./iw test compile passes (all 32 commands)
  • Pre-commit and pre-push hooks pass

🤖 Generated with Claude Code

## Summary - Add `GitRemote.extractRepositoryPath` that tries GitHub then GitLab URL extraction, fixing the fallback in `phase-pr` that only worked for GitHub remotes - Make `repository`, `teamPrefix`, and `team` optional in config serialization for all tracker types, so YouTrack projects can set `tracker.repository` for their GitLab forge - Unified `toHocon` to write all fields when present regardless of tracker type ## Test plan - [x] `scala-cli compile --scalac-option -Werror .iw/core/` passes - [x] `./iw test unit` passes (updated 5 existing tests, added 9 new tests) - [x] `./iw test compile` passes (all 32 commands) - [x] Pre-commit and pre-push hooks pass 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No description provided.