From 76dc169a83065ee10283d54253164e04f712ea5f Mon Sep 17 00:00:00 2001 From: Rohit Yanamadala Date: Wed, 3 Dec 2025 00:14:10 -0800 Subject: [PATCH] fix: Add editLimit parameter to GraphQL query Merge https://github.com/google/adk-python/pull/3771 Co-authored-by: Xuan Yang COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/3771 from google:ryanaiagent-patch-1 a169e728af223594febc39299e046f2a195d606a PiperOrigin-RevId: 839620767 --- contributing/samples/adk_stale_agent/agent.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contributing/samples/adk_stale_agent/agent.py b/contributing/samples/adk_stale_agent/agent.py index 5235e035..8769adc1 100644 --- a/contributing/samples/adk_stale_agent/agent.py +++ b/contributing/samples/adk_stale_agent/agent.py @@ -135,13 +135,13 @@ def _fetch_graphql_data(item_number: int) -> Dict[str, Any]: RequestException: If the GraphQL query returns errors or the issue is not found. """ query = """ - query($owner: String!, $name: String!, $number: Int!, $commentLimit: Int!, $timelineLimit: Int!) { + query($owner: String!, $name: String!, $number: Int!, $commentLimit: Int!, $timelineLimit: Int!, $editLimit: Int!) { repository(owner: $owner, name: $name) { issue(number: $number) { author { login } createdAt labels(first: 20) { nodes { name } } - + comments(last: $commentLimit) { nodes { author { login } @@ -150,14 +150,14 @@ def _fetch_graphql_data(item_number: int) -> Dict[str, Any]: lastEditedAt } } - + userContentEdits(last: $editLimit) { nodes { editor { login } editedAt } } - + timelineItems(itemTypes: [LABELED_EVENT, RENAMED_TITLE_EVENT, REOPENED_EVENT], last: $timelineLimit) { nodes { __typename