The Open button in the PR list lacks some checks #11824

Closed
opened 2025-11-02 09:48:56 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @lng2020 on GitHub (Oct 10, 2023).

Description

ksnip_20231010-113026
Currently, the only check of this button is
3c131307ac/routers/web/repo/issue.go (L2882-L2884)
This will cause some problems such as when the head branch is deleted or the fork repo changes the visibility.

ksnip_20231008-161624

But I'm not really sure about the whole check condition. Are there any other cases that the PR should not be reopened?

Gitea Version

latest codebase

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

built from source code

Database

None

Originally created by @lng2020 on GitHub (Oct 10, 2023). ### Description ![ksnip_20231010-113026](https://github.com/go-gitea/gitea/assets/70063547/30b10fbb-9cae-4453-bb72-20dfd525274a) Currently, the only check of this button is https://github.com/go-gitea/gitea/blob/3c131307ac44247e65516135c626e437f089ca9f/routers/web/repo/issue.go#L2882-L2884 This will cause some problems such as when the head branch is deleted or the fork repo changes the visibility. <details> ![ksnip_20231008-161624](https://github.com/go-gitea/gitea/assets/70063547/78eade43-ddb6-4283-a1dd-b725a4a1bf51) </details> But I'm not really sure about the whole check condition. Are there any other cases that the PR should not be reopened? ### Gitea Version latest codebase ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? built from source code ### Database None
GiteaMirror added the type/bug label 2025-11-02 09:48:56 -06:00
Author
Owner

@yp05327 commented on GitHub (Mar 27, 2024):

same to #26106?

@yp05327 commented on GitHub (Mar 27, 2024): same to #26106?
Author
Owner

@lunny commented on GitHub (Mar 27, 2024):

This issue is for the pull request list page but yours is for pull request detail page.

@lunny commented on GitHub (Mar 27, 2024): This issue is for the pull request list page but yours is for pull request detail page.
Author
Owner

@yp05327 commented on GitHub (Sep 26, 2024):

I think this has been fixed by #32081

@yp05327 commented on GitHub (Sep 26, 2024): I think this has been fixed by #32081
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#11824