Push rule to restrict who can push changes to specific files/folders within repository (.e.g .gitlab-ci.yaml)
Restrict who can push changes to specific files or folder within the project repository.
Any developer with push access to a project repository can change any files or folders within the repo. It would be useful to restrict write access to specified files or subfolders. For example, It would be very useful to restrict write access to .gitlab-ci.yaml to members of the DevOps group.
Proposal
Allow owner of a project to add path-specific push rules. Allowed people can be specified using a gitlab group, comma-separated git lab usernames, or email address regexp. Path can be specified in a format similar to .gitignore.
Links / references
Existing push rules documentation: https://gitlab.com/help/push_rules/push_rules.md