Skip to content

Commit 55cb9f6

Browse files
committed
use job name for link
1 parent e133087 commit 55cb9f6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,12 @@ for (const file of readdirRecursively(".")) {
5555
const outputMatch = compilationOutput.match(/warning( .\d+)?:/);
5656

5757
if (outputMatch && outputMatch.length > 0) {
58+
59+
const { data: job } = await octokit.rest.actions.getJobForWorkflowRun({ owner, repo, job_id: parseInt(jobId) });
60+
5861
const url = `https://github.com/${owner}/${repo}/actions/runs/${runId}/job/${jobId}#step:${stepId}:1`;
5962

60-
const appendString = `1. <${url}>\n`;
63+
const appendString = `1. [${job.name}](<${url}>)\n`;
6164
if (body) {
6265
body += appendString;
6366
} else {

0 commit comments

Comments
 (0)