github-pr-resource icon indicating copy to clipboard operation
github-pr-resource copied to clipboard

Add support for status_file in put

Open phil9909 opened this issue 3 years ago • 0 comments

There are two ways of providing comments to the put step: comment and comment_file. The first one can be used for hard-coded comments while the later can be used for dynamically generated comments. Dynamically generating the status is not possible. It can only be set via the status option. Similar to the comment_file this PR adds an status_file option.

Use case: I execute unit-tests in the PR validation. If the creator of the PR made a mistake and therefore made the unit-tests fail, I don't want to have a red pipeline. For me, as a maintainer of the pipeline, everything works as intended. A red pipeline should indicate "something went wrong" (timeouts, missing permission to access GitHub, etc.), but actually the validation successfully detected a problem in the PR and successfully reported this back to GitHub.

phil9909 avatar Feb 09 '22 11:02 phil9909