Skip to content
This repository was archived by the owner on Dec 10, 2024. It is now read-only.
This repository was archived by the owner on Dec 10, 2024. It is now read-only.

Cannot get/set Settings #2033

@cyd01

Description

@cyd01

I have an issue when retrieving or sending settings using glabCli.Settings.UpdateSettings(newSettings) and glabCli.Settings.GetSettings().

The functions GetSettings & UpdateSettings always return a non-nil error with value:

json: cannot unmarshal object into Go struct field BranchProtectionDefaults.default_branch_protection_defaults.allowed_to_merge of type int

I use Gitlab version 17.4.2 and go-gitlab v0.111.0.

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