Compare commits

...

50 Commits

Author SHA1 Message Date
boob.yang
c3de57a2b3
Merge pull request #145 from devchat-ai/update_test_api3
refactor: Remove redundant task query in test API upload command
2025-03-21 13:29:19 +00:00
bobo.yang
f2f0a10a9e refactor: Remove redundant task query in test API upload command
- Remove unnecessary API call to fetch tasks
- Simplify test execution flow by eliminating wait_for_task_done call
- Improve code efficiency in the test API upload command
2025-03-21 21:24:46 +08:00
long2ice
607ce67792
Merge pull request #144 from devchat-ai/update_test_api2
fix: Add flush=True to print statements and improve task status check
2025-03-21 11:35:34 +00:00
bobo.yang
42c4386562 fix: Add flush=True to print statements and improve task status check
- Added flush=True to print statements for better real-time logging
- Replaced single status check with a list of statuses to continue waiting
- Defined constants for task status values for better code readability
2025-03-21 19:28:49 +08:00
boob.yang
0be6ca7e33
Merge pull request #143 from devchat-ai/api-auth
refactor: get api auth id from docs
2025-03-21 10:11:57 +00:00
long2ice
21fe8dd34f refactor: Update delete_old_apidocs function to accept apidocs as a parameter
This commit modifies the delete_old_apidocs function to take a list of apidocs as an argument, ensuring it operates on the current set of API documentation. Additionally, it updates the main function to pass the retrieved apidocs when calling delete_old_apidocs.
2025-03-21 18:10:21 +08:00
boob.yang
7262e03ccf
Merge pull request #141 from devchat-ai/refactor-workflows-desc
refactor: Update command descriptions and remove unused workflow files
2025-03-12 08:49:23 +00:00
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
kagami
5ebcb808a3
Merge pull request #140 from devchat-ai/update_workflows
feat: Add workflow module and API endpoints for various functionalities
2025-03-11 06:53:42 +00: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
d40cc0f34b fix lint errors 2025-03-11 14:32:33 +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
7e15ab24cd add /refactor.api 2025-03-11 13:32:05 +08:00
bobo.yang
99b7aca0fc add /test.api.upload 2025-03-11 13:31:50 +08:00
bobo.yang
344fbff719 add /chatflow.ask and /chatflow.gen 2025-03-11 13:29:58 +08:00
bobo yang
1c0e5e045f feat: Add workflow module with command execution support
- Create workflow package with call module for script execution
- Implement workflow_call function to execute commands with arguments
- Add helper functions to locate and run workflow scripts in various paths
2025-03-11 13:26:53 +08:00
boob.yang
2a8accc06a
Merge pull request #137 from devchat-ai/update_commit_prompt
docs: Update commit message prompt format
2025-03-10 12:33:14 +00: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
boob.yang
4fdd536226
Merge pull request #139 from devchat-ai/github-username
feat: Add GitHub username retrieval function
2025-03-10 08:52:46 +00: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
boob.yang
e8d960794c
Merge pull request #138 from devchat-ai/issue-repo
feat: Enhance GitHub issue handling in commit workflow
2025-03-10 08:19:56 +00: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
boob.yang
06d707575e
Merge pull request #136 from devchat-ai/github-commit
feat: Add GitHub issue selection and auto-close functionality
2025-03-10 07:44:57 +00: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
kagami
44e9b7bd26
Merge pull request #134 from devchat-ai/update_commit
feat: Enhance git workflow with push functionality and improve error handling
2025-03-07 07:36:42 +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
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
153 changed files with 1885 additions and 921 deletions

View File

@ -0,0 +1,5 @@
description: 'Generate code task summary.'
input: optional
help: README.md
steps:
- run: $devchat_python $command_path/command.py "$input"

View File

@ -0,0 +1 @@
description: Root of github commands.

View File

@ -6,13 +6,20 @@ import sys
from devchat.llm import chat_completion_stream
from lib.chatmark import Checkbox, Form, TextEditor
from lib.chatmark import Button, Checkbox, Form, TextEditor
from lib.ide_service import IDEService
sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), ".."))
from common_util import assert_exit # noqa: E402
from git_api import get_issue_info, subprocess_check_output, subprocess_run
from git_api import (
get_github_repo,
get_github_repo_issues,
get_github_username,
get_issue_info,
subprocess_check_output,
subprocess_run,
)
diff_too_large_message_en = (
"Commit failed. The modified content is too long "
@ -286,7 +293,7 @@ def generate_commit_message_base_diff(user_input, diff, issue):
if (
not response["content"]
and response.get("error", None)
and f'{response["error"]}'.find("This model's maximum context length is") > 0
and f"{response['error']}".find("This model's maximum context length is") > 0
):
print(model_token_limit_error)
sys.exit(0)
@ -355,23 +362,112 @@ def check_git_installed():
return False
def ask_for_push():
"""
询问用户是否要推送(push)更改到远程仓库
Returns:
bool: 用户是否选择推送
"""
print(
"Step 3/3: Would you like to push your commit to the remote repository?",
end="\n\n",
flush=True,
)
button = Button(["Yes, push now", "No, I'll push later"])
button.render()
return button.clicked == 0 # 如果用户点击第一个按钮(Yes)则返回True
def push_changes():
"""
推送更改到远程仓库
Returns:
bool: 推送是否成功
"""
try:
current_branch = get_current_branch()
if not current_branch:
print(
"Could not determine current branch. Push failed.",
end="\n\n",
file=sys.stderr,
flush=True,
)
return False
print(f"Pushing changes to origin/{current_branch}...", end="\n\n", flush=True)
result = subprocess_run(
["git", "push", "origin", current_branch],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
text=True,
)
if result.returncode != 0:
print(f"Push failed: {result.stderr}", end="\n\n", flush=True)
return False
print("Push completed successfully.", end="\n\n", flush=True)
return True
except subprocess.CalledProcessError as e:
print(f"Push failed: {str(e)}", end="\n\n", file=sys.stderr, flush=True)
return False
except Exception as e:
print(
f"An unexpected error occurred: {str(e)}",
end="\n\n",
file=sys.stderr,
flush=True,
)
return False
def get_selected_issue_ids():
"""
获取用户选中的issue id
Returns:
list: 用户选中的issue id列表
"""
name = get_github_username()
issue_repo = get_github_repo(True)
issues = get_github_repo_issues(issue_repo, assignee=name, state="open")
if issues:
checkbox = Checkbox(
[f"#{issue['number']}: {issue['title']}" for issue in issues],
title="Select the issues you want to close",
)
checkbox.render()
return [issues[idx]["number"] for idx in checkbox.selections]
def main():
global language
try:
print("Let's follow the steps below.\n\n")
# Ensure enough command line arguments are provided
if len(sys.argv) < 3:
print("Usage: python script.py <user_input> <language>", file=sys.stderr, flush=True)
if len(sys.argv) < 2:
print(
"Usage: python script.py <user_input> <language>",
file=sys.stderr,
flush=True,
)
sys.exit(-1)
user_input = sys.argv[1]
language = "english"
if len(sys.argv) > 2:
language = sys.argv[2]
if not check_git_installed():
sys.exit(-1)
print(
"Step 1/2: Select the files you've changed that you wish to include in this commit, "
"Step 1/3: Select the files you've changed that you wish to include in this commit, "
"then click 'Submit'.",
end="\n\n",
flush=True,
@ -389,7 +485,7 @@ def main():
rebuild_stage_list(selected_files)
print(
"Step 2/2: Review the commit message I've drafted for you. "
"Step 2/3: Review the commit message I've drafted for you. "
"Edit it below if needed. Then click 'Commit' to proceed with "
"the commit using this message.",
end="\n\n",
@ -411,11 +507,27 @@ def main():
.replace("No specific issue to close", "")
.replace("No specific issue mentioned.", "")
)
# add closes #IssueNumber in commit message from issues from user selected
issue_ids = get_selected_issue_ids()
if issue_ids:
issue_repo = get_github_repo(True)
owner_repo = get_github_repo()
closes_issue_contents = []
for issue_id in issue_ids:
closes_issue_contents.append(
f"#{issue_id}" if owner_repo == issue_repo else f"{issue_repo}#{issue_id}"
)
commit_message["content"] += f"\n\nCloses {', '.join(closes_issue_contents)}"
commit_result = display_commit_message_and_commit(commit_message["content"])
if not commit_result:
print("Commit aborted.", flush=True)
else:
# 添加推送步骤
if ask_for_push():
if not push_changes():
print("Push failed.", flush=True)
sys.exit(-1)
print("Commit completed.", flush=True)
sys.exit(0)
except Exception as err:

View File

@ -6,23 +6,21 @@ Objective:** Generate a commit message that succinctly describes the codebase ch
3. **Closing Reference (Conditional):** Include the line `Closes #IssueNumber` only if a specific, relevant issue number has been mentioned in the user input.
**Response Format:**
```
Response should be in the following markdown codeblock format:
```commit
type: Title
- Detail message line 1
- Detail message line 2
- Detail message line 3
Closes #IssueNumber
```
Only append the \"Closes #IssueNumber\" if the user input explicitly references an issue to close.
Only output the commit message codeblock, don't include any other text.
**Constraints:**
- Exclude markdown code block indicators (```) and the placeholder \"commit_message\" from your response.
- Follow commit message best practices:
- Limit the title length to 50 characters.
- Limit each summary line to 72 characters.
- If the precise issue number is not known or not stated by the user, do not include the closing reference.
**User Input:** `{__USER_INPUT__}`
@ -37,3 +35,11 @@ Related issue:
{__ISSUE__}
Utilize the provided format to craft a commit message that adheres to the stipulated criteria.
example output:
```commit
feature: add update user info API
- add post method api /user/update
- implement update user info logic
```

View File

@ -203,7 +203,10 @@ def check_git_installed():
"""
try:
subprocess_run(
["git", "--version"], check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE
["git", "--version"],
check=True,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
return True
except subprocess.CalledProcessError:
@ -304,7 +307,8 @@ def get_parent_branch():
try:
# 使用git命令获取当前分支的父分支引用
result = subprocess_check_output(
["git", "rev-parse", "--abbrev-ref", f"{current_branch}@{1}"], stderr=subprocess.STDOUT
["git", "rev-parse", "--abbrev-ref", f"{current_branch}@{1}"],
stderr=subprocess.STDOUT,
).strip()
# 将结果从bytes转换为str
parent_branch_ref = result.decode("utf-8")
@ -394,7 +398,10 @@ def get_commit_messages(base_branch):
def create_pull_request(title, body, head, base, repo_name):
url = f"{GITHUB_API_URL}/repos/{repo_name}/pulls"
print("url:", url, end="\n\n")
headers = {"Authorization": f"token {GITHUB_ACCESS_TOKEN}", "Content-Type": "application/json"}
headers = {
"Authorization": f"token {GITHUB_ACCESS_TOKEN}",
"Content-Type": "application/json",
}
payload = {"title": title, "body": body, "head": head, "base": base}
response = requests.post(url, headers=headers, data=json.dumps(payload))
if response.status_code == 201:
@ -479,7 +486,10 @@ def get_recently_pr(repo):
def update_pr(pr_number, title, body, repo_name):
url = f"{GITHUB_API_URL}/repos/{repo_name}/pulls/{pr_number}"
headers = {"Authorization": f"token {GITHUB_ACCESS_TOKEN}", "Content-Type": "application/json"}
headers = {
"Authorization": f"token {GITHUB_ACCESS_TOKEN}",
"Content-Type": "application/json",
}
payload = {"title": title, "body": body}
response = requests.patch(url, headers=headers, data=json.dumps(payload))
@ -526,3 +536,52 @@ def save_last_base_branch(base_branch=None):
base_branch = get_current_branch()
project_config_path = os.path.join(os.getcwd(), ".chat", ".workflow_config.json")
save_config_item(project_config_path, "last_base_branch", base_branch)
def get_github_username():
url = f"{GITHUB_API_URL}/user"
headers = {
"Authorization": f"token {GITHUB_ACCESS_TOKEN}",
"Accept": "application/vnd.github.v3+json",
}
response = requests.get(url, headers=headers)
return response.json()["login"]
def get_github_repo_issues(
owner_repo,
milestone=None,
state=None,
assignee=None,
creator=None,
mentioned=None,
labels=None,
sort=None,
direction=None,
since=None,
per_page=None,
page=None,
):
url = f"{GITHUB_API_URL}/repos/{owner_repo}/issues"
headers = {
"Authorization": f"token {GITHUB_ACCESS_TOKEN}",
"Accept": "application/vnd.github.v3+json",
}
params = {
"milestone": milestone,
"state": state,
"assignee": assignee,
"creator": creator,
"mentioned": mentioned,
"labels": labels,
"sort": sort,
"direction": direction,
"since": since,
"per_page": per_page,
"page": page,
}
response = requests.get(url, headers=headers, params=params)
if response.status_code == 200:
return response.json()
else:
return None

View File

@ -1,4 +1,4 @@
description: 'Create new issue.'
description: 'List issue tasks.'
input: required
help: README.md
steps:

View File

@ -1,4 +1,4 @@
description: 'Create new issue.'
description: 'Update issue tasks.'
input: required
help: README.md
steps:

View File

@ -1,4 +1,4 @@
description: 'Create new PR.'
description: 'Update PR.'
input: required
help: README.md
steps:

View File

@ -0,0 +1,5 @@
description: 'Generate code task summary.'
input: optional
help: README.md
steps:
- run: $devchat_python $command_path/command.py "$input"

View File

@ -0,0 +1 @@
description: Root of gitlab commands.

View File

@ -6,7 +6,7 @@ import sys
from devchat.llm import chat_completion_stream
from lib.chatmark import Checkbox, Form, TextEditor
from lib.chatmark import Button, Checkbox, Form, TextEditor
from lib.ide_service import IDEService
sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), ".."))
@ -286,7 +286,7 @@ def generate_commit_message_base_diff(user_input, diff, issue):
if (
not response["content"]
and response.get("error", None)
and f'{response["error"]}'.find("This model's maximum context length is") > 0
and f"{response['error']}".find("This model's maximum context length is") > 0
):
print(model_token_limit_error)
sys.exit(0)
@ -355,23 +355,84 @@ def check_git_installed():
return False
def ask_for_push():
"""
询问用户是否要推送(push)更改到远程仓库
Returns:
bool: 用户是否选择推送
"""
print(
"Step 3/3: Would you like to push your commit to the remote repository?",
end="\n\n",
flush=True,
)
button = Button(["Yes, push now", "No, I'll push later"])
button.render()
return button.clicked == 0 # 如果用户点击第一个按钮(Yes)则返回True
def push_changes():
"""
推送更改到远程仓库
Returns:
bool: 推送是否成功
"""
try:
current_branch = get_current_branch()
if not current_branch:
print(
"Could not determine current branch. Push failed.",
end="\n\n",
file=sys.stderr,
flush=True,
)
return False
print(f"Pushing changes to origin/{current_branch}...", end="\n\n", flush=True)
result = subprocess_run(
["git", "push", "origin", current_branch],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
text=True,
)
if result.returncode != 0:
print(f"Push failed: {result.stderr}", end="\n\n", flush=True)
return False
print("Push completed successfully.", end="\n\n", flush=True)
return True
except subprocess.CalledProcessError as e:
print(f"Push failed: {str(e)}", end="\n\n", file=sys.stderr, flush=True)
return False
except Exception as e:
print(f"An unexpected error occurred: {str(e)}", end="\n\n", file=sys.stderr, flush=True)
return False
def main():
global language
try:
print("Let's follow the steps below.\n\n")
# Ensure enough command line arguments are provided
if len(sys.argv) < 3:
if len(sys.argv) < 2:
print("Usage: python script.py <user_input> <language>", file=sys.stderr, flush=True)
sys.exit(-1)
user_input = sys.argv[1]
language = "english"
if len(sys.argv) > 2:
language = sys.argv[2]
if not check_git_installed():
sys.exit(-1)
print(
"Step 1/2: Select the files you've changed that you wish to include in this commit, "
"Step 1/3: Select the files you've changed that you wish to include in this commit, "
"then click 'Submit'.",
end="\n\n",
flush=True,
@ -389,7 +450,7 @@ def main():
rebuild_stage_list(selected_files)
print(
"Step 2/2: Review the commit message I've drafted for you. "
"Step 2/3: Review the commit message I've drafted for you. "
"Edit it below if needed. Then click 'Commit' to proceed with "
"the commit using this message.",
end="\n\n",
@ -416,6 +477,12 @@ def main():
if not commit_result:
print("Commit aborted.", flush=True)
else:
# 添加推送步骤
if ask_for_push():
if not push_changes():
print("Push failed.", flush=True)
sys.exit(-1)
print("Commit completed.", flush=True)
sys.exit(0)
except Exception as err:

View File

@ -6,16 +6,18 @@ Objective:** Generate a commit message that succinctly describes the codebase ch
3. **Closing Reference (Conditional):** Include the line `Closes #IssueNumber` only if a specific, relevant issue number has been mentioned in the user input.
**Response Format:**
```
Response should be in the following markdown codeblock format:
```commit
type: Title
- Detail message line 1
- Detail message line 2
- Detail message line 3
Closes #IssueNumber
Closes <#IssueNumber>
```
Only append the \"Closes #IssueNumber\" if the user input explicitly references an issue to close.
Only output the commit message codeblock, don't include any other text.
**Constraints:**
- Exclude markdown code block indicators (```) and the placeholder \"commit_message\" from your response.
@ -37,3 +39,11 @@ Related issue:
{__ISSUE__}
Utilize the provided format to craft a commit message that adheres to the stipulated criteria.
example output:
```commit
feature: add update user info API
- add post method api /user/update
- implement update user info logic
```

View File

@ -1,4 +1,4 @@
description: 'Create new issue.'
description: 'List issue tasks.'
input: required
help: README.md
steps:

View File

@ -0,0 +1,5 @@
description: 'Update issue tasks.'
input: required
help: README.md
steps:
- run: $devchat_python $command_path/command.py "$input"

View File

@ -1,4 +1,4 @@
description: 'Create new PR.'
description: 'Update PR.'
input: required
help: README.md
steps:

View File

@ -1,6 +1,6 @@
# pr.improve
**/pr.improve命令用于生成PR的代码建议。**
# pr.custom_suggestions
**/pr.custom_suggestions命令用于生成PR的代码建议。**
使用方式为:/pr.improve <PR_URL>, 例如:
/pr.improve https://github.com/devchat-ai/devchat/pull/301

View File

@ -1,4 +1,4 @@
description: "review pr"
description: "Generate custom suggestions for PR."
input: required
help: README.md
steps:

Some files were not shown because too many files have changed in this diff Show More