Skip to content
Discussion options

You must be logged in to vote

You’re not missing anything — currently Copilot agents cannot strictly enforce branch naming conventions or PR title rules. The Custom Agent configuration allows you to provide guidance, examples, and preferred patterns, but it will not block or validate actions when those rules are not followed.

If you need actual enforcement today, that still has to be done using GitHub platform features such as:

Branch protection rules

PR templates (with required format placeholders)

GitHub Actions/CI checks (e.g., regex validation on branch names or titles)

For example, a simple CI check can reject PRs if the branch name doesn't follow the required format.

In summary: Copilot can follow instructions w…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@IlyaUmanets
Comment options

Answer selected by IlyaUmanets
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Ask and answer questions about GitHub features and usage Copilot Cloud Agent Implement a task or issue, run in the background with GitHub Actions, and more
3 participants