Skip to content

Inconsistency in creating and updating a custom organization role #4074

@munlicode

Description

@munlicode
// CreateOrUpdateOrgRoleOptions represents options required to create or update a custom organization role.
type CreateOrUpdateOrgRoleOptions struct {
	Name        *string  `json:"name,omitempty"`
	Description *string  `json:"description,omitempty"`
	Permissions []string `json:"permissions"`
	BaseRole    *string  `json:"base_role,omitempty"`
}

It seems like it does not follow documentation, because CreateCustomOrgRole should expect at least name and permissions, and UpdateCustomOrgRole does not demand any of those to be present.

Is it intentional?

Documentation references:

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