edit๐Ÿ”—

The edit action changes some specific attributes on the pull request.

Options๐Ÿ”—

Key Name

Value Type

Default

Value Description

draft

Boolean

None

If the pull request should be a draft (true) or the other way around (false).

Examples๐Ÿ”—

๐Ÿ“œ Converting a Pull Request to a Draft on Check Failure๐Ÿ”—

If any of your continuous integration checks fail, it might be worth converting the pull request to a draft automatically since it's likely that it's not ready for review.

pull_request_rules:
  - name: convert to draft
    conditions:
      - "#check-failure>0"
    actions:
      edit:
        draft: True