Class PendingApprovalAction.ApprovalItemListener
java.lang.Object
hudson.model.listeners.ItemListener
io.jenkins.plugins.github_pr_approval.PendingApprovalAction.ApprovalItemListener
- All Implemented Interfaces:
ExtensionPoint
- Enclosing class:
PendingApprovalAction
Puts a newly discovered fork pull request on hold, and catches the jobs that were already
there when the trust policy got switched on.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class hudson.model.listeners.ItemListener
all, checkBeforeCopy, checkBeforeDelete, fireLocationChange, fireOnCopied, fireOnCreated, fireOnDeleted, fireOnUpdated, onBeforeShutdown, onCheckCopy, onCheckDelete, onCopied, onDeleted, onLocationChanged, onRenamed, register
-
Constructor Details
-
ApprovalItemListener
public ApprovalItemListener()
-
-
Method Details
-
onCreated
- Overrides:
onCreatedin classItemListener
-
onLoaded
public void onLoaded()Re-enables any held pull request an older version of this plugin left disabled. We no longer disable jobs for approval — the guard blocks them — so at startup we just undo that stale disable, leaving branches branch-api has marked dead alone. Only touches jobs that already have a record, so this never calls GitHub while Jenkins is still starting.- Overrides:
onLoadedin classItemListener
-
onUpdated
- Overrides:
onUpdatedin classItemListener
-