Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide link to GitHub job in generated PR comment #11

Closed
SimonMarquis opened this issue Feb 1, 2024 · 1 comment
Closed

Provide link to GitHub job in generated PR comment #11

SimonMarquis opened this issue Feb 1, 2024 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@SimonMarquis
Copy link

When using add-job-summary-as-pr-comment it is sometimes simpler to open the GitHub job details pages.

Would it be possible to add such link: https://github.com/<user>/<project>/actions/runs/<run_id>/job/<job_id>?pr=<pr> in the summary?

It could for instance be a link behind the renderOutcome(result) emoji:

function renderBuildResultRow(result: BuildResult): string {
return `
<tr>
<td>${result.rootProjectName}</td>
<td>${result.requestedTasks}</td>
<td align='center'>${result.gradleVersion}</td>
<td align='center'>${renderOutcome(result)}</td>
<td>${renderBuildScan(result)}</td>
</tr>`
}

@bigdaz bigdaz added the enhancement New feature or request label Feb 9, 2024
@bigdaz bigdaz changed the title [FR]: Add link to GitHub job in summary Provide link to GitHub job in generated PR comment Feb 9, 2024
@bigdaz bigdaz added this to the v3.1 milestone Feb 10, 2024
bigdaz added a commit that referenced this issue Feb 11, 2024
@bigdaz
Copy link
Member

bigdaz commented Feb 12, 2024

Unfortunately there's no easy way to determine the job_id value from within the action. But with 79414b4 we now have a link to the workflow run from the PR comment.

@bigdaz bigdaz closed this as completed in 79414b4 Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants