Add mutation to delete a member role
We have mutation to create and update member role and we need one also to delete it.
Verification Steps
-
Create a custom role example
mutation createRole { memberRoleCreate(input: { groupPath: "custom-roles-root-group" name: "Role name", description: "This is a new test role", readVulnerability: true, baseAccessLevel: GUEST }) { errors memberRole { id name description readVulnerability } } }
-
Delete the custom role example
mutation deleteRole($id: MemberRoleID!) { memberRoleDelete(input: {id: $id}) { errors memberRole { id name description } } }
{ "id": "gid://gitlab/MemberRole/1" }
Edited by mo khan