ci: Add state info for PR triaging agent

PiperOrigin-RevId: 820340584
This commit is contained in:
Xuan Yang
2025-10-16 13:07:18 -07:00
committed by Copybara-Service
parent 5a543c00df
commit 9dc00360e3
2 changed files with 6 additions and 0 deletions
@@ -69,8 +69,10 @@ def get_pull_request_details(pr_number: int) -> str:
repository(owner: $owner, name: $repo) {
pullRequest(number: $prNumber) {
id
number
title
body
state
author {
login
}
@@ -13,6 +13,7 @@
# limitations under the License.
import asyncio
import logging
import time
from adk_pr_triaging_agent import agent
@@ -22,10 +23,13 @@ from adk_pr_triaging_agent.settings import REPO
from adk_pr_triaging_agent.utils import call_agent_async
from adk_pr_triaging_agent.utils import parse_number_string
from google.adk.runners import InMemoryRunner
from google.adk.utils import logs
APP_NAME = "adk_pr_triaging_app"
USER_ID = "adk_pr_triaging_user"
logs.setup_adk_logger(level=logging.DEBUG)
async def main():
runner = InMemoryRunner(