Fix dead --json flag in organization & project delete operations#70
Merged
austin-denoble merged 2 commits intomainfrom Mar 18, 2026
Merged
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix prepared a fix for the issue found in the latest run.
- ✅ Fixed: Local developer settings file accidentally committed
- Removed .claude/settings.local.json from version control and added it to .gitignore to prevent future commits.
Or push these changes by commenting:
@cursor push c5c35fa799
Preview (c5c35fa799)
diff --git a/.claude/settings.local.json b/.claude/settings.local.json
deleted file mode 100644
--- a/.claude/settings.local.json
+++ /dev/null
@@ -1,19 +1,0 @@
-{
- "permissions": {
- "allow": [
- "mcp__claude_ai_Linear__get_project",
- "mcp__claude_ai_Linear__list_teams",
- "mcp__claude_ai_Linear__list_issue_labels",
- "mcp__claude_ai_Linear__create_issue_label",
- "mcp__claude_ai_Linear__save_issue",
- "mcp__claude_ai_Linear__list_issues",
- "mcp__claude_ai_Linear__get_issue",
- "mcp__claude_ai_Linear__list_issue_statuses",
- "Bash(git checkout:*)",
- "Bash(go build:*)",
- "Bash(go test:*)",
- "Bash(grep:*)",
- "Bash(go doc:*)"
- ]
- }
-}
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
--- a/.gitignore
+++ b/.gitignore
@@ -36,3 +36,6 @@
# Man pages
man/
+
+# Claude Code local settings
+.claude/settings.local.jsonThis Bugbot Autofix run was free. To enable autofix for future PRs, go to the Cursor dashboard.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Problem
The
organizationandprojectdeletecommands had the--jsonflag implemented, but it was being ignored in code.Solution
organizationandprojectdeleteoperations ignoring the--jsonflag. Extract the run command from both into isolated functions so they can be tested on. Add unit test files for both.Type of Change
Test Plan
Unit tests added, run a project delete command with
--jsonand evaluate the output.Deleting an organization is technically exposed in the API / CLI, but in practice this is difficult as you have to delete everything within that organization first.
Note
Low Risk
Low risk: change only affects CLI output formatting for delete commands and adds unit coverage; deletion behavior itself is unchanged.
Overview
Fixes
pc organization deleteandpc project deleteso the--jsonflag is actually honored after a successful delete.Both commands now route deletion through
runDeleteOrganizationCmd/runDeleteProjectCmd, which either prints a structured JSON payload ({"deleted":true,"name":...,"id":...}) or the existing human-readable success message, and new unit tests cover success, JSON output, and error propagation.Written by Cursor Bugbot for commit 9335145. This will update automatically on new commits. Configure here.