[WIP] GitHub CLI with complex markdown body#108
Open
konard wants to merge 3 commits into
Open
Conversation
Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: #40
Add comprehensive solution for safely passing complex markdown content with special characters to GitHub CLI commands.
## Changes
### Core Implementation
- Add `githubCli` helper object with methods for safe GitHub CLI operations
- Implement `createIssue()`, `createPullRequest()`, and `withBodyFile()` functions
- Use temporary file approach with `--body-file` parameter to avoid shell escaping issues
- Automatic cleanup of temporary files with proper error handling
### New Features
- Safe handling of backticks, variables (${var}), quotes, and special characters
- Support for all GitHub CLI options (assignee, labels, milestone, etc.)
- Production-ready error handling and file cleanup
- Memory-efficient temporary file management
### Testing & Examples
- Comprehensive test suite covering edge cases and error scenarios
- Demonstration script showing the problem and solution
- Documentation with usage examples for CI/CD workflows
### Version Bump
- Update package.json from 0.7.1 to 0.7.2
## Solves
- Issue #40: GitHub CLI with complex markdown body fails due to shell escaping
- Provides production-ready alternative to direct `--body` parameter usage
- Maintains compatibility with all existing functionality
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
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.
🤖 AI-Powered Solution
This pull request is being automatically generated to solve issue #40.
📋 Issue Reference
Fixes #40
🚧 Status
Work in Progress - The AI assistant is currently analyzing and implementing the solution.
📝 Implementation Details
Details will be added as the solution is developed...
This PR was created automatically by the AI issue solver