forgejo/models
Gusted eb20d7110c
[GITEA] Fix generated source URL on rendered files
- 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.

(cherry picked from commit 458f20f862)
(cherry picked from commit 5e630d7b10)

Conflicts:
	models/fixtures/repo_unit.yml
	https://codeberg.org/forgejo/forgejo/pulls/1178
(cherry picked from commit a10c6eb9c9)
(cherry picked from commit 0fcfb355af)
2023-08-14 12:43:56 +02:00
..
actions [CLI] implement forgejo-cli 2023-08-14 08:58:52 +02:00
activities Bypass MariaDB performance bug of the "IN" sub-query, fix incorrect IssueIndex (#26279) 2023-08-07 12:23:59 +02:00
admin Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
asymkey Update tool dependencies, lock govulncheck and actionlint (#25655) 2023-07-09 11:58:06 +00:00
auth [GITEA] silently ignore obsolete sudo scope 2023-08-14 11:23:01 +02:00
avatars
db [SEMVER] store SemVer in ForgejoSemVer after a database upgrade 2023-08-14 10:23:55 +02:00
dbfs Fix content holes in Actions task logs file (#25560) 2023-06-28 19:07:29 +02:00
fixtures [GITEA] Fix generated source URL on rendered files 2023-08-14 12:43:56 +02:00
forgejo/semver [UPGRADE] add sanity checks for [storage*] 2023-08-14 10:23:55 +02:00
forgejo_migrations [SEMVER] store SemVer in ForgejoSemVer after a database upgrade 2023-08-14 10:23:55 +02:00
git Some fixes of the prompt of new branches (#26257) 2023-08-01 07:25:11 +00:00
issues Rename Sync2 -> Sync (#26479) 2023-08-13 21:17:21 +02:00
migrations [UPGRADE] run sanity checks before the database is upgraded 2023-08-14 10:23:55 +02:00
organization Remove unused code (#25734) 2023-07-06 21:52:41 +00:00
packages Fix NuGet search endpoints (#25613) 2023-08-14 02:50:55 +00:00
perm some less naked returns (#25682) 2023-07-04 15:52:33 +00:00
project Refactor project templates (#26448) 2023-08-12 10:30:28 +00:00
pull
repo [GITEA] Add Upload URL to release API 2023-08-14 11:23:01 +02:00
secret Support configuration variables on Gitea Actions (#24724) 2023-06-20 22:54:15 +00:00
shared/types
system Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
unit
unittest Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
user Fix API leaking Usermail if not logged in (#25097) 2023-07-31 01:18:38 +00:00
webhook Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
error.go Sync branches into databases (#22743) 2023-06-29 10:03:20 +00:00
fixture_generation.go
fixture_test.go
main_test.go
migrate.go Add context parameter to some database functions (#26055) 2023-07-22 22:14:27 +08:00
migrate_test.go Add context parameter to some database functions (#26055) 2023-07-22 22:14:27 +08:00
org.go
org_team.go
org_team_test.go
org_test.go
repo.go Update tool dependencies, lock govulncheck and actionlint (#25655) 2023-07-09 11:58:06 +00:00
repo_collaboration.go
repo_collaboration_test.go
repo_test.go
repo_transfer.go
repo_transfer_test.go