From 10d8bf4e46ecabe7fc9770470ab3f9dcac037859 Mon Sep 17 00:00:00 2001 From: miles-kt-inkeep Date: Wed, 14 Feb 2024 19:53:08 -0500 Subject: [PATCH] test --- entrypoint.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/entrypoint.py b/entrypoint.py index cc6c02b..a66e6e6 100644 --- a/entrypoint.py +++ b/entrypoint.py @@ -59,6 +59,7 @@ def main(): """ source_id = get_actions_input("source-id") + print(source_id) api_key = get_actions_input("api-key") # Prepare the JSON payload @@ -86,6 +87,8 @@ def main(): graphql_endpoint, headers=headers, json=query_payload ) + print(query_response.json()) + display_name = query_response.json()["data"]["source"]["displayName"] if ( @@ -103,7 +106,7 @@ def main(): print(f"No PR found for commit {sha}") return - new_comment = f"""![Inkeep Logo](https://storage.googleapis.com/public_inkeep_assetts/inkeep_logo_16h.png) [Inkeep](https://inkeep.com) AI search and chat service is syncing content for source '{query_response.text}'""" + new_comment = f"""![Inkeep Logo](https://storage.googleapis.com/public_inkeep_assetts/inkeep_logo_16h.png) [Inkeep](https://inkeep.com) AI search and chat service is syncing content for source '{display_name}'""" # Check for duplicated comment old_comments = [c.body for c in pr.get_issue_comments()]