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

Improve output for PR comment #129

Merged
merged 1 commit into from Mar 7, 2022

Conversation

skpy
Copy link
Contributor

@skpy skpy commented Aug 19, 2021

The example of the complex PR comment, with status reports for each step, produces unsatisfactory results for the validate stage. The stdout of terraform validate -no-color includes a trailing newline, which breaks the backtick code block.

Screen Shot 2021-08-19 at 11 58 24 AM

This PR replaces ${{ steps.validate.outputs.stdout }} with ${{ steps.validate.outcome }} for the header, and includes a detail block with the original standard out. This should preserve the ability to see validate errors, but makes the H4 header look nicer.

Screen Shot 2021-08-19 at 11 58 58 AM

@hashicorp-cla
Copy link

hashicorp-cla commented Aug 19, 2021

CLA assistant check
All committers have signed the CLA.

@jpogran jpogran self-assigned this Mar 4, 2022
@jpogran jpogran added the enhancement New feature or request label Mar 4, 2022
@jpogran jpogran added this to the 1.4.0 milestone Mar 4, 2022
Copy link
Collaborator

@jpogran jpogran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. will test out with current code

@jpogran jpogran merged commit 453864b into hashicorp:main Mar 7, 2022
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

Successfully merging this pull request may close these issues.

None yet

3 participants