NARKOZ / gitlab

Ruby wrapper and CLI for the GitLab REST API
https://narkoz.github.io/gitlab
BSD 2-Clause "Simplified" License
1.06k stars 394 forks source link

share/unshare group with group #673

Closed kauden closed 10 months ago

kauden commented 1 year ago

Hi,

Would it be possible to add the functions of "share group with group". I made a patch in my code to take it into account.

# MONKEY PATCH
class Gitlab::Client
  module Groups
    def share_group_with_group(group_name, id, group_access)
      post("/groups/#{url_encode group_name}/share", body: { group_id: id, group_access: group_access })
    end
    def unshare_group_with_group(group_name, id)
      delete("/groups/#{url_encode group_name}/share/#{id}")
    end
  end
end

Thanks

github-actions[bot] commented 11 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.