Skip to content

Commit 76dc169

Browse files
ryanaiagentxuanyang15
authored andcommitted
fix: Add editLimit parameter to GraphQL query
Merge #3771 Co-authored-by: Xuan Yang <xygoogle@google.com> COPYBARA_INTEGRATE_REVIEW=#3771 from google:ryanaiagent-patch-1 a169e72 PiperOrigin-RevId: 839620767
1 parent b638a48 commit 76dc169

File tree

1 file changed

+4
-4
lines changed
  • contributing/samples/adk_stale_agent

1 file changed

+4
-4
lines changed

contributing/samples/adk_stale_agent/agent.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,13 @@ def _fetch_graphql_data(item_number: int) -> Dict[str, Any]:
135135
RequestException: If the GraphQL query returns errors or the issue is not found.
136136
"""
137137
query = """
138-
query($owner: String!, $name: String!, $number: Int!, $commentLimit: Int!, $timelineLimit: Int!) {
138+
query($owner: String!, $name: String!, $number: Int!, $commentLimit: Int!, $timelineLimit: Int!, $editLimit: Int!) {
139139
repository(owner: $owner, name: $name) {
140140
issue(number: $number) {
141141
author { login }
142142
createdAt
143143
labels(first: 20) { nodes { name } }
144-
144+
145145
comments(last: $commentLimit) {
146146
nodes {
147147
author { login }
@@ -150,14 +150,14 @@ def _fetch_graphql_data(item_number: int) -> Dict[str, Any]:
150150
lastEditedAt
151151
}
152152
}
153-
153+
154154
userContentEdits(last: $editLimit) {
155155
nodes {
156156
editor { login }
157157
editedAt
158158
}
159159
}
160-
160+
161161
timelineItems(itemTypes: [LABELED_EVENT, RENAMED_TITLE_EVENT, REOPENED_EVENT], last: $timelineLimit) {
162162
nodes {
163163
__typename

0 commit comments

Comments
 (0)