aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/teams_connector.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/teams_connector.py b/tools/teams_connector.py
index 7f84d6d..75d502e 100644
--- a/tools/teams_connector.py
+++ b/tools/teams_connector.py
@@ -84,10 +84,10 @@ class TeamsConnector:
f"*")
# Retrieve an AI analysis of the failure from gerrit-webhook.ci.qt.io:8092/runAnalysis?change_id=...
change_id = f"{repo.id}~{repo.branch}~{repo.proposal.change_id}"
- analysis_url = f"http://gerrit-webhook.ci.qt.io:8092/runAnalysis?change_id={change_id}"
+ analysis_url = f"http://gerrit-webhook.ci.qt.io:8092/runAnalysis?changeId={change_id}"
analysis = requests.get(analysis_url, timeout=90)
if analysis.status_code == 200:
- message_card.addSection(msteams.cardsection().text(analysis.text))
+ message_card.addSection(msteams.cardsection().text(analysis.json()["string_output"]))
message_card.addSection(
msteams.cardsection().linkButton(*gerrit_link_maker(self.config, repo)))
message_card.send()