draft๐Ÿ”—

The draft action converts the pull request to a draft. It avoids pinging reviewers too early and until the pull request is ready to be merged.

Examples๐Ÿ”—

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

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

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