Class GitHubPRUserRestriction
java.lang.Object
org.jenkinsci.plugins.github.pullrequest.restrictions.GitHubPRUserRestriction
- All Implemented Interfaces:
Describable<GitHubPRUserRestriction>
Whether it allowed this user or org with users to do something.
- Author:
- Kanstantsin Shautsou
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetOrgs()
getUsers()
boolean
isUserMemberOfOrganization
(String organisation, org.kohsuke.github.GHUser member) boolean
isWhitelisted
(org.kohsuke.github.GHUser user) Checks that user is allowed to control
-
Constructor Details
-
GitHubPRUserRestriction
-
-
Method Details
-
isWhitelisted
public boolean isWhitelisted(org.kohsuke.github.GHUser user) Checks that user is allowed to control- Parameters:
user
- commented user- Returns:
- true if user/org whitelisted
-
getOrgs
-
getUsers
-
isUserMemberOfOrganization
public boolean isUserMemberOfOrganization(String organisation, org.kohsuke.github.GHUser member) throws IOException - Throws:
IOException
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<GitHubPRUserRestriction>
-