#47 Corrupted PRs can not be closed

오픈
sprenger3 년 전을 오픈 · 3개의 코멘트
sprenger 코멘트됨, 3 년 전

If a PR gets corrupted it can not be closed via the webinterface of gin, leaving it present, but broken forever. Examples are

If a PR gets corrupted it can not be closed via the webinterface of gin, leaving it present, but broken forever. Examples are - https://gin.g-node.org/NeuralEnsemble/ephy_testing_data/pulls/28 - https://gin.g-node.org/NeuralEnsemble/ephy_testing_data/pulls/32 - https://gin.g-node.org/NeuralEnsemble/ephy_testing_data/pulls/33
Achilleas Koutsou 코멘트됨, 3 년 전
소유자

This is a little hard to reproduce but it looks like it's already been fixed upstream. I can't give a timeline for when it will land in GIN though.

How were the PRs corrupted exactly? The underlying issue is that the branch being merged doesn't share a merge base with the base branch. Is it possible to push to the branch for each PR? If you can, force pushing anything that shares a merge base with the base branch should fix the issue and let you load the page to delete and clean them up.

This is a little hard to reproduce but it looks like it's already been fixed upstream. I can't give a timeline for when it will land in GIN though. How were the PRs corrupted exactly? The underlying issue is that the branch being merged doesn't share a merge base with the base branch. Is it possible to push to the branch for each PR? If you can, force pushing anything that shares a merge base with the base branch should fix the issue and let you load the page to delete and clean them up.
Achilleas Koutsou 코멘트됨, 3 년 전
소유자
For reference, the offending code is at: https://github.com/G-Node/gogs/blob/2716e9bdc2ed6e280562a31edce9f2ac9ff94def/internal/route/repo/pull.go#L219-L230 And the upstream version which handles the issue more gracefully is at: https://github.com/gogs/gogs/blob/ba8be9489e6d959fa9005fc7d38bf62562580d23/internal/route/repo/pull.go#L535-L537
sprenger 코멘트됨, 3 년 전
포스터

The corrupted PRs were open when a history reset of the master branch was performed, resulting in the base branch and the PR branch not having shared history. I think I deleted already the corresponding feature branches, but can not verify this any more as I can't check the PRs parameters via the webinterface any more.

The corrupted PRs were open when a history reset of the master branch was performed, resulting in the base branch and the PR branch not having shared history. I think I deleted already the corresponding feature branches, but can not verify this any more as I can't check the PRs parameters via the webinterface any more.
로그인하여 이 대화에 참여
마일스톤 없음
담당자 없음
참여자 2명
로딩중...
취소
저장
아직 콘텐츠가 없습니다.