feat: set max-total-score = 0 for fallback conf
This commit is contained in:
parent
dcb2035be3
commit
ea894953ae
|
@ -98,7 +98,9 @@ def convert(
|
||||||
if not any(p != repo_toml_path for p in repo_toml_path.parent.glob("*.toml")):
|
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"
|
fallback_toml_path = repo_toml_path.parent / "conf.toml"
|
||||||
if not fallback_toml_path.exists():
|
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"):
|
for task_toml_path in repo_toml_path.parent.glob("**/*.toml"):
|
||||||
if repo_toml_path == task_toml_path:
|
if repo_toml_path == task_toml_path:
|
||||||
continue
|
continue
|
||||||
|
|
|
@ -114,7 +114,7 @@
|
||||||
"--grading-repo-name",
|
"--grading-repo-name",
|
||||||
"JOJ3-config-generator",
|
"JOJ3-config-generator",
|
||||||
"--max-total-score",
|
"--max-total-score",
|
||||||
"100",
|
"0",
|
||||||
"--issue-label-name",
|
"--issue-label-name",
|
||||||
"Kind/Testing",
|
"Kind/Testing",
|
||||||
"--issue-label-color",
|
"--issue-label-color",
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
name = "invalid commit"
|
name = "invalid commit"
|
||||||
|
max-total-score = 0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user