jcabi / jcabi-github

Java Object-Oriented Wrapper of GitHub API, with a fake implementation of the entire GitHub API (for your tests)
https://github.jcabi.com
Other
305 stars 141 forks source link

Implement check for Organization membership #1247

Open amihaiemil opened 7 years ago

amihaiemil commented 7 years ago

There are more methods of checking members of an organizations, especially checking public memberships, which we already have implemented.

However, there is this method which we haven't implemented and is quite useful.

Basically, if the logged in user is a member of that organization, he can check another member's type of membership regardless if that member has publicized it or not.

It could be something like Organization.membership(String memberLogin):Membership, and Membership interface would describe the json returned by the above mentioned endpoint.

Important If implemented, it should be thoroughly documented, so that no one mistakes it for the public membership endpoints.

dmarkov commented 7 years ago

@yegor256 take a look at this issue please and dispatch it somehow, see par.21

amihaiemil commented 7 years ago

@yegor256 what do you think here? :D

yegor256 commented 7 years ago

@amihaiemil thanks, make sense. Please, keep in mind that we don't pay for bug reporting in open source projects any more.

amihaiemil commented 7 years ago

@yegor256 sure ^^