From 07d916c83103c41b8ce32bb39715e664127dece5 Mon Sep 17 00:00:00 2001 From: long2ice Date: Wed, 12 Mar 2025 16:36:15 +0800 Subject: [PATCH] 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 --- community/aider/{command.yml => command.yml.bak} | 0 community/github/code_task_summary/command.yml | 2 +- community/github/command.yml | 2 +- community/github/list_issue_tasks/command.yml | 2 +- community/github/update_issue_tasks/command.yml | 2 +- community/github/update_pr/command.yml | 2 +- community/gitlab/code_task_summary/command.yml | 2 +- community/gitlab/command.yml | 2 +- community/gitlab/list_issue_tasks/command.yml | 2 +- community/gitlab/update_issue_tasks/command.yml | 2 +- community/gitlab/update_pr/command.yml | 2 +- community/pr/{command.yml => command.yml.bak} | 0 community/pr/custom_suggestions/README.md | 4 ++-- community/pr/custom_suggestions/command.yml | 2 +- community/pr/describe/command.yml | 2 +- community/pr/improve/command.yml | 2 +- community/refactor/api/command.yml | 2 +- community/test/api/config/command.yml | 2 +- community/test/api/upload/command.yml | 2 +- merico/ask-code/{command.yml => command.yml.bak} | 0 merico/chatflow/ask/command.yml | 2 +- merico/chatflow/gen/command.yml | 2 +- 22 files changed, 20 insertions(+), 20 deletions(-) rename community/aider/{command.yml => command.yml.bak} (100%) rename community/pr/{command.yml => command.yml.bak} (100%) rename merico/ask-code/{command.yml => command.yml.bak} (100%) diff --git a/community/aider/command.yml b/community/aider/command.yml.bak similarity index 100% rename from community/aider/command.yml rename to community/aider/command.yml.bak diff --git a/community/github/code_task_summary/command.yml b/community/github/code_task_summary/command.yml index bb24dea..3e98f68 100644 --- a/community/github/code_task_summary/command.yml +++ b/community/github/code_task_summary/command.yml @@ -1,4 +1,4 @@ -description: 'Create new branch based current branch, and checkout new branch.' +description: 'Generate code task summary.' input: optional help: README.md steps: diff --git a/community/github/command.yml b/community/github/command.yml index fe5c932..f4af57b 100644 --- a/community/github/command.yml +++ b/community/github/command.yml @@ -1 +1 @@ -description: Root of git commands. \ No newline at end of file +description: Root of github commands. \ No newline at end of file diff --git a/community/github/list_issue_tasks/command.yml b/community/github/list_issue_tasks/command.yml index b025408..1d5a33c 100644 --- a/community/github/list_issue_tasks/command.yml +++ b/community/github/list_issue_tasks/command.yml @@ -1,4 +1,4 @@ -description: 'Create new issue.' +description: 'List issue tasks.' input: required help: README.md steps: diff --git a/community/github/update_issue_tasks/command.yml b/community/github/update_issue_tasks/command.yml index b025408..3ca56f8 100644 --- a/community/github/update_issue_tasks/command.yml +++ b/community/github/update_issue_tasks/command.yml @@ -1,4 +1,4 @@ -description: 'Create new issue.' +description: 'Update issue tasks.' input: required help: README.md steps: diff --git a/community/github/update_pr/command.yml b/community/github/update_pr/command.yml index 878fd1d..b3d6296 100644 --- a/community/github/update_pr/command.yml +++ b/community/github/update_pr/command.yml @@ -1,4 +1,4 @@ -description: 'Create new PR.' +description: 'Update PR.' input: required help: README.md steps: diff --git a/community/gitlab/code_task_summary/command.yml b/community/gitlab/code_task_summary/command.yml index bb24dea..3e98f68 100644 --- a/community/gitlab/code_task_summary/command.yml +++ b/community/gitlab/code_task_summary/command.yml @@ -1,4 +1,4 @@ -description: 'Create new branch based current branch, and checkout new branch.' +description: 'Generate code task summary.' input: optional help: README.md steps: diff --git a/community/gitlab/command.yml b/community/gitlab/command.yml index fe5c932..b7d8e9c 100644 --- a/community/gitlab/command.yml +++ b/community/gitlab/command.yml @@ -1 +1 @@ -description: Root of git commands. \ No newline at end of file +description: Root of gitlab commands. \ No newline at end of file diff --git a/community/gitlab/list_issue_tasks/command.yml b/community/gitlab/list_issue_tasks/command.yml index b025408..1d5a33c 100644 --- a/community/gitlab/list_issue_tasks/command.yml +++ b/community/gitlab/list_issue_tasks/command.yml @@ -1,4 +1,4 @@ -description: 'Create new issue.' +description: 'List issue tasks.' input: required help: README.md steps: diff --git a/community/gitlab/update_issue_tasks/command.yml b/community/gitlab/update_issue_tasks/command.yml index b025408..3ca56f8 100644 --- a/community/gitlab/update_issue_tasks/command.yml +++ b/community/gitlab/update_issue_tasks/command.yml @@ -1,4 +1,4 @@ -description: 'Create new issue.' +description: 'Update issue tasks.' input: required help: README.md steps: diff --git a/community/gitlab/update_pr/command.yml b/community/gitlab/update_pr/command.yml index 878fd1d..b3d6296 100644 --- a/community/gitlab/update_pr/command.yml +++ b/community/gitlab/update_pr/command.yml @@ -1,4 +1,4 @@ -description: 'Create new PR.' +description: 'Update PR.' input: required help: README.md steps: diff --git a/community/pr/command.yml b/community/pr/command.yml.bak similarity index 100% rename from community/pr/command.yml rename to community/pr/command.yml.bak diff --git a/community/pr/custom_suggestions/README.md b/community/pr/custom_suggestions/README.md index 9b584af..0cb9a50 100644 --- a/community/pr/custom_suggestions/README.md +++ b/community/pr/custom_suggestions/README.md @@ -1,6 +1,6 @@ -# pr.improve -**/pr.improve命令用于生成PR的代码建议。** +# pr.custom_suggestions +**/pr.custom_suggestions命令用于生成PR的代码建议。** 使用方式为:/pr.improve , 例如: /pr.improve https://github.com/devchat-ai/devchat/pull/301 diff --git a/community/pr/custom_suggestions/command.yml b/community/pr/custom_suggestions/command.yml index 39a5333..22f19f2 100644 --- a/community/pr/custom_suggestions/command.yml +++ b/community/pr/custom_suggestions/command.yml @@ -1,4 +1,4 @@ -description: "review pr" +description: "Generate custom suggestions for PR." input: required help: README.md steps: diff --git a/community/pr/describe/command.yml b/community/pr/describe/command.yml index a5f7d63..74f6b4d 100644 --- a/community/pr/describe/command.yml +++ b/community/pr/describe/command.yml @@ -1,4 +1,4 @@ -description: "review pr" +description: "Describe PR." input: required help: README.md steps: diff --git a/community/pr/improve/command.yml b/community/pr/improve/command.yml index db9a83a..ac3f3ab 100644 --- a/community/pr/improve/command.yml +++ b/community/pr/improve/command.yml @@ -1,4 +1,4 @@ -description: "review pr" +description: "Improve PR." input: required help: README.md steps: diff --git a/community/refactor/api/command.yml b/community/refactor/api/command.yml index 4f58f27..e79ad42 100644 --- a/community/refactor/api/command.yml +++ b/community/refactor/api/command.yml @@ -1,4 +1,4 @@ -description: 对选中代码进行API重构 +description: Refactor for selected api. input: required help: README.md steps: diff --git a/community/test/api/config/command.yml b/community/test/api/config/command.yml index 00892aa..569f2fc 100644 --- a/community/test/api/config/command.yml +++ b/community/test/api/config/command.yml @@ -1,4 +1,4 @@ -description: '配置 API 测试所需的全局和仓库相关设置' +description: 'Configure global and repository-specific settings for API testing.' help: README.md steps: - run: $devchat_python $command_path/command.py \ No newline at end of file diff --git a/community/test/api/upload/command.yml b/community/test/api/upload/command.yml index 26f9fa9..5671768 100644 --- a/community/test/api/upload/command.yml +++ b/community/test/api/upload/command.yml @@ -1,4 +1,4 @@ -description: 上传 API 文档,生成目标 API 的测试用例和测试脚本并执行测试代码。输入形式为:APIPATH METHOD API重构描述 +description: 'Upload API documentation, generate test cases and test scripts for the target API, and execute the test code. Input format: APIPATH METHOD API_REFACTOR_DESCRIPTION' input: required steps: - run: $devchat_python $command_path/command.py "$input" diff --git a/merico/ask-code/command.yml b/merico/ask-code/command.yml.bak similarity index 100% rename from merico/ask-code/command.yml rename to merico/ask-code/command.yml.bak diff --git a/merico/chatflow/ask/command.yml b/merico/chatflow/ask/command.yml index 5d8d5be..edea20a 100644 --- a/merico/chatflow/ask/command.yml +++ b/merico/chatflow/ask/command.yml @@ -1,4 +1,4 @@ -description: 生成工作流命令,输入命令信息 +description: 'Generate workflow command, input command information.' input: required steps: - run: $devchat_python $command_path/command.py "$input" \ No newline at end of file diff --git a/merico/chatflow/gen/command.yml b/merico/chatflow/gen/command.yml index 5d8d5be..edea20a 100644 --- a/merico/chatflow/gen/command.yml +++ b/merico/chatflow/gen/command.yml @@ -1,4 +1,4 @@ -description: 生成工作流命令,输入命令信息 +description: 'Generate workflow command, input command information.' input: required steps: - run: $devchat_python $command_path/command.py "$input" \ No newline at end of file