forgejo_backup/services/migrations/testdata
Gusted 5e79b39654 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>
2025-04-03 06:47:37 +00:00
..
code-forgejo-org/full_download fix(migrations): transfer PR flow information (#7421) 2025-04-03 06:47:37 +00:00
gitea/full_download feat: implement migration of website field from gogs/gitea/github (#6474) 2025-01-20 12:18:19 +00:00
github/full_download feat: implement migration of website field from gogs/gitea/github (#6474) 2025-01-20 12:18:19 +00:00
gitlab migrate scoped gitlab labels as scoped forgejo labels 2024-09-08 09:13:02 +00:00