gitea/routers/web/repo
ChristopherHX 08b9776970
Refactor Actions Token Access (#35688)
* use a single function to do Action Tokens Permission checks
* allows easier customization
* add basic tests
* lfs file locks should work now

---------

Signed-off-by: ChristopherHX <christopher.homberger@web.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-10-22 11:12:31 +00:00
..
actions Honor delete branch on merge repo setting when using merge API (#35488) 2025-10-22 05:06:56 +00:00
setting Use gitrepo.Repository instead of wikipath (#35398) 2025-10-17 20:00:44 -07:00
activity.go Address some CodeQL security concerns (#35572) 2025-10-04 01:21:26 +08:00
attachment.go fix attachment file size limit in server backend (#35519) 2025-10-21 15:07:11 +00:00
blame.go Fix incorrect file links (#34189) 2025-04-13 12:27:31 -07:00
branch.go Add ff_only parameter to POST /repos/{owner}/{repo}/merge-upstream (#34770) 2025-06-19 12:29:10 -07:00
code_frequency.go Hide activity contributors, recent commits and code frequrency left tabs if there is no code permission (#34053) 2025-03-28 21:04:40 -07:00
commit.go feat(diff): Enable commenting on expanded lines in PR diffs (#35662) 2025-10-19 18:19:12 +08:00
common_recentbranches.go Also display "recently pushed branch" alert on PR view (#35001) 2025-07-10 17:17:56 +00:00
compare.go feat(diff): Enable commenting on expanded lines in PR diffs (#35662) 2025-10-19 18:19:12 +08:00
compare_test.go feat(diff): Enable commenting on expanded lines in PR diffs (#35662) 2025-10-19 18:19:12 +08:00
contributors.go Fix incorrect ref commit ID usage (#33331) 2025-01-20 07:43:49 +00:00
download.go Redirect to a presigned URL of HEAD for HEAD requests (#35088) 2025-07-16 11:22:45 +00:00
editor.go Use LFS object size instead of blob size when viewing a LFS file (#35679) 2025-10-16 17:42:54 +08:00
editor_apply_patch.go Honor delete branch on merge repo setting when using merge API (#35488) 2025-10-22 05:06:56 +00:00
editor_cherry_pick.go Honor delete branch on merge repo setting when using merge API (#35488) 2025-10-22 05:06:56 +00:00
editor_error.go Honor delete branch on merge repo setting when using merge API (#35488) 2025-10-22 05:06:56 +00:00
editor_fork.go Edit file workflow for creating a fork and proposing changes (#34240) 2025-06-22 12:43:43 +00:00
editor_preview.go Refactor editor (#34780) 2025-06-21 19:20:51 +08:00
editor_test.go Remove wrong "git.DefaultContext" (#35364) 2025-08-27 16:31:21 +00:00
editor_uploader.go fix attachment file size limit in server backend (#35519) 2025-10-21 15:07:11 +00:00
editor_util.go Edit file workflow for creating a fork and proposing changes (#34240) 2025-06-22 12:43:43 +00:00
find.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
fork.go Edit file workflow for creating a fork and proposing changes (#34240) 2025-06-22 12:43:43 +00:00
githttp.go Refactor Actions Token Access (#35688) 2025-10-22 11:12:31 +00:00
githttp_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
helper.go Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
issue.go Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +00:00
issue_comment.go Move GetDiverging functions to gitrepo (#35524) 2025-09-26 15:15:42 +00:00
issue_content_history.go enable staticcheck QFxxxx rules (#34064) 2025-03-29 17:32:28 -04:00
issue_dependency.go Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
issue_label.go Validate hex colors when creating/editing labels (#34623) 2025-06-07 11:25:08 +03:00
issue_label_test.go Validate hex colors when creating/editing labels (#34623) 2025-06-07 11:25:08 +03:00
issue_list.go Move updateref and removeref to gitrepo and remove unnecessary open repository (#35511) 2025-09-19 08:04:18 -07:00
issue_lock.go Add API routes to lock and unlock issues (#34165) 2025-04-21 00:43:43 +00:00
issue_new.go Move updateref and removeref to gitrepo and remove unnecessary open repository (#35511) 2025-09-19 08:04:18 -07:00
issue_page_meta.go Fix PR's target branch dropdown (#33589) 2025-02-14 05:21:31 +00:00
issue_pin.go Move issue pin to an standalone table for querying performance (#33452) 2025-02-17 11:28:37 -08:00
issue_poster.go Support public code/issue access for private repositories (#33127) 2025-01-14 01:53:34 +00:00
issue_stopwatch.go fix(issue): Replace stopwatch toggle with explicit start/stop actions (#34818) 2025-06-25 07:22:58 +08:00
issue_suggestions.go Rework suggestion backend (#33538) 2025-02-10 16:24:05 +00:00
issue_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
issue_timetrack.go Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
issue_view.go Add quick approve button on PR page (#35678) 2025-10-20 18:46:37 +08:00
issue_watch.go Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
middlewares.go Refactor context repository (#33202) 2025-01-12 03:39:46 +00:00
migrate.go Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
milestone.go Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +00:00
packages.go Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +00:00
projects.go Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +00:00
projects_test.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
pull.go Honor delete branch on merge repo setting when using merge API (#35488) 2025-10-22 05:06:56 +00:00
pull_review.go Rename pull request GetGitRefName to GetGitHeadRefName (#35093) 2025-07-16 21:33:33 +08:00
pull_review_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
recent_commits.go Hide activity contributors, recent commits and code frequrency left tabs if there is no code permission (#34053) 2025-03-28 21:04:40 -07:00
release.go Fix tag target (#34781) 2025-06-19 10:33:30 -07:00
release_test.go Validate that the tag doesn't exist when creating a tag via the web (#33241) 2025-01-14 09:27:35 +08:00
render.go Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
repo.go Move archive function to repo_model and gitrepo (#35514) 2025-10-06 15:01:26 -07:00
search.go Improve issue & code search (#33860) 2025-03-13 11:07:48 +08:00
star.go Refactor web route handler (#33488) 2025-02-05 02:14:03 +08:00
topic.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
transfer.go Refactor web route handler (#33488) 2025-02-05 02:14:03 +08:00
treelist.go Improve submodule relative path handling (#35056) 2025-07-14 23:28:34 +08:00
treelist_test.go support the open-icon of folder (#34168) 2025-04-28 19:51:32 -07:00
view.go Use LFS object size instead of blob size when viewing a LFS file (#35679) 2025-10-16 17:42:54 +08:00
view_file.go Use LFS object size instead of blob size when viewing a LFS file (#35679) 2025-10-16 17:42:54 +08:00
view_home.go Update JS deps, misc tweaks (#35643) 2025-10-12 21:07:15 +00:00
view_home_test.go Fix repo file list partial reloading for submodules (#35183) 2025-07-31 09:34:51 +08:00
view_readme.go Use LFS object size instead of blob size when viewing a LFS file (#35679) 2025-10-16 17:42:54 +08:00
view_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
watch.go Refactor web route handler (#33488) 2025-02-05 02:14:03 +08:00
webgit.go Support choose email when creating a commit via web UI (more) (#33445) 2025-01-31 02:36:18 +00:00
wiki.go Move HasWiki to repository service package (#33912) 2025-09-01 11:12:58 -07:00
wiki_test.go Move HasWiki to repository service package (#33912) 2025-09-01 11:12:58 -07:00