Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More expansions in template repositories #10021

Merged
merged 8 commits into from
Jan 28, 2020
Prev Previous commit
Next Next commit
Explain which features are in 1.11 vs 1.12
Signed-off-by: jolheiser <[email protected]>
  • Loading branch information
jolheiser committed Jan 27, 2020
commit 7a456538b9f25e48fb5d1e10a6720a6fdea519ee
4 changes: 2 additions & 2 deletions docs/content/doc/usage/template-repositories.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ menu:
---

## Template Repositories
Gitea includes template repositories, and one feature implemented with them is auto-expansion of specific variables within your template files.
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.
To tell Gitea which files to expand, you must include a `template` file inside the `.gitea` directory of the template repository.
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.

Expand Down Expand Up @@ -55,7 +55,7 @@ All variables must be of the form `$VAR` or `${VAR}`. To escape an expansion, us
| TEMPLATE_SSH_URL | The SSH clone link for the template repository | ✘ |

### Transformers :robot:
Gitea also adds a few transformers to some of the applicable variables above.
Gitea `1.12.0` adds a few transformers to some of the applicable variables above.
For example, to get `REPO_NAME` in `PASCAL`-case, your template would use `${REPO_NAME_PASCAL}`

Feeding `go-sdk` to the available transformers yields...
Expand Down