rules/GitHub.Branch.Rule.ps1
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # Synopsis: Use a consistent naming convention for your branches. Rule 'GitHub.Branch.Name' -Type 'api.github.com/repos/branches' { $Assert.NotIn($TargetObject, 'Name', $Configuration.GitHub_BranchName_Disallowed); $Assert.Match($TargetObject, 'Name', $Configuration.GitHub_BranchName_Format); } |