From 0fc32706b106e7f7f957f42cdb85a743a74be008 Mon Sep 17 00:00:00 2001 From: Rohit Yanamadala Date: Mon, 29 Dec 2025 19:17:29 -0800 Subject: [PATCH 1/2] fix(agent.py):Refactor to ignore adk-bot --- contributing/samples/adk_stale_agent/agent.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/contributing/samples/adk_stale_agent/agent.py b/contributing/samples/adk_stale_agent/agent.py index 2535f9cf45..11da964a78 100644 --- a/contributing/samples/adk_stale_agent/agent.py +++ b/contributing/samples/adk_stale_agent/agent.py @@ -49,6 +49,7 @@ BOT_ALERT_SIGNATURE = ( "**Notification:** The author has updated the issue description" ) +BOT_NAME = "adk-bot" # --- Global Cache --- _MAINTAINERS_CACHE: Optional[List[str]] = None @@ -246,8 +247,9 @@ def _build_history_timeline( if BOT_ALERT_SIGNATURE in c_body: if last_bot_alert_time is None or c_time > last_bot_alert_time: last_bot_alert_time = c_time + continue - if actor and not actor.endswith("[bot]"): + if actor and not actor.endswith("[bot]") and actor != BOT_NAME: # Use edit time if available, otherwise creation time e_time = c.get("lastEditedAt") actual_time = dateutil.parser.isoparse(e_time) if e_time else c_time @@ -263,7 +265,7 @@ def _build_history_timeline( if not e: continue actor = e.get("editor", {}).get("login") - if actor and not actor.endswith("[bot]"): + if actor and not actor.endswith("[bot]") and actor != BOT_NAME: history.append({ "type": "edited_description", "actor": actor, @@ -285,7 +287,7 @@ def _build_history_timeline( label_events.append(time_val) continue - if actor and not actor.endswith("[bot]"): + if actor and not actor.endswith("[bot]") and actor != BOT_NAME: pretty_type = ( "renamed_title" if etype == "RenamedTitleEvent" else "reopened" ) From f1500a94cb8c9d5090e9b1ef29690506120f7749 Mon Sep 17 00:00:00 2001 From: Rohit Yanamadala Date: Mon, 29 Dec 2025 19:31:56 -0800 Subject: [PATCH 2/2] refactor:autoformat.sh --- contributing/samples/adk_stale_agent/agent.py | 2 +- contributing/samples/gepa/experiment.py | 1 - contributing/samples/gepa/run_experiment.py | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/contributing/samples/adk_stale_agent/agent.py b/contributing/samples/adk_stale_agent/agent.py index 11da964a78..e9fbe49bdf 100644 --- a/contributing/samples/adk_stale_agent/agent.py +++ b/contributing/samples/adk_stale_agent/agent.py @@ -247,7 +247,7 @@ def _build_history_timeline( if BOT_ALERT_SIGNATURE in c_body: if last_bot_alert_time is None or c_time > last_bot_alert_time: last_bot_alert_time = c_time - continue + continue if actor and not actor.endswith("[bot]") and actor != BOT_NAME: # Use edit time if available, otherwise creation time diff --git a/contributing/samples/gepa/experiment.py b/contributing/samples/gepa/experiment.py index 2f5d03a772..f68b349d9c 100644 --- a/contributing/samples/gepa/experiment.py +++ b/contributing/samples/gepa/experiment.py @@ -43,7 +43,6 @@ from tau_bench.types import EnvRunResult from tau_bench.types import RunConfig import tau_bench_agent as tau_bench_agent_lib - import utils diff --git a/contributing/samples/gepa/run_experiment.py b/contributing/samples/gepa/run_experiment.py index cfd850b3a3..1bc4ee58c8 100644 --- a/contributing/samples/gepa/run_experiment.py +++ b/contributing/samples/gepa/run_experiment.py @@ -25,7 +25,6 @@ from absl import flags import experiment from google.genai import types - import utils _OUTPUT_DIR = flags.DEFINE_string(