Go to  for your project, then Mattermost Settings.

Click the cog icon  for a Repository Channel .

Click on for the policy.

Modify the policy and Save.