You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gitea repositories can include a `.gitea` directory at their base which will store settings/configurations for certain features.
18
-
19
-
## Templates
20
-
Gitea includes template repositories, and one feature implemented with them is auto-expansion of specific variables within your template files.
16
+
## Template Repositories
17
+
Gitea `1.11.0` and above includes template repositories, and one feature implemented with them is auto-expansion of specific variables within your template files.
21
18
To tell Gitea which files to expand, you must include a `template` file inside the `.gitea` directory of the template repository.
22
19
Gitea uses [gobwas/glob](https://github.com/gobwas/glob) for its glob syntax. It closely resembles a traditional `.gitignore`, however there may be slight differences.
23
20
@@ -42,15 +39,34 @@ a/b/c/d.json
42
39
In any file matched by the above globs, certain variables will be expanded.
43
40
All variables must be of the form `$VAR` or `${VAR}`. To escape an expansion, use a double `$$`, such as `$$VAR` or `$${VAR}`
0 commit comments