forgejo/templates
Gusted f458663f75 fix(migrations): transfer PR flow information (#7421)
- When migrating a pull requests from a Gitea or Forgejo instance, check if the pull request was created via the AGit flow and transfer that bit of information to the migrated pull request.
- Expose this bit of information as the `flow` field for the pull request.
- We have to do a horrible Go hack with Gitea's [go-sdk](gitea.com/gitea/go-sdk) to list all pull requests while being able to decode it to a struct that contains the new `Flow` field. The library does not allow you to do this out of the box, so we have to use `go:linkname` to access the private method that allows us to do this. This in turn means we have to do some boilerplate code that the library otherwise would do for us. The better option would be forking, but that would be a hassle of keeping the library in sync.
- Resolves forgejo/forgejo#5848
- Unit test added.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7421
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
(cherry picked from commit 5e79b39654)
2025-04-03 06:48:29 +00:00
..
admin [v11.0/forgejo]: fix(i18n): fix several usages of i18n (#7430) 2025-04-02 16:03:28 +00:00
api/packages/pypi Update templates/api/packages/pypi/simple.tmpl 2024-04-12 16:43:30 +00:00
base Remove "noscript" tag from html head (#33846) 2025-03-14 10:57:54 +01:00
custom [FEAT] Repository flags 2024-02-05 16:09:42 +01:00
devtest chore(ui): always use primary button color inside modals (#7161) 2025-03-09 07:45:58 +00:00
explore ui: simplify main-attribute labels 2024-12-08 17:30:52 +05:00
htmx Update module github.com/editorconfig-checker/editorconfig-checker/v2/cmd/editorconfig-checker to v3 2024-08-09 21:03:37 +02:00
mail Merge pull request '[SEC] Notify owner about TOTP enrollment' (#4704) from gusted/sec-more-totp into forgejo 2024-07-27 20:53:47 +00:00
org fix(ui): add header to org settings / blocked users page (#7101) 2025-03-02 13:11:57 +00:00
package Alt Linux Apt-Rpm repository support for Forgejo packages. (#6351) 2025-01-22 14:01:49 +00:00
projects fix(ui): improve milestone/project header consistency (#7174) 2025-03-09 16:24:52 +00:00
repo [v11.0/forgejo]: fix(i18n): fix several usages of i18n (#7430) 2025-04-02 16:03:28 +00:00
shared chore(ui): remove unused template "shared/user/blocked_users" (#7213) 2025-03-13 18:17:09 +00:00
status chore(branding): strip metadata information from the footer 2024-12-29 22:40:13 +00:00
swagger fix(migrations): transfer PR flow information (#7421) 2025-04-03 06:48:29 +00:00
user [v11.0/forgejo]: fix(i18n): fix several usages of i18n (#7430) 2025-04-02 16:03:28 +00:00
webhook fix: improve discord webhook api conformance 2024-10-08 22:43:28 +02:00
home.tmpl Split Forgejo landing page template to allow patching or removing Forgejo introduction section (#6675) 2025-02-03 08:41:52 +00:00
home_forgejo.tmpl Split Forgejo landing page template to allow patching or removing Forgejo introduction section (#6675) 2025-02-03 08:41:52 +00:00
install.tmpl Added alt's to <img> 2025-01-31 21:22:00 +00:00
post-install.tmpl [BRANDING] Custom loading animation for Forgejo 2024-02-05 16:02:13 +01:00