From 1bfb39e27722aa3dcd2a86032be87edd3ecfdfb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?JasonXuDeveloper=20-=20=E5=82=91?= Date: Thu, 29 Jan 2026 09:43:03 +1100 Subject: [PATCH 1/2] docs: add git workflow guidelines for branching and PRs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Always create branches from master, not feature branches - Never push directly to master, use PRs for all changes Co-Authored-By: Claude Opus 4.5 Signed-off-by: JasonXuDeveloper - 傑 --- .claude/rules/commit-conventions.md | 30 ++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/.claude/rules/commit-conventions.md b/.claude/rules/commit-conventions.md index 521a5a5e..00e0ea1c 100644 --- a/.claude/rules/commit-conventions.md +++ b/.claude/rules/commit-conventions.md @@ -1,4 +1,32 @@ -# Commit Message Format +# Git Workflow & Commit Conventions + +## Branching + +**Always create new branches from `master`** (the main branch), not from feature branches: + +```bash +# Correct workflow +git checkout master +git pull origin master +git checkout -b fix/my-fix + +# Wrong - creates branch from current branch which may not be master +git checkout -b fix/my-fix +``` + +Before creating a PR branch, always: +1. Switch to `master` +2. Pull latest changes +3. Then create the new branch + +## Never Push Directly to Master + +**All changes must go through pull requests.** Never push commits directly to master, even for documentation changes. This ensures: +- Code review for all changes +- CI checks run before merge +- Clean git history with traceable PRs + +## Commit Message Format All commits should follow the Conventional Commits specification to enable automatic changelog generation. From 522902a6a73c5c1ce70705a6deb1f4a824aa141e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?JasonXuDeveloper=20-=20=E5=82=91?= Date: Thu, 29 Jan 2026 09:43:08 +1100 Subject: [PATCH 2/2] fix(core): convert AsyncOperation to UniTask for Unity 6 compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In Unity 6, UnityEngine.AsyncOperation cannot be directly awaited. Convert to UniTask using .ToUniTask() extension method. Co-Authored-By: Claude Opus 4.5 Signed-off-by: JasonXuDeveloper - 傑 --- .../Runtime/Bootstrap.Common.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UnityProject/Packages/com.jasonxudeveloper.jengine.core/Runtime/Bootstrap.Common.cs b/UnityProject/Packages/com.jasonxudeveloper.jengine.core/Runtime/Bootstrap.Common.cs index d645c51a..878808b0 100644 --- a/UnityProject/Packages/com.jasonxudeveloper.jengine.core/Runtime/Bootstrap.Common.cs +++ b/UnityProject/Packages/com.jasonxudeveloper.jengine.core/Runtime/Bootstrap.Common.cs @@ -92,7 +92,7 @@ public static async UniTask LoadHotUpdateScene(ResourcePackage pack // Call error callback await callbacks.OnError(e); // Switch back to previous scene - await SceneManager.LoadSceneAsync(previousSceneName); + await SceneManager.LoadSceneAsync(previousSceneName).ToUniTask(); return null; }