Jest approval tests support - #22
Draft
cursor[bot] wants to merge 5 commits into
Draft
Conversation
- Add commentTemplates field to .copserc config - Allow users to define custom comment templates for issue creation - Templates automatically prepend agent mention (@cursor, @claude, etc.) - Falls back to default templates when no custom templates defined - Update config loader to support configs with only commentTemplates - Add comprehensive tests for config loading and template validation - Update README with configuration examples and documentation Fixes #18
Author
|
Cursor Agent can help with this pull request. Just |
- Replace JSON commentTemplates in .copserc with .copse/comment-templates/ directory - Load templates from .md files with frontmatter (label) and body (message) - Templates are sorted alphabetically by filename - Supports multiline messages and proper frontmatter parsing - Update all tests to use new MD-based approach - Update README with MD template examples and directory structure - Maintains backward compatibility with default templates when no custom ones exist This provides a more maintainable and version-control friendly approach for managing custom comment templates.
User-specific comment templates should not be committed to the repo.
- Change template location from project .copse/ to ~/.copse/comment-templates/ - Templates are now global across all projects for the user - Simplify template loading logic (no directory traversal needed) - Update tests to use home directory - Update README to reflect new global template location - Remove .copse/ from .gitignore (no longer in project directory) This makes more sense as comment templates are personal preferences that should be available across all projects, not project-specific config.
Resolve the create-issue and config conflicts by keeping the newer Cursor API flow while preserving the branch's comment template loading behavior. Made-with: Cursor
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.
Implement custom comment templates for issue creation to allow users to define their own "canned responses" in the
.copsercconfiguration file, addressing #18.