Skip to content

Commit 9dc0036

Browse files
xuanyang15copybara-github
authored andcommitted
ci: Add state info for PR triaging agent
PiperOrigin-RevId: 820340584
1 parent 5a543c0 commit 9dc0036

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

contributing/samples/adk_pr_triaging_agent/agent.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,10 @@ def get_pull_request_details(pr_number: int) -> str:
6969
repository(owner: $owner, name: $repo) {
7070
pullRequest(number: $prNumber) {
7171
id
72+
number
7273
title
7374
body
75+
state
7476
author {
7577
login
7678
}

contributing/samples/adk_pr_triaging_agent/main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# limitations under the License.
1414

1515
import asyncio
16+
import logging
1617
import time
1718

1819
from adk_pr_triaging_agent import agent
@@ -22,10 +23,13 @@
2223
from adk_pr_triaging_agent.utils import call_agent_async
2324
from adk_pr_triaging_agent.utils import parse_number_string
2425
from google.adk.runners import InMemoryRunner
26+
from google.adk.utils import logs
2527

2628
APP_NAME = "adk_pr_triaging_app"
2729
USER_ID = "adk_pr_triaging_user"
2830

31+
logs.setup_adk_logger(level=logging.DEBUG)
32+
2933

3034
async def main():
3135
runner = InMemoryRunner(

0 commit comments

Comments
 (0)