Class GitHubPRLabelRemovedEvent
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<GitHubPREvent>
-
- org.jenkinsci.plugins.github.pullrequest.events.GitHubPREvent
-
- org.jenkinsci.plugins.github.pullrequest.events.impl.GitHubPRLabelRemovedEvent
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<GitHubPREvent>
public class GitHubPRLabelRemovedEvent extends GitHubPREvent
When label is removed from GitHub issue(== pull request). Set of labels is considered removed only when at least one label of set was newly removed (was saved in local PR previously) AND every label of set was already removed from remote PR.- Author:
- Kanstantsin Shautsou, Alina Karpovich
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GitHubPRLabelRemovedEvent.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description GitHubPRLabelRemovedEvent(GitHubPRLabel label)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GitHubPRCause
check(GitHubPRDecisionContext prDecisionContext)
indicates that PR was changedGitHubPRLabel
getLabel()
-
Methods inherited from class org.jenkinsci.plugins.github.pullrequest.events.GitHubPREvent
checkHook, getDescriptor
-
-
-
-
Constructor Detail
-
GitHubPRLabelRemovedEvent
@DataBoundConstructor public GitHubPRLabelRemovedEvent(GitHubPRLabel label)
-
-
Method Detail
-
check
public GitHubPRCause check(@NonNull GitHubPRDecisionContext prDecisionContext) throws IOException
Description copied from class:GitHubPREvent
indicates that PR was changed- Overrides:
check
in classGitHubPREvent
- Returns:
- cause object. null when no influence (other events will be checked. If cause.isSkip() == true, then other checks wouldn't influence. And triggering for this branch will be skipped. If cause.isSkip() == false, indicates that branch build should be run.
- Throws:
IOException
-
getLabel
public GitHubPRLabel getLabel()
-
-