Prevent workflow from triggering when pr is opened in draft state

Hi, I’ve seen the list of activity types that can trigger a workflow related to a PR. Unfortunately, there isn’t any detailed description for them.

I would like to trigger a workflow when

  • A PR is transitioned from “Draft” to “Ready for review” (I assume that’s the ready_for_review activity type)
  • Opened in a non-draft state – ?? not sure which one to use. Will opened work in this case or will it trigger the workflow if a PR is opened in Draft state too?