Skip to content

chore(release): v0.2.1#56

Merged
github-actions[bot] merged 6 commits into
mainfrom
develop
Mar 2, 2026
Merged

chore(release): v0.2.1#56
github-actions[bot] merged 6 commits into
mainfrom
develop

Conversation

@akiojin

@akiojin akiojin commented Mar 2, 2026

Copy link
Copy Markdown
Owner

Summary

Bug fix release addressing cross-platform path issues in capture handlers and CI workflow improvements.

Changes

Version

v0.2.1

Closing Issues

Closes #54
Closes #55

Summary by CodeRabbit

リリースノート v0.2.1

  • バグ修正

    • クロスプラットフォーム環境でのパス処理の不一致を修正しました
  • その他

    • パージョンを0.2.1にアップデート
    • リリース自動化ワークフローを改善しました

akiojin and others added 6 commits March 2, 2026 19:50
When unity-cli runs on Linux (Docker) and connects to a Windows Unity host,
workspaceRoot from Linux is invalid on Windows, and Path.Combine produces
backslash-separated paths that break JSON responses.

- Add IsLocalPath guard to reject foreign-OS paths and fallback to local resolution
- Normalize all output paths with .Replace('\\', '/') for consistent forward slashes
- Align ResolveWorkspaceRoot in Screenshot/Video/Profiler handlers with UnityCliBridgeHost

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Change `startsWith()` to `contains()` so the create-tag job fires
when a release PR is merged (merge commit message starts with
"Merge pull request…" and contains "chore(release):" on a later line).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
fix: cross-platform path mismatch in capture handlers
@akiojin akiojin added the release Release PR label Mar 2, 2026
@github-actions
github-actions Bot enabled auto-merge March 2, 2026 16:50
@coderabbitai

coderabbitai Bot commented Mar 2, 2026

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 3ac7627 and dff35b1.

⛔ Files ignored due to path filters (1)
  • Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing (13)
  • .github/workflows/release.yml
  • CHANGELOG.md
  • Cargo.toml
  • UnityCliBridge/Packages/unity-cli-bridge/Editor/Handlers/ProfilerHandler.cs
  • UnityCliBridge/Packages/unity-cli-bridge/Editor/Handlers/ScreenshotHandler.cs
  • UnityCliBridge/Packages/unity-cli-bridge/Editor/Handlers/VideoCaptureHandler.cs
  • UnityCliBridge/Packages/unity-cli-bridge/package.json
  • package.json
  • specs/SPEC-432610ad/plan.md
  • specs/SPEC-432610ad/spec.md
  • specs/SPEC-432610ad/tasks.md
  • specs/specs.md
  • tasks/todo.md

Walkthrough

このリリース(v0.2.1)では、クロスプラットフォーム環境でのパス処理不整合を修正しています。Linux から Windows Unity ホストへの呼び出し時にキャプチャ出力パスが不正になる問題に対応し、3つのハンドラーファイルにおいてパス正規化ロジックを追加しました。併せてバージョン番号を更新し、CI リリースワークフローのトリガー条件を緩和しています。

Changes

コホート / ファイル(s) 概要
バージョン管理ファイル
Cargo.toml, package.json, UnityCliBridge/Packages/unity-cli-bridge/package.json
パッケージバージョンを 0.2.0 から 0.2.1 に更新。
CI ワークフロー
.github/workflows/release.yml
Create Tag & Release ジョブのトリガー条件を startsWith() から contains() に変更し、トリガー判定を広げた。
クロスプラットフォームパス正規化
UnityCliBridge/Packages/unity-cli-bridge/Editor/Handlers/ProfilerHandler.cs, ScreenshotHandler.cs, VideoCaptureHandler.cs
IsLocalPath ガード関数を追加し、異 OS パス(Linux↔Windows)のフォールバック処理を実装。出力パスのバックスラッシュをフォワードスラッシュに統一し、ResolveWorkspaceRoot を修正。
仕様・ドキュメント
CHANGELOG.md, specs/SPEC-432610ad/*, specs/specs.md, tasks/todo.md
v0.2.1 の変更履歴を記録し、クロスプラットフォームパス修正の仕様書・計画・タスク管理ドキュメントを追加。

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

  • chore(release): v0.2.0 #53.github/workflows/release.yml を修正する点が共通。本 PR ではトリガー条件を緩和し、PR#53 ではリリースワークフロー全体を更新(ARM64 ターゲット追加など)。

Poem

🐰 パスの混乱も、スラッシュで統一/
Linux から Windows へ、心安らか/
正規化の力で、ファイルは見える/
v0.2.1、クロスプラットフォームの勝利!

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch develop

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
github-actions Bot merged commit 24fc3a2 into main Mar 2, 2026
21 of 22 checks passed
This was referenced Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release Release PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docker(Linux) 呼び出し + Windows Unity ホストでキャプチャ出力パスが不整合(ファイルが見えない)

1 participant