forgejo/modules/structs
forgejo-backport-action 52da8aab7e [v11.0/forgejo] fix(migrations): transfer PR flow information (#7437)
**Backport:** https://codeberg.org/forgejo/forgejo/pulls/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.

Co-authored-by: Gusted <postmaster@gusted.xyz>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7437
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
Co-committed-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
2025-04-03 07:35:20 +00:00
..
action.go Add search action jobs for API routes, repo, org and global level (#6300) 2025-01-14 11:17:42 +00:00
activity.go [CHORE] Fix swagger deprecation message 2024-08-10 01:21:13 +02:00
activitypub.go
admin_user.go fix: use ValidateEmail as binding across web forms 2024-08-28 22:25:17 -06:00
attachment.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
commit_status.go
commit_status_test.go
cron.go
doc.go
fork.go
git_blob.go
git_hook.go
hook.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
issue.go [CHORE] Fix swagger deprecation message 2024-08-10 01:21:13 +02:00
issue_comment.go
issue_label.go
issue_milestone.go [CHORE] Fix swagger deprecation message 2024-08-10 01:21:13 +02:00
issue_reaction.go
issue_stopwatch.go
issue_test.go
issue_tracked_time.go
lfs_lock.go
mirror.go [FEAT] Allow pushmirror to use publickey authentication 2024-08-22 17:05:07 +02:00
miscellaneous.go fix: Preview picture not visible on Markdown file (#5781) 2024-11-23 15:00:18 +00:00
moderation.go
nodeinfo.go
notifications.go
org.go Inclusion of rename organization api (#33303) 2025-02-02 12:01:58 +01:00
org_member.go
org_team.go [CHORE] Fix swagger deprecation message 2024-08-10 01:21:13 +02:00
package.go
pull.go [v11.0/forgejo] fix(migrations): transfer PR flow information (#7437) 2025-04-03 07:35:20 +00:00
pull_review.go Fix invalid swagger syntax of $ref with sibling (#7019) 2025-02-21 14:09:21 +00:00
quota.go feat(quota): Humble beginnings of a quota engine 2024-08-02 11:10:34 +02:00
release.go
repo.go [v11.0/forgejo] fix: validate input for default_{merge,update}_style (#7401) 2025-03-31 09:43:46 +00:00
repo_actions.go
repo_branch.go
repo_collaborator.go [CHORE] Fix swagger deprecation message 2024-08-10 01:21:13 +02:00
repo_commit.go
repo_compare.go feat: add files to compare (#6461) 2025-01-05 02:32:46 +00:00
repo_file.go [CHORE] Fix swagger deprecation message 2024-08-10 01:21:13 +02:00
repo_flags.go
repo_key.go
repo_note.go [FEAT]Allow changing git notes (#4753) 2024-11-18 22:56:17 +00:00
repo_refs.go
repo_tag.go
repo_topic.go
repo_tree.go
repo_watch.go
repo_wiki.go
secret.go
settings.go
status.go
task.go style: reenable switch check 2024-08-18 15:19:01 +02:00
user.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
user_app.go
user_email.go fix: use ValidateEmail as binding across web forms 2024-08-28 22:25:17 -06:00
user_gpgkey.go
user_key.go
variable.go
visible_type.go
workflow.go feat(api): return run_number in workflow dispatch (#7286) 2025-03-25 21:22:32 +00:00