Skip to content

Prevent PR envs for Draft PRs #3909

@dan2k3k4

Description

@dan2k3k4

It would be great if we could prevent PR environments from being created for draft PRs/MRs.

In GitHub, you can set a Draft PR.

The payload seems to be (filtered down to just the required info):

{
  "pull_request": {
    "draft": true,
  }
}

BitBucket and GitLab also support draft PRs/MRs.

I would imagine this as a setting per project, but the UI/UX should also show that PR envs need to be enabled too for draft PRs to be created.

e.g.

Pull-Requests: regex / true|false
Pull-Request Drafts? true|false # Note: Pull-Requests need to be enabled for this feature to work

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions