Skip to content

Add support for preventing file deletion based on file type

Release notes

Problem to solve

Push rules can be used to give user more control over the content that can be pushed/removed in their repository. Currently we can we can use commit messages to validate if a certain file type might be deleted in a commit however if a user changes the message it can easily get through. Users should be able to specify file types that should not be deleted in the repository.

Proposal

Similar to Reject expression in commit messages setting, there should be a Prohibit file type deletion

Screenshot_from_2023-05-17_13-35-27

Intended users

Feature Usage Metrics

This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.

Edited by 🤖 GitLab Bot 🤖