From 7c2dd4e2feaa7774440d985daa40fb0b724b7dc6 Mon Sep 17 00:00:00 2001 From: "Trez.One" Date: Thu, 19 Dec 2024 15:29:48 -0500 Subject: [PATCH] Wait, this might be it......... --- .gitea/workflows/branch-sonarscan-pr-merge.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/branch-sonarscan-pr-merge.yml b/.gitea/workflows/branch-sonarscan-pr-merge.yml index c01c3333..f49037b0 100644 --- a/.gitea/workflows/branch-sonarscan-pr-merge.yml +++ b/.gitea/workflows/branch-sonarscan-pr-merge.yml @@ -133,7 +133,16 @@ jobs: -H 'Authorization: token ${{ secrets.BOT_GITEA_TOKEN }}' \ -H 'Content-Type: application/json' \ -d '{ - "body": "SonarQube analysis results:\n\n${{ steps.convert-json-to-md.outputs.table }}\n\n${{ steps.quality-gate.outputs.quality-gate-status }}" + "body": "string", + "comments": [ + { + "body": "SonarQube analysis results:\n\n${{ steps.convert-json-to-md.outputs.table }}\n\n${{ steps.quality-gate.outputs.quality-gate-status }}", + "path": "path", + "position": 0 + } + ], + "event": "COMMENT" + }' }' # Job 3: Merge PR if Quality Gate passes