feat: repo health check (#16) #17

Merged
张泊明518370910136 merged 37 commits from file_check into master 2024-09-11 20:09:27 +08:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 296fdcbd12 - Show all commits

@ -1 +1 @@
Subproject commit b1b27f5d847684307740005f16fa133e67a2e6cc
Subproject commit 2f455dca9d28e39926e68b9b13eef39b0a9f67fc

View File

@ -39,7 +39,7 @@ func checkFileChecksum(rootDir, fileName, expectedChecksum string) (bool, string
if actualChecksum == expectedChecksum {
return true, ""//fmt.Sprintf("Checksum for %s passed!", filePath)
} else {
return false, fmt.Sprintf("Checksum for %s failed. Expected %s, but got %s. Please revert the changes!", filePath, expectedChecksum, actualChecksum)
return false, fmt.Sprintf("Checksum for %s failed. Expected %s, but got %s. Please revert your changes or contact the teaching team if you have a valid reason for adjusting them.", filePath, expectedChecksum, actualChecksum)
}
}