fix: Add editLimit parameter to GraphQL query

Merge https://github.com/google/adk-python/pull/3771

Co-authored-by: Xuan Yang <xygoogle@google.com>
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/3771 from google:ryanaiagent-patch-1 a169e728af223594febc39299e046f2a195d606a
PiperOrigin-RevId: 839620767
This commit is contained in:
Rohit Yanamadala
2025-12-03 00:14:10 -08:00
committed by Copybara-Service
parent b638a48357
commit 76dc169a83
@@ -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