Method: Gitlab::Client::Projects#share_project_with_group

Defined in:
lib/gitlab/client/projects.rb

#share_project_with_group(project, id, group_access) ⇒ Object

Share project with group.

Examples:

Gitlab.share_project_with_group('gitlab', 2, 40)

Parameters:

  • project (Integer, String)

    The ID or path of a project.

  • id (Integer)

    The ID of a group.

  • group_access (Integer)

    The access level to project.


487
488
489
# File 'lib/gitlab/client/projects.rb', line 487

def share_project_with_group(project, id, group_access)
  post("/projects/#{url_encode project}/share", body: { group_id: id, group_access: group_access })
end