-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat: improvements for Gitea integration #2071
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
base: main
Are you sure you want to change the base?
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Latest suggestions up to bf1cc50
Previous suggestionsSuggestions up to commit bf1cc50
Suggestions up to commit bf1cc50
Suggestions up to commit bf1cc50
Suggestions up to commit bf1cc50
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
@CodiumAI-Agent /improve |
1 similar comment
|
@CodiumAI-Agent /improve |
User description
Hello,
few improvements for Gitea integration mostly to catch the features from other integrations.
PR Type
Enhancement
Description
Rename
gitea_apptogiteain configuration for consistencyAdd PR ignore logic to filter PRs by repository, author, title, labels, and branches
Implement persistent comment support via
publish_persistent_commentmethodHonor
handle_push_triggerandpush_commandsimplementation for push eventsAdd repository cloning support with token authentication
Improve command handling with settings updates and auto-command execution
Diagram Walkthrough
File Walkthrough
gitea_provider.py
Add persistent comments and clone support with token authpr_agent/git_providers/gitea_provider.py
gitea_access_tokenas instance variable for reuse in cloneoperations
get_latest_commit_url()andget_comment_url()methods for URLretrieval
publish_persistent_comment()wrapper method for persistentcomment support
get_pr_id()method to generate PR identifierget_git_repo_url()method to construct repository clone URL_prepare_clone_url_with_token()method to embedauthentication token in clone URL
create_inline_comment()methodhashlibimportgitea_app.py
Add PR filtering and push command handling logicpr_agent/servers/gitea_app.py
should_process_pr_logic()function to filter PRs based onrepository, author, title, labels, and branches
_perform_commands_gitea()function to execute commands withsettings updates and auto-command support
handle_push_triggerandpush_commandssupport for pushevents
apply_repo_settings()/review --incrementalwith configurablepush_commandsremodule for regex pattern matching andupdate_settings_from_argsutilityasyncioimportconfiguration.toml
Rename gitea_app to gitea and add push_commandspr_agent/settings/configuration.toml
[gitea_app]to[gitea]forconsistency
push_commandsconfiguration array to[gitea]sectionurl,handle_push_trigger, andpr_commandssettings