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.
gitea/models
Earl Warren 20f47bbca9
fix generated source URL on rendered files (#26364)
- The permalink and 'Reference in New issue' URL of an renderable file
(those where you can see the source and a rendered version of it, such
as markdown) doesn't contain `?display=source`. This leads the issue
that the URL doesn't have any effect, as by default the rendered version
is shown and thus not the source.
- Add `?display=source` to the permalink URL and to 'Reference in New
Issue' if it's renderable file.
- Add integration testing.

Refs: https://codeberg.org/forgejo/forgejo/pulls/1088

Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-authored-by: Giteabot <teabot@gitea.io>
2 years ago
..
actions Fix log typo in task.go (#26337) 2 years ago
activities Bypass MariaDB performance bug of the "IN" sub-query, fix incorrect IssueIndex (#26279) 2 years ago
admin Replace `interface{}` with `any` (#25686) 2 years ago
asymkey Update tool dependencies, lock govulncheck and actionlint (#25655) 2 years ago
auth Remove "misc" scope check from public API endpoints (#26134) 2 years ago
avatars Avoid warning for system setting when start up (#23054) 2 years ago
db Refactor and enhance issue indexer to support both searching, filtering and paging (#26012) 2 years ago
dbfs Fix content holes in Actions task logs file (#25560) 2 years ago
fixtures fix generated source URL on rendered files (#26364) 2 years ago
git Some fixes of the prompt of new branches (#26257) 2 years ago
issues Use more `IssueList` instead of `[]*Issue` (#26369) 2 years ago
migrations Fix typo in metadata (#26207) 2 years ago
organization Remove unused code (#25734) 2 years ago
packages Test if container blob is accessible before mounting (#22759) 2 years ago
perm some less naked returns (#25682) 2 years ago
project Update xorm version (#26128) 2 years ago
pull refactor some functions to support ctx as first parameter (#21878) 2 years ago
repo Fix the topic validation rule and suport dots (#26286) 2 years ago
secret Support configuration variables on Gitea Actions (#24724) 2 years ago
shared/types Display owner of a runner as a tooltip instead of static text (#24377) 2 years ago
system Replace `interface{}` with `any` (#25686) 2 years ago
unit Rewrite logger system (#24726) 2 years ago
unittest Replace `interface{}` with `any` (#25686) 2 years ago
user Fix API leaking Usermail if not logged in (#25097) 2 years ago
webhook Replace `interface{}` with `any` (#25686) 2 years ago
error.go Sync branches into databases (#22743) 2 years ago
fixture_generation.go Implement FSFE REUSE for golang files (#21840) 2 years ago
fixture_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
main_test.go Merge setting.InitXXX into one function with options (#24389) 2 years ago
migrate.go Add context parameter to some database functions (#26055) 2 years ago
migrate_test.go Add context parameter to some database functions (#26055) 2 years ago
org.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
org_team.go Remove org users who belong to no teams (#24247) 2 years ago
org_team_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
org_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo.go Update tool dependencies, lock govulncheck and actionlint (#25655) 2 years ago
repo_collaboration.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
repo_collaboration_test.go Rename `repo.GetOwner` to `repo.LoadOwner` (#22967) 2 years ago
repo_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo_transfer.go Fix unclear `IsRepositoryExist` logic (#24374) 2 years ago
repo_transfer_test.go Rename almost all Ctx functions (#22071) 2 years ago