feat: add remove-tags tool for removing tags from posts and pages#635
Open
jonhickman wants to merge 2 commits intoTryGhost:mainfrom
Open
feat: add remove-tags tool for removing tags from posts and pages#635jonhickman wants to merge 2 commits intoTryGhost:mainfrom
jonhickman wants to merge 2 commits intoTryGhost:mainfrom
Conversation
- Add new remove-tags command following add-tags pattern - Support filtering by content type, visibility, existing tags, authors, and dates - Include both CLI and interactive modes - Interactive mode uses searchable tag selection - Add comprehensive documentation and examples - Fix tag filtering pattern consistency across tools
- Add 'Leave blank for all' pattern to tags to be removed field - Fix date picker defaults to use logical 1-year cleanup window (2 years ago to 1 year ago) - Ensure consistent UX patterns with other GCTools - Handle empty tag selection to remove all tags from posts/pages
| } | ||
|
|
||
| // Report success | ||
| ui.log.ok(`Successfully updated ${context.updated.length} posts in ${Date.now() - timer}ms.`); |
There was a problem hiding this comment.
Bug: Context Management and Success Message Errors
The context object's errors and updated properties aren't reliably managed. The initialise task overwrites ctx.errors, preventing collected errors from appearing in the final log. context.updated isn't initialized in the command, which can lead to a runtime error if tasks fail before it's populated. Also, the success message incorrectly states "posts" regardless of the content type updated.
Additional Locations (3)
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.
Uh oh!
There was an error while loading. Please reload this page.