Class ForkPullRequestDiscoveryTrait.TrustPermission
java.lang.Object
hudson.model.AbstractDescribableImpl<jenkins.scm.api.trait.SCMHeadAuthority<?,?,?>>
jenkins.scm.api.trait.SCMHeadAuthority<GitHubSCMSourceRequest,PullRequestSCMHead,PullRequestSCMRevision>
org.jenkinsci.plugins.github_branch_source.ForkPullRequestDiscoveryTrait.GitHubForkTrustPolicy
org.jenkinsci.plugins.github_branch_source.ForkPullRequestDiscoveryTrait.TrustPermission
- All Implemented Interfaces:
Describable<jenkins.scm.api.trait.SCMHeadAuthority<?,
?, ?>>
- Enclosing class:
- ForkPullRequestDiscoveryTrait
public static class ForkPullRequestDiscoveryTrait.TrustPermission
extends ForkPullRequestDiscoveryTrait.GitHubForkTrustPolicy
An
SCMHeadAuthority
that trusts those with write permission to the repository.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Our descriptor. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkTrusted
(GitHubSCMSourceRequest request, PullRequestSCMHead head) Methods inherited from class jenkins.scm.api.trait.SCMHeadAuthority
_for, all, checkTrusted, getDescriptor, isApplicableTo, isApplicableTo, isApplicableTo, isTrusted, isTrusted
-
Constructor Details
-
TrustPermission
@DataBoundConstructor public TrustPermission()Constructor.
-
-
Method Details
-
checkTrusted
protected boolean checkTrusted(@NonNull GitHubSCMSourceRequest request, @NonNull PullRequestSCMHead head) throws IOException, InterruptedException - Specified by:
checkTrusted
in classjenkins.scm.api.trait.SCMHeadAuthority<GitHubSCMSourceRequest,
PullRequestSCMHead, PullRequestSCMRevision> - Throws:
IOException
InterruptedException
-