[WIP] Fix branch namespace collision checks for dev prefix #22

Merged
Copilot merged 1 commits from copilot/fix-branch-collision-defense into main 2026-01-03 22:38:02 +00:00
Copilot commented 2026-01-03 22:37:36 +00:00 (Migrated from github.com)

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.

Original prompt

The workflow fails in the 'Branch namespace collision defense' step due to potential namespace collision despite no branch named 'dev' existing remotely. This issue arises because the variable PREfix/TOP derived from BRANCH_PREFIX is interpreted as 'dev' but the check is unnecessary for the static prefix 'dev/'. This fix updates the logic to skip the collision check for the 'dev/' prefix explicitly. Additionally, updates will ensure more robust input validation and safeguard the namespace checks.

This pull request was created from Copilot chat.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress. <!-- START COPILOT ORIGINAL PROMPT --> <details> <summary>Original prompt</summary> > The workflow fails in the 'Branch namespace collision defense' step due to potential namespace collision despite no branch named 'dev' existing remotely. This issue arises because the variable `PREfix/TOP` derived from `BRANCH_PREFIX` is interpreted as 'dev' but the check is unnecessary for the static prefix 'dev/'. This fix updates the logic to skip the collision check for the 'dev/' prefix explicitly. Additionally, updates will ensure more robust input validation and safeguard the namespace checks. </details> <!-- START COPILOT CODING AGENT SUFFIX --> *This pull request was created from Copilot chat.* > <!-- START COPILOT CODING AGENT TIPS --> --- 💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more [Copilot coding agent tips](https://gh.io/copilot-coding-agent-tips) in the docs.
jmiller-moko (Migrated from github.com) reviewed 2026-01-03 22:37:36 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoCassiopeia#22