Skip to content

ci: enforce branch naming conventions - #4

Merged
halcyon-past merged 1 commit into
mainfrom
feature/main/enforce-branch-naming
Aug 8, 2026
Merged

halcyon-past merged 1 commit into
mainfrom
feature/main/enforce-branch-naming

Conversation

@halcyon-past

Copy link
Copy Markdown
Owner

Enforces branch naming formats via GitHub actions

Copilot AI lite review requested due to automatic review settings August 8, 2026 11:59
@halcyon-past
halcyon-past merged commit f356304 into main Aug 8, 2026
6 checks passed
@halcyon-past
halcyon-past deleted the feature/main/enforce-branch-naming branch August 8, 2026 12:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a GitHub Actions workflow to enforce branch naming conventions on pull requests targeting the main development branches.

Changes:

  • Introduces a new workflow that validates github.head_ref against a regex for feature/<env>/<name> and hotfix/<name>.
  • Fails the workflow with an error annotation when the branch name does not match the convention.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

- main
- dev
- uat

Comment on lines +14 to +15
- name: Validate Branch Name
run: |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants