Skip to content

fix: return actual API result from delete_branch#117

Open
HelenGreul wants to merge 1 commit into
polyai:mainfrom
HelenGreul:fix/delete-branch-return-value
Open

fix: return actual API result from delete_branch#117
HelenGreul wants to merge 1 commit into
polyai:mainfrom
HelenGreul:fix/delete-branch-return-value

Conversation

@HelenGreul
Copy link
Copy Markdown
Contributor

@HelenGreul HelenGreul commented Apr 28, 2026

Summary

  • Project.delete_branch() unconditionally returnstrue regardless of the API response
  • Both CLI callers (branch_delete single and multi-select paths) check this value to display success/failure - a failed deletion was always reported as successful
  • One-line fix: return Truereturn success

`delete_branch` unconditionally returned `True` regardless of the API
response. Callers in `cli.py` check this value to display success or
failure messages, so a failed deletion was always reported as successful.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@HelenGreul HelenGreul requested a review from a team April 28, 2026 20:58
@github-actions
Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale because it has not had any activity in 30 days. It will be closed in 7 days if no further activity occurs. If this is still in progress, please push an update or leave a comment.

@github-actions github-actions Bot added the stale label May 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants