-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2bb0fa5
commit 145c997
Showing
9 changed files
with
32 additions
and
37 deletions.
There are no files selected for viewing
5 changes: 2 additions & 3 deletions
5
application/src/main/kotlin/tw/waterballsa/gaas/application/extension/UserExtensions.kt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
package tw.waterballsa.gaas.application.extension | ||
|
||
import tw.waterballsa.gaas.domain.Room | ||
import tw.waterballsa.gaas.domain.User | ||
import tw.waterballsa.gaas.domain.Room.Player | ||
import tw.waterballsa.gaas.domain.User | ||
|
||
internal fun User.toRoomPlayer(): Player = | ||
Player(Player.Id(id!!.value), nickname) | ||
Player(Player.Id(id!!.value), nickname) |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
echo "Running Maven verify..." | ||
mvn verify | ||
|
||
# 檢查 Maven 命令的執行結果,如果驗證失敗,則禁止提交(commit) | ||
if [ $? -ne 0 ]; then | ||
echo "Maven verify failed. Commit aborted." | ||
exit 1 | ||
fi | ||
|
||
# 添加已變更的檔案到暫存區 | ||
git add . | ||
|
||
exit 0 | ||
|
||
|