From 5c489a3bc13f07f2a67141f08c72f58be6564ba6 Mon Sep 17 00:00:00 2001 From: fyk-2005 Date: Mon, 10 Jun 2024 21:05:28 +0300 Subject: [PATCH] made code great --- .github/workflows/test-triagerx.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test-triagerx.yml b/.github/workflows/test-triagerx.yml index 9f4095d..18dcdd5 100644 --- a/.github/workflows/test-triagerx.yml +++ b/.github/workflows/test-triagerx.yml @@ -67,15 +67,16 @@ jobs: actualAssignees = issues[i]["assignees"].map(assignee => assignee["login"]); predictedLabels = modelOutputs[i].recommended_components; predictedAssignees = modelOutputs[i].recommended_developers; - resultString += `**Issue Link:** ${issues[i].html_url}\n**Title:** ${issues[i].title}\n`; - resultString += `**Actual Components:** ${actualLabels.join(', ')}\n**Recommended Components:** ${predictedLabels.join(', ')}\n`; - resultString += `**Actual Assignees:** ${actualAssignees.join(', ')}\n**Recommended Assignees:** ${predictedAssignees.join(', ')}\n`; + + resultString += `Issue Link: ${issues[i].html_url}\nTitle: ${issues[i].title}\n`; + resultString += `Actual Components: ${actualLabels.join(', ')}\nRecommended Components: ${predictedLabels.join(', ')}\n`; + resultString += `Actual Assignees: ${actualAssignees.join(', ')}\nRecommended Assignees: ${predictedAssignees.join(', ')}\n`; resultString += '---\n'; + } - await github.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: resultString - }); - } \ No newline at end of file + await github.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: resultString + }); \ No newline at end of file