From 71987ee537e67c4fe79db70acabd432e629f1d7d Mon Sep 17 00:00:00 2001 From: lmiranda Date: Thu, 22 Jan 2026 14:28:01 -0500 Subject: [PATCH] fix: switch to development branch before adding issue comments The MCP server's branch-aware security blocks write operations on protected branches (main, fix/*, etc). After pushing a feature branch and creating a PR, we must switch back to development before adding comments to issues via MCP tools. --- plugins/projman/commands/debug-review.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/projman/commands/debug-review.md b/plugins/projman/commands/debug-review.md index f93316f..43872a7 100644 --- a/plugins/projman/commands/debug-review.md +++ b/plugins/projman/commands/debug-review.md @@ -312,7 +312,12 @@ git push -u origin fix/issue-[NUMBER]-[brief-description] 3. Create PR via API or MCP tools -4. Add comment to original issue: +4. **Switch back to development branch** (required for MCP issue operations): +```bash +git checkout development +``` + +5. Add comment to original issue: ``` mcp__plugin_projman_gitea__add_comment( repo=REPO_NAME,