From 16d00811c5f3960d712b8f7ef4ed5b85c32df039 Mon Sep 17 00:00:00 2001 From: cccs-rs <62077998+cccs-rs@users.noreply.github.com> Date: Mon, 23 Dec 2024 22:06:21 +0000 Subject: [PATCH] Fix bug with long git descriptions --- pipelines/templates/steps/publish-description.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pipelines/templates/steps/publish-description.yaml b/pipelines/templates/steps/publish-description.yaml index 59dfc03..2267426 100644 --- a/pipelines/templates/steps/publish-description.yaml +++ b/pipelines/templates/steps/publish-description.yaml @@ -82,7 +82,9 @@ steps: url = f"https://api.github.com/repos/CybercentreCanada/{git_repo}" rsp = httpx.get(url) - body["description"] = rsp.json().get("description", "") + desc = rsp.json().get("description", "") + if desc and len(desc) < 100: + body["description"] = desc token = os.environ["TKN"] headers = {