Update JOJ3 Configuration Schema

manuel 2024-10-11 18:40:04 +08:00
parent 8d59f2414b
commit 4d08ab1847

@ -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`
<details><summary>Sample `repo.toml`</summary>
<details><summary>Sample repo.toml</summary>
```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
```
</details>