mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 02:45:18 +00:00
code review
This commit is contained in:
parent
46c47e10fc
commit
5886baeb26
1 changed files with 1 additions and 3 deletions
|
|
@ -144,7 +144,7 @@ async def _perform_commands_bitbucket(commands_conf: str, agent: PRAgent, api_ur
|
||||||
if commands_conf == "push_commands":
|
if commands_conf == "push_commands":
|
||||||
if not get_settings().get("bitbucket_app.handle_push_trigger"):
|
if not get_settings().get("bitbucket_app.handle_push_trigger"):
|
||||||
get_logger().info(
|
get_logger().info(
|
||||||
"Bitbucket push trigger handling disabled via 'bitbucket_app.handle_push_trigger'; skipping push commands")
|
"Bitbucket push trigger handling disabled via config; skipping push commands")
|
||||||
return
|
return
|
||||||
if data.get("event", "") == "pullrequest:created":
|
if data.get("event", "") == "pullrequest:created":
|
||||||
if not should_process_pr_logic(data):
|
if not should_process_pr_logic(data):
|
||||||
|
|
@ -278,7 +278,6 @@ async def handle_github_webhooks(background_tasks: BackgroundTasks, request: Req
|
||||||
log_context["event"] = "pull_request"
|
log_context["event"] = "pull_request"
|
||||||
if pr_url:
|
if pr_url:
|
||||||
with get_logger().contextualize(**log_context):
|
with get_logger().contextualize(**log_context):
|
||||||
apply_repo_settings(pr_url)
|
|
||||||
if get_identity_provider().verify_eligibility("bitbucket",
|
if get_identity_provider().verify_eligibility("bitbucket",
|
||||||
sender_id, pr_url) is not Eligibility.NOT_ELIGIBLE:
|
sender_id, pr_url) is not Eligibility.NOT_ELIGIBLE:
|
||||||
if get_settings().get("bitbucket_app.pr_commands"):
|
if get_settings().get("bitbucket_app.pr_commands"):
|
||||||
|
|
@ -289,7 +288,6 @@ async def handle_github_webhooks(background_tasks: BackgroundTasks, request: Req
|
||||||
log_context["event"] = "pull_request"
|
log_context["event"] = "pull_request"
|
||||||
if pr_url:
|
if pr_url:
|
||||||
with get_logger().contextualize(**log_context):
|
with get_logger().contextualize(**log_context):
|
||||||
apply_repo_settings(pr_url)
|
|
||||||
if get_identity_provider().verify_eligibility("bitbucket",
|
if get_identity_provider().verify_eligibility("bitbucket",
|
||||||
sender_id, pr_url) is not Eligibility.NOT_ELIGIBLE:
|
sender_id, pr_url) is not Eligibility.NOT_ELIGIBLE:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue