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.
Kyle D 8220e50b56
Substitute variables in path names of template repos too (#25294)
### 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)
1 year ago
..
actions Docs about how to generate config for act runner with docker and setup it with docker-compose (#25256) 1 year ago
packages Add chinese documentations for `cran package registry` (#25012) 1 year ago
_index.en-us.md Refactor docs (#23752) 1 year ago
_index.zh-cn.md Refactor docs (#23752) 1 year ago
_index.zh-tw.md Refactor docs (#23752) 1 year ago
agit-support.en-us.md Refactor docs (#23752) 1 year ago
agit-support.zh-cn.md `zh-cn` translation for usage docs (#24897) 1 year ago
authentication.en-us.md Update LDAP filters to include both username and email address (#24547) 1 year ago
authentication.zh-cn.md Refactor docs (#23752) 1 year ago
authentication.zh-tw.md Refactor docs (#23752) 1 year ago
clone-filter.en-us.md Refactor docs (#23752) 1 year ago
clone-filter.zh-cn.md `zh-cn` translation for usage docs (#24897) 1 year ago
code-owners.en-us.md Add codeowners feature (#24910) 1 year ago
incoming-email.en-us.md Refactor docs (#23752) 1 year ago
incoming-email.zh-cn.md `zh-cn` translation for usage docs (#24897) 1 year ago
issue-pull-request-templates.en-us.md Refactor docs (#23752) 1 year ago
issue-pull-request-templates.zh-cn.md Remove unnecessary usage prefix from doc titles (#24869) 1 year ago
labels.en-us.md Fix link to customizing-gitea (#25056) 1 year ago
labels.zh-cn.md Fix link to customizing-gitea (#25056) 1 year ago
linked-references.en-us.md Replace `N/A` with `-` everywhere (#24474) 1 year ago
linked-references.zh-cn.md `zh-cn` translation for usage docs (#24897) 1 year ago
merge-message-templates.en-us.md Merge message template support for rebase without merge commit (#22669) 1 year ago
merge-message-templates.zh-cn.md `zh-cn` translation for usage docs (#24897) 1 year ago
permissions.en-us.md improve permission documentation (#23942) 1 year ago
permissions.zh-cn.md `zh-cn` translation for usage docs (#24897) 1 year ago
profile-readme.en-us.md Remove unnecessary usage prefix from doc titles (#24869) 1 year ago
profile-readme.zh-cn.md `zh-cn` translation for usage docs (#24897) 1 year ago
protected-tags.en-us.md Refactor docs (#23752) 1 year ago
protected-tags.zh-cn.md `zh-cn` translation for usage docs (#24897) 1 year ago
pull-request.en-us.md simple docs fixes: 'pull request' page (en-us & zh-tw) link path to 'issue-pull-request-templates' (#24961) 1 year ago
pull-request.zh-cn.md Remove unnecessary usage prefix from doc titles (#24869) 1 year ago
pull-request.zh-tw.md simple docs fixes: 'pull request' page (en-us & zh-tw) link path to 'issue-pull-request-templates' (#24961) 1 year ago
push.en-us.md Remove unnecessary usage prefix from doc titles (#24869) 1 year ago
push.zh-cn.md `zh-cn` translation for usage docs (#24897) 1 year ago
push.zh-tw.md Fix broken links in documents (#24630) 1 year ago
repo-mirror.en-us.md Refactor docs (#23752) 1 year ago
repo-mirror.zh-cn.md `zh-cn` translation for usage docs (#24897) 1 year ago
secrets.en-us.md Refactor docs (#23752) 1 year ago
secrets.zh-cn.md `zh-cn` translation for usage docs (#24897) 1 year ago
template-repositories.en-us.md Substitute variables in path names of template repos too (#25294) 1 year ago
template-repositories.zh-cn.md `zh-cn` translation for usage docs (#24897) 1 year ago
webhooks.en-us.md Refactor docs (#23752) 1 year ago
webhooks.zh-cn.md `zh-cn` translation for usage docs (#24897) 1 year ago
webhooks.zh-tw.md Refactor docs (#23752) 1 year ago