X Tutup
Skip to content

Add support for project approval rules applying to all default branches #3372

@shehzadqureshi

Description

@shehzadqureshi

Description of the problem, including code/CLI snippet

The API /projects/:id/approval_rules/ has an additional attribute that allows us to apply the rule to all protected branches, rather than having to enumerate the branches we want it to apply it to. This is missing in the existing feature set.

See API spec: https://docs.gitlab.com/api/merge_request_approvals/#create-an-approval-rule-for-a-project

Specifications

  • python-gitlab version: 0.8.1
  • Gitlab server version (or gitlab.com): 18.x

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

      X Tutup