-
Notifications
You must be signed in to change notification settings - Fork 745
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preserve User-Added Labels in Pull Requests #433
Conversation
PR Analysis
PR Feedback
How to use
|
PR Analysis
PR Feedback
|
Keep user labels
PR Type:
Enhancement
PR Description:
This PR introduces a feature to preserve user-added labels in pull requests. The main changes include:
get_user_labels
has been added inpr_agent/algo/utils.py
to filter out labels added by the user.run
methods inpr_agent/tools/pr_description.py
andpr_agent/tools/pr_generate_labels.py
have been updated to useget_user_labels
function to keep user-added labels.pr_agent/settings/pr_description_prompts.toml
to accommodate the new changes.PR Main Files Walkthrough:
files:
pr_agent/algo/utils.py
: Added a new functionget_user_labels
to filter out labels added by the user.pr_agent/tools/pr_description.py
: Updated therun
method to useget_user_labels
function to keep user-added labels when publishing the PR description.pr_agent/tools/pr_generate_labels.py
: Updated therun
method to useget_user_labels
function to keep user-added labels when generating PR labels.pr_agent/settings/pr_description_prompts.toml
: Minor changes to accommodate the new changes related to user labels.