diff --git a/patch-config.txt b/patch-config.txt index 938420e..a3dc541 100644 --- a/patch-config.txt +++ b/patch-config.txt @@ -1,3 +1,3 @@ -username=DazedMTL -repo=Her-Examination +username=dazed-translations +repo=holy-knight-cecilia branch=main \ No newline at end of file diff --git a/patch.bat b/patch.bat index 4e38e00..0b2e8f0 100644 --- a/patch.bat +++ b/patch.bat @@ -43,7 +43,7 @@ for /f "tokens=1,2 delims==" %%a in (patch-config.txt) do ( REM Get the latest hash echo "Getting latest commit SHA hash" -!_my_shell! -Command "(Invoke-WebRequest -Uri 'https://api.github.com/repos/%username%/%repo%/branches/%branch%').Content | ConvertFrom-Json | Select-Object -ExpandProperty commit | Select-Object -ExpandProperty sha" > latest_patch_sha.txt +!_my_shell! -Command "(Invoke-WebRequest -Uri 'https://gitgud.io/%username%/projects/:id/repository/commits/:sha').Content | ConvertFrom-Json | Select-Object -ExpandProperty commit | Select-Object -ExpandProperty sha" > latest_patch_sha.txt REM Read the latest SHA from the file set /p latest_patch_sha=