mirror of https://github.com/go-gitea/gitea.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8220e50b56
### Summary Extend the template variable substitution to replace file paths. This can be helpful for setting up log files & directories that should match the repository name. ### PR Changes - Move files matching glob pattern when setting up repos from template - For security, added ~escaping~ sanitization for cross-platform support and to prevent directory traversal (thanks @silverwind for the reference) - Added unit testing for escaping function - Fixed the integration tests for repo template generation by passing the repo_template_id - Updated the integration testfiles to add some variable substitution & assert the outputs I had to fix the existing repo template integration test and extend it to add a check for variable substitutions. Example: ![image](https://github.com/go-gitea/gitea/assets/12700993/621feb09-0ef3-460e-afa8-da74cd84fa4e) |
2 years ago | |
---|---|---|
.. | ||
actions | 2 years ago | |
packages | 2 years ago | |
_index.en-us.md | ||
_index.zh-cn.md | ||
_index.zh-tw.md | ||
agit-support.en-us.md | ||
agit-support.zh-cn.md | 2 years ago | |
authentication.en-us.md | ||
authentication.zh-cn.md | ||
authentication.zh-tw.md | ||
clone-filter.en-us.md | ||
clone-filter.zh-cn.md | 2 years ago | |
code-owners.en-us.md | 2 years ago | |
incoming-email.en-us.md | ||
incoming-email.zh-cn.md | 2 years ago | |
issue-pull-request-templates.en-us.md | ||
issue-pull-request-templates.zh-cn.md | ||
labels.en-us.md | 2 years ago | |
labels.zh-cn.md | 2 years ago | |
linked-references.en-us.md | ||
linked-references.zh-cn.md | 2 years ago | |
merge-message-templates.en-us.md | ||
merge-message-templates.zh-cn.md | 2 years ago | |
permissions.en-us.md | 2 years ago | |
permissions.zh-cn.md | 2 years ago | |
profile-readme.en-us.md | ||
profile-readme.zh-cn.md | 2 years ago | |
protected-tags.en-us.md | ||
protected-tags.zh-cn.md | 2 years ago | |
pull-request.en-us.md | 2 years ago | |
pull-request.zh-cn.md | ||
pull-request.zh-tw.md | 2 years ago | |
push.en-us.md | ||
push.zh-cn.md | 2 years ago | |
push.zh-tw.md | ||
repo-mirror.en-us.md | ||
repo-mirror.zh-cn.md | 2 years ago | |
secrets.en-us.md | ||
secrets.zh-cn.md | 2 years ago | |
template-repositories.en-us.md | 2 years ago | |
template-repositories.zh-cn.md | 2 years ago | |
webhooks.en-us.md | ||
webhooks.zh-cn.md | 2 years ago | |
webhooks.zh-tw.md |