feat: set max-total-score = 0 for fallback conf
All checks were successful
build / build (push) Successful in 2m12s
build / trigger-build-image (push) Successful in 9s

This commit is contained in:
张泊明518370910136 2025-07-01 11:21:56 -04:00
parent dcb2035be3
commit ea894953ae
GPG Key ID: D47306D7062CDA9D
3 changed files with 5 additions and 2 deletions

View File

@ -98,7 +98,9 @@ def convert(
if not any(p != repo_toml_path for p in repo_toml_path.parent.glob("*.toml")):
fallback_toml_path = repo_toml_path.parent / "conf.toml"
if not fallback_toml_path.exists():
fallback_toml_path.write_text('name = "invalid commit"\n')
fallback_toml_path.write_text(
'name = "invalid commit"\nmax-total-score = 0\n'
)
for task_toml_path in repo_toml_path.parent.glob("**/*.toml"):
if repo_toml_path == task_toml_path:
continue

View File

@ -114,7 +114,7 @@
"--grading-repo-name",
"JOJ3-config-generator",
"--max-total-score",
"100",
"0",
"--issue-label-name",
"Kind/Testing",
"--issue-label-color",

View File

@ -1 +1,2 @@
name = "invalid commit"
max-total-score = 0