forked from qodo-ai/pr-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request qodo-ai#509 from Codium-ai/trlabeling_files_extended
Enhancement of PR Description and Labeling Features
- Loading branch information
Showing
12 changed files
with
188 additions
and
34 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
commands_text = "> **/review**: Request a review of your Pull Request.\n" \ | ||
"> **/describe**: Update the PR title and description based on the contents of the PR.\n" \ | ||
"> **/improve [--extended]**: Suggest code improvements. Extended mode provides a higher quality feedback.\n" \ | ||
"> **/ask \\<QUESTION\\>**: Ask a question about the PR.\n" \ | ||
"> **/update_changelog**: Update the changelog based on the PR's contents.\n" \ | ||
"> **/add_docs**: Generate docstring for new components introduced in the PR.\n" \ | ||
"> **/generate_labels**: Generate labels for the PR based on the PR's contents.\n" \ | ||
commands_text = "> **/review**: Request a review of your Pull Request. \n" \ | ||
"> **/describe**: Update the PR title and description based on the contents of the PR. \n" \ | ||
"> **/improve [--extended]**: Suggest code improvements. Extended mode provides a higher quality feedback. \n" \ | ||
"> **/ask \\<QUESTION\\>**: Ask a question about the PR. \n" \ | ||
"> **/update_changelog**: Update the changelog based on the PR's contents. \n" \ | ||
"> **/add_docs**: Generate docstring for new components introduced in the PR. \n" \ | ||
"> **/generate_labels**: Generate labels for the PR based on the PR's contents. \n" \ | ||
"> see the [tools guide](https://github.com/Codium-ai/pr-agent/blob/main/docs/TOOLS_GUIDE.md) for more details.\n\n" \ | ||
">To edit any configuration parameter from the [configuration.toml](https://github.com/Codium-ai/pr-agent/blob/main/pr_agent/settings/configuration.toml), add --config_path=new_value.\n" \ | ||
">For example: /review --pr_reviewer.extra_instructions=\"focus on the file: ...\" \n" \ | ||
">To list the possible configuration parameters, add a **/config** comment.\n" \ | ||
">To edit any configuration parameter from the [configuration.toml](https://github.com/Codium-ai/pr-agent/blob/main/pr_agent/settings/configuration.toml), add --config_path=new_value. \n" \ | ||
">For example: /review --pr_reviewer.extra_instructions=\"focus on the file: ...\" \n" \ | ||
">To list the possible configuration parameters, add a **/config** comment. \n" \ | ||
|
||
|
||
def bot_help_text(user: str): | ||
return f"> Tag me in a comment '@{user}' and add one of the following commands:\n" + commands_text | ||
return f"> Tag me in a comment '@{user}' and add one of the following commands: \n" + commands_text | ||
|
||
|
||
actions_help_text = "> To invoke the PR-Agent, add a comment using one of the following commands:\n" + \ | ||
actions_help_text = "> To invoke the PR-Agent, add a comment using one of the following commands: \n" + \ | ||
commands_text |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,7 +57,6 @@ PR Analysis: | |
enum: | ||
- Bug fix | ||
- Tests | ||
- Refactoring | ||
- Enhancement | ||
- Documentation | ||
- Other | ||
|
Oops, something went wrong.