Skip to content

Branch protection for pull mirrors #20849

@kotovalexarian

Description

@kotovalexarian

Feature Description

I want branch protection against forced pushes to optionally work even when the branch is a mirror.

Use case: archiving purposes. Sometimes developers go mad and delete everything with a force push. Gitea should be able to preserse the history of Git commits.

Of couse, mirroring will fail in this case. I suggest to inform the repository owner with a notification so he will be able to decide what to do.

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/featureCompletely new functionality. Can only be merged if feature freeze is not active.type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions