Go to for your repository, then Mattermost Settings.
Click the cog icon for a Repository Channel .
Click on for the policy.
Modify the policy and Save.