Transfer a repository will result in pull requests from the same repository broken #4135

Closed
opened 2025-11-02 05:39:52 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @lunny on GitHub (Oct 17, 2019).

There is a duplicated column named HeadUserName on PullRequest. But if HeadRepo transfered to a new place, we haven't change the pull requests' HeadUserName.

There are two method to resolve the problem. One is update all PullRequest's HeadUserName when transfered repository.

The second is to remove the column HeadUserName and get it from Repository and User.

Which one is better?

Originally created by @lunny on GitHub (Oct 17, 2019). There is a duplicated column named `HeadUserName` on `PullRequest`. But if `HeadRepo` transfered to a new place, we haven't change the pull requests' `HeadUserName`. There are two method to resolve the problem. One is update all `PullRequest`'s `HeadUserName` when transfered repository. The second is to remove the column `HeadUserName` and get it from `Repository` and `User`. Which one is better?
GiteaMirror added the type/bug label 2025-11-02 05:39:52 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#4135