aboutsummaryrefslogtreecommitdiffstats
path: root/models/helper_environment.go
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2025-01-25 22:36:47 +0800
committerGitHub <noreply@github.com>2025-01-25 14:36:47 +0000
commit2c1ff8701a7aeafc86f87c286514768cdf121ccb (patch)
treeed398c8afa3d6b0c84136cc756f12d76dd585279 /models/helper_environment.go
parent6a516a0d14907d3bee390696f31bea3cd8a83418 (diff)
downloadgitea-main.tar.gz
gitea-main.zip
Refactor context flash msg and global variables (#33375)HEADmain
1. add `GetSiteCookieFlashMessage` to help to parse flash message 2. clarify `handleRepoHomeFeed` logic 3. remove unnecessary global variables, use `sync.OnceValue` instead 4. add some tests for `IsUsableUsername` and `IsUsableRepoName`
Diffstat (limited to 'models/helper_environment.go')
0 files changed, 0 insertions, 0 deletions