From 4d08ab18473658a2155c32466fe726efde26edb4 Mon Sep 17 00:00:00 2001 From: manuel Date: Fri, 11 Oct 2024 18:40:04 +0800 Subject: [PATCH] Update JOJ3 Configuration Schema --- JOJ3-Configuration-Schema.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/JOJ3-Configuration-Schema.md b/JOJ3-Configuration-Schema.md index bfee67e..3197dfc 100644 --- a/JOJ3-Configuration-Schema.md +++ b/JOJ3-Configuration-Schema.md @@ -64,7 +64,8 @@ It contains the part of the configuration that will be used globally for all ass - make `whitelist.patterns` **very strict** or students will push random files - unless you have no way to set or predict students' filename, do not use `whitelist.file` -
Sample `repo.toml` +
Sample repo.toml + ```toml # repo section # generic global parameters for the whole repo @@ -78,7 +79,7 @@ max_size = 5 # repo max size in MB whitelist.patterns = ["*.cpp", "*.c", "*.m", "*.md", "Makefile", "CMakelist.txt", ".gitea", "messenger.json"] # files/patterns which are not forbidden immutable.files = [".gitignore", ".gitattributes", ".gitea/workflows/push.yaml"] # readonly files immutable.hash = "26a7c6e8af3a562feef511898321ac206bed26cca50b4bd5ca6e72dec776d86b" # hash of readonly files -required.files = [ "Changelog.md", "Readme.md" ] +required.files = [ "Changelog.md", "Readme.md" ] # files that must be found ```