Skip to content

closed PRs can create a patch check task on every commit #24490

Closed
@earl-warren

Description

@earl-warren

Description

This is an issue introduced by #23324

Steps to reproduce:

  • Create a pull request to merge the default branch into another branch
  • Close the pull request
  • Every time a commit is pushed to the default branch a task will verify the patch

Although the above scenario is unlikely, it will never stop creating a workload. At scale the number of such cases keep growing, specially when importing projects from other forges.

Gitea Version

v1.19

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

https://codeberg.org

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