You've already forked adk-python
mirror of
https://github.com/encounter/adk-python.git
synced 2026-03-30 10:57:20 -07:00
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:
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
|
||||
|
||||
Reference in New Issue
Block a user