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

Automatically add Job Summary as PR comment #1021

Merged
merged 7 commits into from
Jan 2, 2024
Merged

Automatically add Job Summary as PR comment #1021

merged 7 commits into from
Jan 2, 2024

Conversation

bigdaz
Copy link
Member

@bigdaz bigdaz commented Jan 1, 2024

Fixes #1020

Copy link

github-actions bot commented Jan 2, 2024

Job Summary for gradle-build-action

Demo adding Build Scan® comment to PR :: successful-build-with-always-comment
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
kotlin-dsl build 8.5 Build Scan PUBLISHED

Copy link

github-actions bot commented Jan 2, 2024

Job Summary for gradle-build-action

Demo adding Build Scan® comment to PR :: failing-build-with-comment-on-failure
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
kotlin-dsl no-a-real-task 8.5 Build Scan PUBLISHED

Rather than requiring a separate step to add a PR comment,
the `gradle-build-action` can now automatically add the Job Summary
as a PR comment

Fixes #1020
Instead of a binary true/false option, it is now possible to only add
a Job Summary when the build failed. This applies both to the overall
Job Summary added to the workflow run, and to the new PR comment feature.
@bigdaz bigdaz merged commit 4faac45 into main Jan 2, 2024
8 checks passed
@bigdaz bigdaz deleted the dd/pr-comment branch January 2, 2024 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow Job Summary to be automatically added as a PR comment
1 participant