Skip to content

The Open button in the PR list lacks some checksΒ #27553

@lng2020

Description

@lng2020

Description

ksnip_20231010-113026
Currently, the only check of this button is

if issue.IsPull && issue.PullRequest.HasMerged {
continue
}

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions