104 Commits

Author SHA1 Message Date
long2ice
07d916c831 refactor: Update command descriptions and remove unused workflow files
This commit includes:
- Clarified and standardized descriptions for various command.yml files
- Removed obsolete workflow files (aider/command.yml, pr/command.yml, merico/ask-code/command.yml)
- Updated README for pr.custom_suggestions
- Translated some descriptions from Chinese to English
2025-03-12 16:36:15 +08:00
bobo.yang
ceff998daf fix lint error 2025-03-11 14:39:27 +08:00
bobo.yang
05683a04b4 fix lint error 2025-03-11 14:37:26 +08:00
bobo.yang
2dc0f049d8 fix lint errors 2025-03-11 14:35:52 +08:00
bobo.yang
46f80573ad fix lint errors 2025-03-11 14:29:37 +08:00
bobo.yang
1de60c73c9 fix lint errors 2025-03-11 14:27:07 +08:00
bobo.yang
433daf1603 fix lint errors 2025-03-11 14:26:11 +08:00
bobo.yang
946d9dcf25 fix lint errors 2025-03-11 14:24:28 +08:00
bobo.yang
cceb4c1dfb fix lint errors 2025-03-11 14:19:20 +08:00
bobo.yang
7353fe1df4 fix lint errors 2025-03-11 14:05:35 +08:00
bobo.yang
4dcdcc65e6 disable stream output when refactor code 2025-03-11 13:43:17 +08:00
bobo.yang
1538d658d8 move /github /gitlab /aider /pr from merico to community 2025-03-11 13:34:01 +08:00
bobo.yang
344fbff719 add /chatflow.ask and /chatflow.gen 2025-03-11 13:29:58 +08:00
bobo.yang
8d0b75a86d docs: Update commit message prompt format
- Remove closing reference section from example output
- Remove instruction about issue closing reference
- Simplify prompt by removing redundant constraints
2025-03-10 16:57:48 +08:00
long2ice
9490359c37 feat: Add GitHub username retrieval function
- Implement `get_github_username()` to fetch GitHub username via API
- Update `get_selected_issue_ids()` to use GitHub username instead of git username
- Enhance GitHub issue selection workflow with authenticated username retrieval
2025-03-10 16:38:08 +08:00
long2ice
1cd1ac0c88 feat: Enhance GitHub issue handling in commit workflow
- Update `get_selected_issue_ids()` to return repository context for cross-repository issue closing
- Modify commit message generation to support cross-repository issue references
- Improve issue selection logic to handle different repository scenarios
- Add support for appending full repository issue references when issues are from different repositories
2025-03-10 16:17:59 +08:00
long2ice
e786d16bbb feat: Add GitHub issue selection and auto-close functionality
- Implement `get_selected_issue_ids()` to allow users to select and close GitHub issues during commit
- Add support for automatically appending "Closes #IssueNumber" to commit messages
- Enhance commit workflow with dynamic issue tracking and resolution
- Integrate new GitHub API functions to retrieve user's assigned open issues
2025-03-10 14:00:27 +08:00
kagami
99b55db6ff
Merge pull request #135 from devchat-ai/update_refactor
refactor: Update rewrite.py with Chinese prompts and improve code structure
2025-03-07 07:37:22 +00:00
bobo.yang
083c714ac0 style: improve code formatting and whitespace
- Remove trailing whitespaces in Step class
- Improve formatting in GitHub and GitLab commit modules
- Fix indentation in error message output
- Add proper line spacing between functions
2025-03-07 13:02:06 +08:00
bobo.yang
5a0340e8e9 refactor: Clean up code structure and improve formatting
- Organize imports and remove unused imports
- Format code with consistent indentation and line breaks
- Remove empty lines and redundant whitespace
- Improve function parameter formatting for better readability
2025-03-07 13:00:43 +08:00
bobo.yang
021efac1d9 refactor: Update rewrite.py with Chinese prompts and symbol analysis
- Translate prompts to Chinese for better localization
- Add symbol analysis functionality to detect missing definitions
- Implement context code gathering for better refactoring results
- Add helper functions for project root detection and symbol definition lookup
2025-03-07 12:00:49 +08:00
bobo.yang
bb0ed153c7 remove /commit, use github|gitlab.commit replace it 2025-03-07 11:41:09 +08:00
bobo.yang
389ad70c2e docs: Add example output to commit message prompts
- Added example commit message format to GitHub prompt file
- Added example commit message format to GitLab prompt file
- Demonstrates proper structure with feature type and API details
2025-03-07 11:39:33 +08:00
bobo.yang
6b04c3de11 fix: Improve git push error handling and feedback
- Replace subprocess_check_output with subprocess_run for better error handling
- Add specific error messages and formatting for push failures
- Implement exit code when push fails to properly indicate failure
2025-03-07 11:38:29 +08:00
bobo.yang
e591361e69 style: Improve error message formatting for failed push
- Enhanced error output for branch determination failure by adding
double newline for better readability in terminal output
2025-03-07 11:10:38 +08:00
bobo.yang
bb1afee665 fix: Remove extra newlines in error message output
- Removed extra newlines from error message in push_changes function
- Simplified error output formatting for better readability
- Maintained consistent error handling pattern
2025-03-07 11:07:34 +08:00
bobo.yang
f6c4d52b90 fix: Improve error message formatting for branch detection failure
- Enhance readability of error message when current branch cannot be determined
- Add double newline after error message for better visual separation
- Maintain consistent output formatting with other status messages
2025-03-07 11:05:20 +08:00
bobo.yang
e36da6da6c fix: Remove extra newlines in error message output
- Modified error message in push_changes() to remove extra newlines
- Improved consistency in error message formatting
- Simplified stderr output for failed branch determination
2025-03-07 11:03:58 +08:00
bobo.yang
c307e1ae43 fix: Add newline after push failure message
- Updated error output in push_changes() to include newlines after failure
- Improves readability of error messages in the terminal output
- Maintains consistency with successful push message formatting
2025-03-07 11:02:59 +08:00
bobo.yang
1f158fb047 fix: Remove newline after push failure message
- Modified error output in push_changes() function to remove trailing newlines
- Keeps error messages more consistent with standard error formatting
- Improves log readability when capturing stderr output
2025-03-07 11:02:20 +08:00
bobo.yang
c59cd3fcb8 fix: Improve error message formatting for failed branch detection
- Enhanced error message display when current branch cannot be determined
- Added newline characters for better readability in console output
- Maintains consistent formatting with other status messages
2025-03-07 11:01:19 +08:00
bobo.yang
b5aa4b22ac style: Improve console output formatting in push_changes
- Add newlines after push status messages for better readability
- Ensure consistent formatting for success and error messages
- Update output formatting in git push operations
2025-03-07 11:00:41 +08:00
bobo.yang
316567c83e docs: Update commit message prompt format
- Added markdown codeblock format specification for responses
- Changed format of issue reference to use angle brackets
- Added instruction to only output the commit message codeblock
2025-03-07 10:51:16 +08:00
bobo.yang
2f24253997 feat: Add push functionality to commit workflow
- Added ask_for_push() function to prompt user for pushing changes
- Implemented push_changes() function to push commits to remote
- Updated workflow steps from 2 to 3 and improved command line args handling
2025-03-07 10:41:38 +08:00
bobo.yang
90d7e0b7b9 feat: Add push functionality to commit workflow
- Fixed Step markdown formatting in chatmark/step.py
- Added push capability with user confirmation after commit
- Improved command line argument handling with better defaults
2025-03-07 08:58:37 +08:00
bobo.yang
b0e7369929 fix lint errors 2024-11-14 15:04:27 +08:00
bobo.yang
2c1a10c4ce add gitlab workflows 2024-11-14 14:58:53 +08:00
bobo.yang
41a1de7bbb refactor: Replace os.system with subprocess_run in git add
- Replaced os.system with subprocess_run for git add command
- Updated import to include subprocess_run from git_api
- Ensured compatibility with existing git operations
2024-11-14 12:39:29 +08:00
bobo.yang
5585ff9fc2 fix lint error 2024-11-14 12:28:26 +08:00
bobo yang
2525010384 refactor: Replace subprocess calls with subprocess_check_output
- Replaced all instances of subprocess.check_output with subprocess_check_output
- Added subprocess_check_output function to handle current repo directory
- Updated git commands to use the new subprocess_check_output function
2024-11-14 12:23:09 +08:00
bobo
ced0e1b111 update readme 2024-07-19 14:12:34 +08:00
bobo
e03d1eb5dd docs: Add README for commit command and update YAML
- Add README.md explaining usage and steps of commit command
- Include optional issue closing feature in README
- Update command.yml to reference new README.md for help
2024-07-19 12:52:17 +08:00
bobo
1a7a272d08 feat: Add README files and update PR command structure
- Add README.md for PR command and its subcommands
- Update command.yml files to include help references
- Modify requirements.txt to use pr_env branch
- Add configuration options for PR inline review
2024-07-19 12:52:17 +08:00
bobo
4a3b29c15e update README.md 2024-07-19 10:07:42 +08:00
bobo
7c30ca2135 fix lint error 2024-07-18 16:22:22 +08:00
bobo
4e38d7785b feat: Add aider integration workflow command 2024-07-18 16:02:25 +08:00
bobo
c4352d8486 feat: Enhance fix_issue workflow with aider integration
- Add README instructions for fix_issue command usage
- Implement aider-based issue fixing when available
- Improve error handling and output formatting
- Refactor main function for better modularity
2024-07-18 16:01:08 +08:00
bobo
3980e6f996 feat: Add ask_issue workflow for automated lint error fixing
- Implement ask_issue command with README, command.yml, and main.py
- Create workflow to generate fix solutions using LLM
- Add functionality to extract and process diagnostics from IDE
2024-07-18 16:00:24 +08:00
bobo
7f0b440e42 chore: Add autoedit parameter to diff_apply method 2024-07-04 17:07:59 +08:00
bobo
8830931562 feat: Refactor fix_issue command to improve code readability and maintainability 2024-07-01 21:42:18 +08:00