Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
miles-kt-inkeep committed Feb 15, 2024
1 parent 6a24789 commit 10d8bf4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 (
Expand All @@ -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()]
Expand Down

0 comments on commit 10d8bf4

Please sign in to comment.