Skip to content

fix(kanban): make move-issue.sh board update failures fatal#2

Open
BenPerel wants to merge 1 commit intomainfrom
fix/move-issue-error-handling
Open

fix(kanban): make move-issue.sh board update failures fatal#2
BenPerel wants to merge 1 commit intomainfrom
fix/move-issue-error-handling

Conversation

@BenPerel
Copy link
Copy Markdown
Owner

Summary

  • Board update failures in move-issue.sh were silently swallowed as warnings (exit 0), causing agents to believe issue moves succeeded when only the GitHub label changed but the project board status remained stale.
  • All board-related failures are now promoted from WARNING to ERROR (exit 2), and stderr is no longer suppressed on gh project item-edit so failures are diagnosable.

Changes

  • Promote "item not found on board" from WARNING → ERROR (exit 2)
  • Promote "failed to update board status" from WARNING → ERROR (exit 2)
  • Promote "failed to query board items" from WARNING → ERROR (exit 2)
  • Remove >/dev/null 2>&1 from gh project item-edit so error output is visible

Testing

  • Manually verified gh project item-edit works correctly when run without suppressing stderr
  • Script still exits 0 on success with correct JSON output

🤖 Generated with Claude Code

Board update failures were swallowed as warnings (exit 0), causing agents
to believe issue moves succeeded when only the label changed but the
project board status remained stale.

- Promote "item not found on board" from WARNING to ERROR (exit 2)
- Promote "failed to update board status" from WARNING to ERROR (exit 2)
- Promote "failed to query board items" from WARNING to ERROR (exit 2)
- Stop swallowing stderr on gh project item-edit so failures are diagnosable

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant