Add option to disable blockquote formatting in cloned issues#231
Open
nmurrell07 wants to merge 1 commit intogatewayapps:masterfrom
Open
Add option to disable blockquote formatting in cloned issues#231nmurrell07 wants to merge 1 commit intogatewayapps:masterfrom
nmurrell07 wants to merge 1 commit intogatewayapps:masterfrom
Conversation
This fix addresses the issue where the addBlockQuote function adds '>' to every line of the issue body, which interferes with template formatting. Users now have the ability to disable this behavior via a new checkbox in the settings. Changes: - Added 'add-blockquote' checkbox to options.html - Updated options.js to save and restore the new setting - Added getAddBlockquoteSetting() function to batch.js - Modified createGithubIssue() to conditionally apply blockquote formatting - Modified cloneOldIssueComments() to conditionally apply blockquote formatting This allows users to choose whether to preserve the original formatting of their issue descriptions or have them wrapped in blockquotes.
johnmurphy01
requested changes
Mar 21, 2026
Contributor
johnmurphy01
left a comment
There was a problem hiding this comment.
Pretty close. batch.js is used for batch cloning, an experimental feature that can be used when on the issue list page. The main code file is app.js and the add block quote option changes will need to be made there as well.
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.
Summary
This PR adds a new option to the Kamino settings that allows users to disable the automatic blockquote formatting when cloning GitHub issues. Previously, the
addBlockQuotefunction would add>to every line of the issue body, which could interfere with template formatting.Changes
addBlockquotesettinggetAddBlockquoteSetting()function to retrieve the setting from storagecreateGithubIssue()to conditionally apply blockquote formatting based on user preferencecloneOldIssueComments()to conditionally apply blockquote formatting to commentsTesting
The fix maintains backward compatibility by defaulting to the current behavior (adding blockquotes). Users can now disable this feature if they prefer to preserve the original formatting of their issue descriptions.
Related Issue
This addresses the issue where template formatting is broken by the automatic blockquote wrapping.