Skip to content

Jest approval tests support - #22

Draft
cursor[bot] wants to merge 5 commits into
mainfrom
cursor/jest-approval-tests-support-7779
Draft

Jest approval tests support#22
cursor[bot] wants to merge 5 commits into
mainfrom
cursor/jest-approval-tests-support-7779

Conversation

@cursor

@cursor cursor Bot commented Mar 5, 2026

Copy link
Copy Markdown

Implement custom comment templates for issue creation to allow users to define their own "canned responses" in the .copserc configuration file, addressing #18.


Open in Web Open in Cursor 

- 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
@cursor

cursor Bot commented Mar 5, 2026

Copy link
Copy Markdown
Author

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

cursoragent and others added 4 commits March 5, 2026 03:26
- 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
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