Skip to content

Commit

Permalink
made code great
Browse files Browse the repository at this point in the history
  • Loading branch information
ftm-2005 committed Jun 10, 2024
1 parent f562e0c commit 5c489a3
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/test-triagerx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
}
await github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: resultString
});

0 comments on commit 5c489a3

Please sign in to comment.