mergeable icon indicating copy to clipboard operation
mergeable copied to clipboard

Is it possible to hide the output of a successful validator?

Open andrewbihl opened this issue 2 years ago • 1 comments

I thought the following would prevent any output showing up in the PR checks when successful:

  - when: pull_request.*
    name: 'PR description filled out'
    validate:
      - do: description
        must_exclude:
          regex: 'Please explain what the point of this work was.'
    fail:
      - do: checks
        status: 'action_required'
        payload:
          summary: Please fill out the PR description.

It did not. Is it possible to prevent unnecessary message showing up in the PR checks? If there is nothing for the PR author to do I'd rather not show anything.

Yaml has version: 2

andrewbihl avatar Feb 02 '23 00:02 andrewbihl

you would need to add

    pass:
      - do: checks
        status: 'success'
        name: ''
        payload:
          title: ''
          summary: ''

andekande avatar Jun 12 '24 20:06 andekande