bluefeet / GitLab-API-v4

A complete GitLab API v4 client.
https://metacpan.org/pod/GitLab::API::v4
Other
20 stars 23 forks source link

Add a constant for NO_ACCESS #20

Closed eskriett closed 6 years ago

eskriett commented 6 years ago

It's possible for the GitLab API to return an access_level of 0, e.g. for branches that no one is allowed to merge into.

The official gitlab docs don't describe this access level, but the module they refer to does have a constant defined for NO_ACCESS: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/lib/gitlab/access.rb#L10.

Would be great if this could be added to the list of GitLab::API::v4::Constants.

bluefeet commented 6 years ago

Thanks - always good to be complete. :)

bluefeet commented 6 years ago

(and I typoed the POD. fixed in a followup commit)